I would like to test the performance of PHP files in my installation, to find any bottlenecks. I already use plugins like Debug Queries and WPDB Profiler to watch the SQL Queries being generated, but I would like something that shows me the execution time of each php file to identify if some plugin is not optimised. Is there any plugin for this?


No. And even if there was, it would be probably useless anyway.

You would get incorrect results, because a .php file might call slow functions from WordPress core files, and there are a lot of situations like this.

You could try using the xdebug extension, it's pretty close to what you're looking for

  • Thanks, I do use xdebug, but it doesn't show me the execution times, the only way for me to find a bottleneck would be to visually see some bad code, but it's more difficult like that. – urok93 Dec 10 '11 at 14:34
  • What about something like this? pear.php.net/package/Benchmark/redirected – urok93 Dec 12 '11 at 8:28
  • Looks simple timing script. You can start the timer inside a plugin function that you think is slow, set up markers trough it if you wish, then stop the timer when function ends and display the results :) – onetrickpony Dec 12 '11 at 20:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.