I have a site with a custom theme and TTFB was really slow, 4-5 secs on average.
* Funnily enough, I disabled 2 caching plugins (litespeed and wp super cache) and TTFB went down to 2s.
* There are 13 plugins left, pretty much standard pack, no WC, and according to the Code Profiler plugin their combined execution time is 0.4s. I can shave 0.15s off of this. Plugins and WP 6 are up to date.
* This is not a server\\DNS issue, static files are served within 0.1s.
* Not an SQL issue, queries take less than 0.05s
* I tried using default theme (twenty sixteen). Still 1.2s+.
* Even requesting robots.txt takes 1-2 seconds since it’s generated by WP
So I’m interested what’s happening under the hood and why does it take so long. Code profiler seems to have this functionality, but 60 bucks is a bit too much.
I’d like to have TTFB under 0.5s, it’s a very simple site. I’ve built WP+WC sites with such performance before, but this time it’s a shared hosting without php-fpm, redis, http/2, etc. Is it even doable?
p.s. According to query monitor, memory consumption is 80-100mb, which seems a bit excessive. My other site shows 25mb and it’s much more complex.
[ad_2]
GTMetrix or Google Pagespeed is the only way you’ll get to see what’s going on.
But you’re on shared hosting. You’re not getting 0.5s TTFB.
You mean this https://wordpress.org/plugins/code-profiler/
https://wordpress.org/plugins/query-monitor/