WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

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

share|improve this answer
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. – drtanz Dec 10 '11 at 14:34
What about something like this? pear.php.net/package/Benchmark/redirected – drtanz 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 posting your answer, you agree to the privacy policy and terms of service.

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