Trace WordPress performance issues to PHP code
Code Profiler Pro measures plugin and theme performance at the PHP level on your server. Its charts and tables show where time is spent, from a plugin or theme down to a PHP script, class, method, or function. Use the results to investigate potential bottlenecks and guide troubleshooting.
This profiling focuses on server-side code. Browser-based page analysis measures a different part of performance, so PHP profiles can help when you need to investigate what happens inside a WordPress request.
Inspect code, queries, and connections
Pro adds detailed profiling for PHP scripts, methods, and functions, along with database query performance and remote connection monitoring. You can also review file I/O operations and statistics, disk I/O usage, and filter results to focus on relevant entries.
- Profile plugins and themes on the frontend or in the WordPress backend.
- Inspect PHP scripts, classes, methods, and functions.
- Review database queries and remote connections.
- Monitor file I/O and disk I/O activity.
- Export charts as PNG images and export tables and charts as CSV files.
Profile specific WordPress workflows
Run profiles for cron events or a custom URL. For requests that need specific inputs, use GET or POST, send a POST payload, and set custom cookies or HTTP headers. These options let you examine workflows such as contact forms, checkout processes, and AJAX actions.
WP-CLI integration provides another way to run the profiler. After plugin or theme updates, consider running a new profile because an update can affect site performance. Code Profiler can remain active when not in use without affecting site performance.
Multisite access and privacy
Code Profiler supports WordPress multisite installations. Only the superadmin can run it in multisite, for security reasons. The plugin does not collect private data from you or your visitors, and it does not use cookies.
Installation and requirements
Upload and activate the plugin from the WordPress Plugins menu, then open the Code Profiler menu to start profiling. The stated requirements are WordPress 5.0 or later and PHP 7.1 or 8.x.