1. Measure before changing anything
Run a representative page through PageSpeed Insights and Lighthouse, and test more than the homepage. Check a key landing page, product page or blog post on mobile and desktop. Record the results before making changes so you can tell whether an optimization actually helped.
Pay attention to Core Web Vitals: Largest Contentful Paint (LCP), Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS). These help identify slow main content, delayed interaction and unexpected layout movement.
2. Optimize images first
Large images are a common source of unnecessary page weight. Resize images to the dimensions they are displayed at, compress them and use modern formats such as WebP or AVIF where supported. Avoid uploading a 4000-pixel image when the design displays it at 700 pixels wide.
Use responsive image markup, provide width and height to reduce layout shifts, and lazy-load below-the-fold images. Do not lazy-load the main hero image if it is the LCP element; it may need to load eagerly and be prioritized.
3. Configure caching carefully
Page caching can serve prebuilt HTML instead of running WordPress and PHP for every visitor. Browser caching helps repeat visitors reuse static assets. Object caching can reduce repeated database work on dynamic sites when the hosting environment supports it.
Choose one coherent caching setup and understand what it caches. Exclude cart, checkout, account and other personalized pages from full-page caching on e-commerce sites. Clear caches after important design or content changes.
4. Review plugins and third-party scripts
Deactivate and remove plugins that are no longer used, but do not assume every plugin is slow. Measure the effect of heavy page builders, analytics tags, chat widgets, ad scripts and embedded media. A third-party script can delay interaction even when the WordPress server is fast.
Load scripts only where needed, defer non-critical JavaScript where safe, and avoid adding multiple plugins that perform the same optimization. Keep WordPress core, themes and plugins updated, and use reputable extensions from maintained sources.
5. Check hosting and server response time
If the server takes a long time to return the first byte, image compression alone will not solve the problem. Review PHP version, available memory, database performance, server location, resource limits and traffic capacity. A low-cost shared plan may be sufficient for a small site, but a growing store or membership site may need stronger resources.
Use a CDN for static assets and geographically distributed visitors when it makes sense. A CDN does not replace good hosting or application-level performance work.
6. Keep the page itself lightweight
Use a clear layout and avoid loading large libraries for small effects. Reduce unnecessary font weights, preload only critical fonts, and avoid autoplay video backgrounds on mobile. Make sure the page does not shift as fonts, images or embeds load.
7. Retest and protect the gains
After each major change, test the same URLs and device profiles. Compare field data when available, because real-user data can differ from a single lab run. Monitor after plugin updates, theme changes and new marketing integrations.
A practical order of operations
- Measure key pages and identify the largest bottleneck.
- Resize and compress oversized images.
- Enable suitable page and browser caching.
- Remove unnecessary plugins and scripts.
- Investigate slow hosting or database queries.
- Improve LCP, INP and CLS issues found in testing.
- Retest and monitor after future updates.
Final thought
WordPress speed work is a process, not a one-click plugin setting. Measure first, fix the biggest issue and verify the result. If your site is slow, unstable or difficult to maintain, tell me what platform and hosting you use and I can help identify the next step.
← Back to all articlesI build and improve Laravel and WordPress websites, APIs and web applications. Tell me about your project.