Skip to content

A slow WordPress site: I traced the main speed problem and cut main-content load time from 8.7 to 3.3 seconds.

Client
WordPress business site (confidential)
Result
Largest Contentful Paint: 8.7 to 3.3 seconds
Sector
Websites · WordPress performance
Timeframe
Single technical audit
Engagement
Root-cause diagnostic: caching, a script bug and internal linking

The situation

A WordPress site was losing search visibility, and the load time explained why: 8.7 seconds, well past the point where speed works against both rankings and the person waiting for the page to appear.

The cause was not one obvious thing. A caching plugin, W3 Total Cache, was serving a broken PHP snippet on every request, which meant every request paid a cost before the page had started rendering. A JavaScript bug, a broken addEventListener call, was quietly breaking functionality across roughly a dozen pages. And the internal linking had real gaps, including dead links sitting in the footer, live on every page, doing nothing for users or crawlers.

A close-up of a stopwatch against a black background.

Photograph William Warby, Unsplash

The move

  1. 01

    I started with the caching layer, because a fault early in every request slows everything downstream of it. W3 Total Cache was serving a corrupted PHP snippet on every request. I traced it to the source and removed the broken snippet rather than disabling caching altogether.

  2. 02

    I found the JavaScript bug next: a broken addEventListener call failing silently on roughly a dozen pages, breaking functionality without throwing an error a casual check would catch. I fixed the listener where it was declared, not with a wrapper that would have hidden the same bug somewhere else.

  3. 03

    I audited the internal linking site-wide and fixed the gaps, including dead links in the footer. A broken link in a global element is not a small thing: it is one broken link, repeated on every page the template renders.

  4. 04

    Then I measured Largest Contentful Paint on the same site, before and after, with Google PageSpeed Insights: 8.7 to 3.3 seconds. That is a large gain, and it is still above the 2.5 seconds Google rates as good.

A close-up of code on a laptop screen in a dark room.

Photograph Vishnu Kalanad, Unsplash

What changed

States of the system, not metrics. These are things that either were or were not true, so they can be stated without claiming a result.

Before and after states for the WordPress business site (confidential) engagement.
BeforeAfter
Caching layerW3 Total Cache serving a broken PHP snippet on every requestCorrected at the source; caching intact, the broken snippet gone
Site-wide scriptA broken addEventListener call failing silently on about 12 pagesFixed at the point it was declared
Internal linkingGaps in internal linking, including broken footer linksAudited and repaired site-wide
Largest Contentful Paint8.7 seconds3.3 seconds

Scroll sideways to compare

What shipped

  • Root-cause fix to the caching layer (W3 Total Cache), not a workaround
  • JavaScript addEventListener bug fixed at the source, across roughly a dozen affected pages
  • Internal linking audit and repair, including broken footer links
  • Largest Contentful Paint measured before and after on the same site

The scorecard

What this engagement was held to, and what the platform reported. Each figure names the source it was pulled from.

Largest Contentful Paint
8.7 to 3.3 seconds
Google PageSpeed Insights, desktop, measured before and after on the same site
PageSpeed score, desktop
86 / 100
Google PageSpeed Insights, desktop, after the fix
Root causes fixed
3
Caching, script and internal-linking issues traced to source, not patched around

Every result names its source (Meta Ads Manager, Google Search Console, Google PageSpeed Insights or an automated test suite), never modelled or estimated.