9

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: enter image description here

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?

5
  • Try deactivating all plugins - if that fixes it, reactivate one by one. Apr 9, 2015 at 16:23
  • Yeah, that was one of the first things I tried. I used the Duplicator plugin to clone the theme without plugins, but it's the same. This is the only site I have with 4.1.1 WP version. Maybe something related?
    – Narayon
    Apr 9, 2015 at 17:17
  • What are you using for local development? Apr 9, 2015 at 17:44
  • WAMPServer 2.5(64bits).
    – Narayon
    Apr 9, 2015 at 17:58
  • 2
    Didn't found the reason why, but changing the path to my MySQL hostname, on wp-config.php, from localhost to 127.0.0.1 did the trick.
    – Narayon
    Jun 12, 2015 at 10:42

1 Answer 1

10

Meanwhile, I found some plugins and tools that can help with this:

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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