I’m developing a WP theme, based on _s default theme with WP 4.1.1.
I keep getting a TTFB(time to first byte) of 22s, consistently both on the front and back of the site, while on localhost.
Here’s a print from DevTools:
I’m using the Debug Bar plugin, so I can see on the Queries and Profiler tabs that this is not a database or execution time problem(the sum of both takes 700ms). I guess it’s not a rewrite problem either, since it behaves the same on the default permalink structure.
Other wordpress sites on my www don’t have the same problem, so I’m discarding the server configuration. I also tried to load in incognito mode, without any difference.
Is there a way to debug this a little deeper?
1
Meanwhile, I found some plugins and tools that can help with this:
- Query Monitor
- Laps
- Debug Bar with some add-ons(Slow Actions, Rewrite Rules, etc.)
If you really wanna go deep, try using Webgrind.
Not the most friendly tool, but it’ll do the job.
Be aware that some of this tools will also have an impact on performance.