“Reduce initial server response time.” It’s the PageSpeed Insights line I always scroll past and then feel guilty about. The page looks fine in my browser, so today I stopped guessing and measured it properly with curl.
Most guides on this are written by hosting companies and caching plugin vendors, and they all end with “buy our thing.” This is the version from someone who runs a WordPress blog and just wants the number to go down. I’ll show what I measured on tekraze.com and be clear about what I tested and what I only read in the docs.
What TTFB Actually Measures
TTFB is Time to First Byte. It’s the time between the browser asking for a page and the first byte of the answer coming back. That covers DNS, the connection, the TLS handshake, and then the part we can usually fix: the server thinking about what to send.
On a WordPress site that thinking is real work. PHP boots, WordPress loads every active plugin, the database gets a bunch of queries, the theme builds the HTML, and only then does anything go out. A cached page skips almost all of that.
For the thresholds, web.dev says a good TTFB is 0.8 seconds or less, and a poor one is anything above 1.8 seconds. In between needs improvement. Worth knowing too: TTFB is not a Core Web Vital. It just sits in front of First Contentful Paint and Largest Contentful Paint, so a slow start drags both down. I wrote about the metrics that do count in Demystifying Core Web Vitals. It’s React-flavoured, but the metrics are the same.
How To Measure TTFB Without Fooling Yourself
curl is the quickest and the most honest, because there’s no browser, no extensions and no cache on your side. This is the command I used for everything below:
curl -s -o /dev/null -A "Mozilla/5.0" \
-w "connect: %{time_connect}\ntls: %{time_appconnect}\nttfb: %{time_starttransfer}\ntotal: %{time_total}\n" \
https://example.com/
One thing that trips people up: time_starttransfer counts from the very start, so it includes the connect and TLS time. To get the pure server wait, subtract time_appconnect from it.
PageSpeed Insights at pagespeed.web.dev gives you a lab run from Google’s servers plus real-user data if your site gets enough traffic. The audit is explained in Lighthouse’s server response time page.
Chrome DevTools is good for one page at a time. Open the Network tab, click the first request (the HTML document), and look at the Timing tab. “Waiting for server response” is your TTFB. The Network reference explains every row in that breakdown.
A small warning from my own testing: don’t use curl -I to check caching. That sends a HEAD request, and my page cache plugin answered with “not cached” for it, with a message saying the method was not GET. A normal GET told a different story. I’ll come back to that.
What Usually Makes TTFB Slow
Before fixing anything you need to know which of these you have.
| Cause | What it looks like | First thing to check |
|---|---|---|
| Weak server or hosting | Slow even on a bare page, and slower at busy hours | Test a plain PHP file on the same host |
| No page cache | Every visit takes about the same long time | Look for a cache header on a normal GET |
| Old PHP version | Fine on cache hits, slow on misses | Hosting panel or Site Health |
| Slow queries and bloated autoload | Admin is slow too, not just the front end | Query Monitor, size of autoloaded options |
| Heavy plugins | Time jumps after installing one | Disable plugins one by one on staging |
| No object cache | Logged-in pages and carts are slow, public pages fine | Site Health, Redis or Memcached status |
| CDN not caching HTML | Static files are fast, HTML always comes from origin | The cf-cache-status header |
| External calls | Random slow spikes, not steady | HTTP API calls panel in Query Monitor |
The symptoms are what matter here. “Fast on cache hits, slow on misses” points to PHP and the database. “Always slow” points to the cache or the server. And if you only test a cached page, you’ll never see the real problem.
Fixes In Priority Order
This is the order I’d go in, cheapest and biggest win first. I did not do all of this on tekraze.com for this post. The only fix I can speak about from our own numbers is the first one. The rest is what I’d try, with the official docs next to each.
-
Get a page cache working, then confirm it actually serves. This is the big one, and nothing else comes close. A plugin that stores the finished HTML means PHP and MySQL don’t run for most visitors. Load a page twice with curl and check the response headers. No “cached” or “HIT” header means it isn’t working, whatever the settings page says.
-
Check your host. If a cached page is still slow, or the uncached page takes several seconds, the machine is the problem. Crowded shared hosting does this. I covered the differences between plans in Types of Web Hosting Explained, and honestly, moving up a tier can be cheaper than hours of tuning.
-
Update PHP. It’s usually one dropdown in the hosting panel. WordPress’s own requirements page currently recommends PHP 8.3 or newer. Back up first, since an old plugin can break on a new version.
-
Find the slow plugin. Install Query Monitor and open a page. It lists slow queries, which plugin ran them, and every outgoing HTTP call. Then deactivate suspects one at a time on a staging copy.
-
Add a persistent object cache. Redis or Memcached keeps the results of repeated database lookups in memory, using the WP_Object_Cache API. Public pages behind a page cache gain little. Logged-in users, carts and search results gain a lot, since those can’t be served as static HTML.
-
Trim autoloaded options. WordPress loads every row in
wp_optionsmarked as autoload on every single request. Old plugins leave junk in there. You can see the total size with this query (your table prefix may differ):SELECT SUM(LENGTH(option_value)) FROM wp_options WHERE autoload IN ('yes','on','auto-on','auto');If that number is in the megabytes, find the biggest rows and see who owns them before deleting anything.
-
Let the CDN cache the HTML. By default, Cloudflare caches static files and does not cache HTML. For WordPress you can use Automatic Platform Optimization or write your own cache rules. If you go the manual route, bypass the cache for logged-in cookies and the admin, or you will serve the wrong page to the wrong person. I have the reverse-proxy side of this written up in Reverse Proxies and Edge Security.
-
Remove blocking external calls. A plugin that calls some remote API while building the page makes your TTFB depend on someone else’s server. Query Monitor shows these. Cache the response, load it later with JavaScript, or drop the plugin.
WordPress also keeps a general page on this in its optimization handbook, and web.dev has a longer guide, Optimize Time to First Byte.
Our Numbers
Here’s what I measured today, 3 December 2026, from a test server, not my laptop. Requests went through Cloudflare’s Ashburn, Virginia edge; the cf-ray header ended in IAD. I was logged out, no cookies, with a one second pause between runs. Your numbers from another country will differ.
I tested two URLs: the homepage and one blog post. For the “no cache” runs I added ?nocache= and a timestamp. Our WP-Optimize settings skip the cache for that parameter, and the response header confirmed it by saying the page was not cached.
| Page and mode | Runs | TTFB range | Median TTFB |
|---|---|---|---|
| Homepage, cached | 8 | 0.12 to 0.33 s | 0.14 s |
| Homepage, cache bypassed | 8 | 1.66 to 2.01 s | 1.78 s |
| Blog post, cached | 6 | 0.11 to 0.31 s | 0.14 s |
| Blog post, cache bypassed | 6 | 1.75 to 2.13 s | 1.87 s |
The gap is huge. A cached response comes back around 13 times faster than one where WordPress has to build the page. That’s the page cache doing its job.
The connection itself was never the problem. Connect time was about 1 to 2 milliseconds and TLS was done within 20 to 50 milliseconds on every run. All the waiting was the server.
The bypassed numbers are on the wrong side of the line. The post median of 1.87 s is above web.dev’s 1.8 s “poor” mark, and the homepage is sitting right at it. So if a cache miss ever happens to a real visitor, they’ll feel it. That’s an honest weak spot, and it tells me the PHP and database side needs a look, probably starting with the plugin list.
The cached runs also weren’t steady. Most landed near 0.12 to 0.14 s, but a few jumped to about 0.31 s. I don’t know why, and I won’t pretend to. A new connection to the origin through Cloudflare is my first guess, not something I tested.
Headers told me the rest. server: cloudflare, cf-cache-status: DYNAMIC on every request, so Cloudflare is not caching our HTML and every request goes to the origin. The speed on cached pages comes from the wpo-cache-status: cached header, which is WP-Optimize. Most readers get that cached copy. The slow path is for anything the cache can’t help: a logged-in user, a search page, the first hit after a purge.
I didn’t change any setting or plugin for this, so these are plain “before” numbers. The Query Monitor check and the Cloudflare HTML question are next on my list. If I do them, I’ll add the new numbers here instead of guessing.
Two Mistakes To Avoid
Testing only the homepage is the first. It’s the most cached page on most sites, so it flatters you. Check a post, a category page and a search result too. The second is stacking caching plugins. Pick one page cache, because two of them fighting over the same files gives you weird bugs and no speed.
And don’t chase a perfect score. web.dev itself says not every site needs to hit the good mark. If you want something worth chasing, look at INP, which affects real clicks. I wrote about it in How to Improve INP in React Apps.
Slow TTFB On WordPress FAQ
What Is A Good TTFB For WordPress?
Under 0.8 seconds is good according to web.dev, and over 1.8 seconds is poor. With a working page cache, most WordPress pages should land well under that. My cached pages came in around 0.14 seconds from the test server.
Does TTFB Affect SEO?
Not directly as a ranking metric that I can point to. TTFB isn’t one of the Core Web Vitals. But it comes before First Contentful Paint and Largest Contentful Paint, so a slow TTFB makes those worse, and those do matter.
Will A Caching Plugin Alone Fix It?
For public pages, usually yes, and that’s where I saw the biggest gap in my own tests. It won’t help logged-in users, carts, or anything excluded from the cache. For those you need to fix the PHP and database side, or add an object cache.
Why Is My TTFB Fine In One Test And Slow In Another?
Usually one test hit the cache and the other didn’t. Other causes are different test locations, busy hours, or a cold cache after a purge. Run it five times or more and read the median, not the best run.
Should I Use Cloudflare To Fix Slow TTFB?
Only if it caches your HTML. With default settings Cloudflare doesn’t, so it mostly speeds up images, CSS and JavaScript. Our own responses show cf-cache-status: DYNAMIC, which means the same thing. Try APO or cache rules, and test a few URLs first.
If you run a small business site and the technical side feels like too much, the local web design agency checklist I wrote has a few questions worth asking about speed before you hire anyone.





