Skip to content
Pooya NikbakhtSenior full-stack & AI engineer

Project

Slow WordPress site fixed: 47 MB to 567 KB, no rebuild

Lighthouse on the bakery home page, mobile, before and after: Performance 62 to 96, Largest Contentful Paint 143.3 s to 2.7 s (the median run).
A slow WordPress bakery site, fixed without a rebuild. The home page went from 47 MB to 567 KB, mobile speed score from 62 to 96, and the cake form works again.

The site, its problems and the fixes are real: real WordPress, real free plugins and real measurements. Scripts rebuild everything, so anyone can check the work. The photos are real bakery photos from Unsplash, credited on the site and in the repo.

Problem

A freelancer built the bakery's site a few years ago and has since moved on. Since then, the owner has added photos straight from their phone, installed a few plugins that "might be useful", and pasted in a holiday banner. Here is what they said:

  • "The site feels slow on my phone, especially the home page."
  • "Nobody has used the cake order form in months." It had been failing silently: customers saw an error and gave up.
  • "We don't show up on Google when people search for us."
  • "I'd like a chat button and online ordering, but I can't afford a new website."

What I found

  • A 47.0 MB home page. Three camera photos, 6000 to 6800 pixels wide, sat in a slider that played on its own. There was also a 23.5 MB PNG background image. A phone screen is only about 400 pixels wide.
  • Too many plugins and fonts. 8 active plugins, most of them loading their files on every page. Seven font families, each in every weight.
  • Hidden from Google. The setting that tells search engines to stay away ("Discourage search engines") was still on. There was no sitemap, and every page had the same title.
  • A broken order form. The cake order form sent email in a way the web host doesn't allow, so every order failed.
  • Hard to read and use. Light gold text on cream, form fields without labels, and no visible outline for people using a keyboard. A newsletter popup showed on every page, but there was no newsletter.

What I changed

Everything was done on the existing site: same theme, same page builder, same pages. The owner keeps editing exactly the way they did before.

  • Fewer plugins. Removed 6 unused plugins and 2 inactive leftovers.
  • Lighter photos. Replaced the slider with one main photo that loads first. Every photo was cropped, resized and saved as WebP, a lighter format, with smaller versions for phones.
  • Two fonts instead of seven. Cut seven font families to two, hosted on the site itself.
  • Faster repeat visits. Added page caching and browser caching, so pages and files don't have to be rebuilt or downloaded again each time.
  • Back on Google. Let search engines in, turned on the sitemap, and gave every page its own title and description. Added the bakery's address, hours and menu in a format Google can read.
  • A working order form. Proper labels, and email sent through a real mail service from the bakery's own address.
  • Easier to read. Fixed contrast, headings, image descriptions (alt text) and keyboard focus, so all text passes the WCAG AA contrast standard.

The numbers

Measured with Lighthouse 13.6.0 on the same laptop and the same pages, before and after runs interleaved, three runs each, median shown. Mobile uses Lighthouse's simulated slow 4G.

PageDevicePerformanceLargest Contentful PaintPage weight
HomeMobile62 → 96143.3 s → 2.7 s47.0 MB → 567 KB
HomeDesktop49 → 9918.9 s → 0.8 s47.3 MB → 490 KB
MenuMobile69 → 926.4 s → 3.2 s2.3 MB → 484 KB
Blog postMobile85 → 963.5 s → 2.6 s3.6 MB → 285 KB

On every measured page, Accessibility went from 90 to 92 up to 100, Best Practices from 77 to 100, and layout shift to almost 0. Every SEO check passes except indexing, which is switched off on purpose (Lighthouse scores that alone as 69; with indexing on, these pages scored 100). The cake form now delivers every time, checked by an automated test.

How to read these numbers honestly:

  • They are lab numbers, not real visitors. Both sites ran on my laptop with no real network distance. Real-user data needs two to four weeks of traffic after the change, and that is what I'd report back to a client.
  • The 143 second load time before is a simulation of downloading 47 MB over a slow 4G connection. On good Wi-Fi the old page appeared much faster.
  • The photos are real photos from Unsplash, uploaded at full size the way an owner uploads camera files, so the image savings are real. This home page is on the heavy side: with ordinary phone photos a page like this is more often 10 to 30 MB before the fix.
  • The after site includes the new chat widget (about 10 KB of script), because the client asked for it.
  • Measured after the design refresh (below), which added photos and sections: the home page is a little heavier than right after the rescue and scores the same.
  • The table shows the median of each number across three runs; the report images show the single median run, so a value can differ (the simulated "before" load time is 143.3 s in the table and 117.6 s in that one report).

A design refresh, same tools

Once it was fast, the site still looked dated. The Home, Menu, Custom Cakes and About pages were redesigned in the same theme and page builder: a full-width photo hero, product cards with prices, a menu with photos by category, cake sizes and a three-step ordering guide, and a real story page. No new plugins, fonts or scripts, so the owner still edits everything the same way and the speed held.

Added without rebuilding

  • A support chat button, added with one script tag and loaded after the page. On a real job the bakery gets its own support bot built from its menu, hours, cake ordering FAQ and policies.
  • An "Order ahead" spot on the home page and the Custom Cakes page. For now it shows the phone number and the cake form; an online ordering button like the one on Northwind Coffee goes into that box, no redesign needed.

Shopify too

The same job for Shopify stores is prepared: a playbook, ready-to-apply theme code checked against Shopify's Dawn theme, and an app clean-up checklist. Measuring it on a real store is still pending, so there are no Shopify numbers yet.

Outcome

For a site like this one I'd quote about 3.5 days of work, fixed price after a short audit. A rebuild would typically cost three to five times as much, take weeks, and mean learning a new editor. The owner keeps the site they know, and it is fast, findable, and taking cake orders again.

  • Before: a slider, a script-injected banner and a 47.0 MB page.
  • After: same theme and editor, refreshed design, one fast hero photo.

Stack

WordPress with the existing OceanWP theme and Elementor, a cleaned-up child theme, five small must-use plugins, and scripts that rebuild both sites in Docker from the same starting point. Lighthouse runs from a script, and Shopify Liquid for the store version.

Want this for your business?

Send a short note on what you're building or the idea you have. I'll reply with questions and a rough plan. It's free, and I'd love to connect and help.

Typical timeline: 2 to 7 days · From $60. See Fixing and improving your existing website