All posts

Blog

How to Test Your Website Speed (and Make Sense of the Results)

Illustrated cover for the Speed & Performance guide "How to Test Your Website Speed (and Make Sense of the Results)"

"Is my website fast?" sounds like a simple question, but the answer depends on who's asking, from where, on what device, and on which page. Speed test tools give you a pile of numbers and colored scores. Here's how to test properly and focus on what matters.

The tools to use

PageSpeed Insights

Google's free tool shows two things:

  • Field data, from real Chrome users visiting your site over the past 28 days, if your site has enough traffic. This is what Google uses for its Core Web Vitals assessment.
  • Lab data, from a Lighthouse test run on a simulated mobile or desktop device, with a performance score from 0 to 100 and a list of suggestions.

Your browser's developer tools

Press F12 in Chrome, Edge or Firefox and open the Network tab. Reload the page to see every file it loads, how big each is and how long each takes. The Lighthouse tab in Chrome runs the same lab test as PageSpeed Insights, from your own computer.

Other online testing tools

Several free tools let you test from different locations and browsers, and show a "waterfall" chart of every request. They're useful for comparing locations and seeing exactly what loads when.

Search Console

Google Search Console's Core Web Vitals report groups your pages by status using real-user data. It's the best long-term view.

How to run a fair test

Speed tests vary from run to run. To get useful results:

  1. Test the right pages. Your home page, your most visited pages, a typical blog post, and key conversion pages like contact or checkout.
  2. Test mobile first. Most visitors are on phones, and mobile tests are tougher.
  3. Run each test three times and look at the middle result.
  4. Warm the cache. The first visit after a cache purge is slower. Load the page once before testing, unless you're specifically testing uncached performance.
  5. Test from a location near your audience.
  6. Change one thing at a time, and re-test after each change.
  7. Keep notes: date, page, tool, score and key metrics.

The numbers that matter

Time to First Byte (TTFB)

How long it takes for the server to start sending the page. It reflects your hosting, your caching and how much work the server does per page.

  • Good: under about 0.8 seconds (Google's guidance for a good TTFB)
  • If it's slow: turn on page caching. If your host runs LiteSpeed, use the LiteSpeed Cache plugin. See speed up WordPress with LiteSpeed Cache.

Largest Contentful Paint (LCP)

When the main content, usually the hero image or heading, appears. Good is 2.5 seconds or less. Usually improved by caching and image optimization.

Interaction to Next Paint (INP)

How quickly the page responds to taps and clicks. Good is 200 ms or less. Only available in field data. In lab tests, Total Blocking Time (TBT) is a useful stand-in.

Cumulative Layout Shift (CLS)

How much the page jumps around while loading. Good is 0.1 or less.

For a deeper explanation of these three, see Core Web Vitals explained.

Page weight and request count

The total size of everything the page downloads, and how many files. A lean page is often 1 to 2 MB or less. Heavy pages are often dragged down by large images, video, or many third-party scripts.

Don't obsess over the score

The 0 to 100 Lighthouse score is a summary of lab metrics on a simulated device. It's useful for tracking progress, but:

  • It varies between runs.
  • It's run on a deliberately slow simulated mobile device.
  • A score of 100 isn't necessary for a fast, successful site.

Focus on real-user metrics (field data) and how the site feels on an actual phone.

Turning results into a to-do list

PageSpeed Insights lists "opportunities" and "diagnostics". Common ones, and what they usually mean:

Suggestion What to do
Reduce initial server response time Turn on page caching; check for slow plugins
Properly size images Resize images to display size
Serve images in next-gen formats Use WebP. See optimize images for the web
Eliminate render-blocking resources Defer non-critical CSS and JS
Reduce unused JavaScript Remove plugins and third-party scripts you don't need
Avoid enormous network payloads Compress images; remove auto-playing video
Image elements do not have explicit width and height Add dimensions

Fix the biggest items first. Usually that's caching, then images, then scripts.

Testing your hosting itself

To separate hosting speed from site speed:

  • Upload a tiny static file, like test.html containing a single line, and check its TTFB. That's roughly your server's baseline.
  • Compare it with the TTFB of a WordPress page with caching on, and then with caching off.

If the static file is fast but uncached WordPress pages are slow, the bottleneck is your site's code, plugins or database, not the server. See how many WordPress plugins is too many?

Test from your customers' point of view

Your visitors' location matters. A server in the US will naturally respond faster to US visitors than to visitors in Asia. If you serve a global audience, consider a CDN. See what is a CDN? and how to choose a server location.

The bottom line

Use PageSpeed Insights and your browser's developer tools, test your key pages on mobile, run each test a few times, and focus on TTFB, LCP, INP and CLS rather than the overall score. Fix caching first, then images, then scripts, and re-test after each change.