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
Google PageSpeed Insights, desktop
- Caching
W3 Total Cache served a broken PHP snippet on every request
- Script error
A broken addEventListener call was silently failing on roughly a dozen pages
- Internal links
Gaps in internal linking, including dead links sitting in the footer
Each fault fixed at its source
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.

Photograph William Warby, Unsplash
The move
- 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.
- 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.
- 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.
- 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.

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.
| After | ||
|---|---|---|
| Caching layer | W3 Total Cache serving a broken PHP snippet on every request | Corrected at the source; caching intact, the broken snippet gone |
| Site-wide script | A broken addEventListener call failing silently on about 12 pages | Fixed at the point it was declared |
| Internal linking | Gaps in internal linking, including broken footer links | Audited and repaired site-wide |
| Largest Contentful Paint | 8.7 seconds | 3.3 seconds |
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
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.
Related services and reading
Next project
Velmora (demo brand)
SPAs and passport copies lived in WhatsApp chats, inboxes and laptops. Nobody could say who had opened what.
Working on something with a similar shape?
hello@kuraib.site