is a lightweight PHP tool designed for WordPress developers and site administrators to gain valuable insights into site performance. This single-file plugin tracks the execution time and memory consumption of each WordPress hook, helping to pinpoint performance bottlenecks in plugins, themes, and custom code. With easy setup and comprehensive logging, it enables data-driven optimizations for a faster and more efficient WordPress installation.
- Monitors execution time of common WordPress hooks
- Tracks memory usage and peak memory consumption
- Logs detailed performance metrics for each hook
- Provides request summary with total execution times
- Debug-mode aware (only runs when WP_DEBUG is enabled)
- Copy the plugin file to your WordPress installation's plugin directory
- Enable WP_DEBUG in your wp-config.php file
- Activate the plugin through the WordPress admin interface
Once activated, the plugin automatically monitors WordPress hooks and logs their performance metrics to:
wp-content/hook-performance.log
The log file includes:
- Individual hook execution times
- Memory usage per hook
- Peak memory usage
- Total request execution time
- Total hook execution time