WordPress Performance Optimisation

WordPress Performance Optimisation

A practical guide to WordPress performance optimisation, covering how to diagnose a slow site, caching, image handling, database maintenance, plugin management, and how hosting infrastructure affects site speed.

WordPress is a capable platform, but it does not optimise itself. How fast your site loads depends on a combination of decisions: how images are handled, whether caching is in place, how lean your plugin stack is, and fundamentally, what the hosting environment underneath it all can actually deliver.

This article covers the main areas worth addressing if you want a faster WordPress site, how to diagnose which of them apply to your site, and how Switchweb’s hosting infrastructure is built to support them.

First, Measure the Problem

Before changing anything, establish a clear, measurable starting point. Run Google’s free PageSpeed Insights tool against your homepage and one or two other important pages, noting the scores and the specific issues flagged under “Opportunities” and “Diagnostics”. This gives you a baseline to compare against as you work through the areas below, and stops you guessing at problems that may not actually be significant. Re-test after each significant change rather than only at the end, so you can see which changes made the difference.

Caching

Caching is one of the highest-impact changes you can make to a WordPress site. Rather than generating a page from scratch on every request, a caching layer stores a static version and serves it directly, reducing both server load and time to first byte. It is the same principle that makes hosting for static websites so fast, applied to a dynamic CMS.

Plugin options like WP Rocket, W3 Total Cache, and LiteSpeed Cache are widely used. Most also include options for minifying CSS, JavaScript, and HTML as part of the same configuration.

Switchweb hosting includes StackCache, a server-side caching layer that handles both static and dynamic content automatically. Because it operates at the server level rather than inside WordPress, it does not depend on a plugin being correctly configured, and it works across all hosted sites without additional setup.

Image Optimisation

Images are typically the largest contributor to page weight, and unoptimised images are the most common single cause of slow load times. Photos uploaded directly from a phone or camera without compression are often many times larger than they need to be for web use. The main approaches are compression, format conversion, and lazy loading.

Compression tools like ShortPixel or TinyPNG reduce file sizes without visible quality loss. Converting images to WebP delivers smaller files at equivalent quality compared to JPEG or PNG. Lazy loading defers images that are off-screen until the visitor scrolls towards them, reducing the initial payload. Also check that images are not being uploaded at far larger dimensions than they are ever displayed, which wastes loading time on detail the visitor never sees.

Switchweb’s CDN handles image compression and optimised delivery as part of its standard configuration, and the panel includes built-in support for next-generation format conversion and lazy loading at the server layer, so these do not require a separate plugin to function.

Database Maintenance

Over time, a WordPress database accumulates data it no longer needs: post revisions, trashed content, spam comments, and expired transients. Left unmanaged, this adds overhead to database queries and can slow down admin and front-end performance.

Plugins like WP-Optimise and Advanced Database Cleaner are useful for clearing this out on a schedule. It is worth setting these to run automatically rather than as a one-off task, and taking a current backup before the first clean-out as a precaution.

Switchweb hosting uses MariaDB for database management. The autoscaling infrastructure means resources are allocated dynamically, so database queries are not constrained by fixed limits even during traffic spikes.

Plugin Management

Every active plugin adds PHP execution overhead on each page load, even on pages where that plugin’s functionality is not being used. Poorly coded plugins can add significantly more. Keeping your plugin stack lean has a measurable effect on performance.

Audit your active plugins periodically and remove anything that is no longer in use: deactivate first, check the site still works as expected, then delete once confirmed unnecessary. Where one plugin can cover multiple functions (for example, Rank Math handles SEO, redirects, and schema markup in one), that is usually preferable to running several single-purpose plugins.

The StackCP control panel gives you visibility into resource usage across your hosting account, which makes it easier to identify plugins that are consuming a disproportionate share of resources.

Theme Weight

Some themes, particularly those built around page builders with extensive built-in features, load a large amount of CSS and JavaScript, much of which may be unused on any given page. Check whether your theme offers options to disable unused features or modules. If your theme is particularly heavy and the other areas here have been addressed, switching to a lighter, well-coded theme can produce a significant improvement, though it is a bigger change to plan carefully.

Third-Party Scripts

Live chat widgets, analytics tools, advertising scripts, and embedded content such as videos or social media posts are loaded from external services, each adding its own loading time and potential delay. Audit which of these are actually in use and providing value, removing or deferring any that are not essential, particularly on key landing pages.

Hosting Infrastructure

Optimisation at the WordPress level can only go so far if the hosting environment is the bottleneck. Server response time, storage speed, and the ability to handle traffic spikes are all determined by the infrastructure your site sits on. An outdated PHP version also leaves noticeable performance on the table, since newer versions run WordPress significantly faster; check your version in your hosting control panel and update to the latest release your theme and plugins support.

Switchweb’s cloud hosting uses an autoscaling platform that adjusts CPU and RAM allocation based on demand. This means a traffic spike does not result in slower response times or errors, because resources are not fixed at a set limit. All plans use 100% SSD and NVMe storage throughout, and the platform supports the latest PHP versions alongside HTTP/2, both of which contribute to faster server response times. Our guide to the best WordPress hosting explains what to look for in a WordPress-optimised platform.

CDN and Edge Caching

A content delivery network distributes your site’s static assets across servers in multiple locations. When a visitor requests a page, assets are served from the edge location nearest to them rather than from the origin server, which reduces latency for users outside your hosting region.

A global CDN with edge caching is included with all Switchweb hosting plans. It handles image compression, code minification, and Gzip compression as part of its standard configuration, without needing separate tools or third-party services to manage.

Additional Optimisation Steps

Beyond the main areas above, a few further steps are worth considering:

  • Remove render-blocking resources by loading JavaScript asynchronously where possible, so scripts do not delay the initial page render. Many caching plugins include defer options, worth enabling gradually and testing carefully.
  • Review and configure HTTP security headers, which can also affect how browsers cache and handle your content.
  • Use an SEO plugin such as Yoast SEO or Rank Math to ensure your content is structured in a way that search engines can process efficiently.

A Practical Diagnostic Checklist

  1. Run PageSpeed Insights and note your current scores and specific flagged issues
  2. Check image sizes on your most visited pages, compressing any that are unnecessarily large
  3. Review your full plugin list and remove anything not actively needed
  4. Confirm caching is in place and properly configured, whether server-level or plugin-based
  5. Check your current PHP version and update if outdated
  6. Audit third-party scripts (chat widgets, analytics, embeds) for anything unnecessary
  7. Re-test after each significant change to confirm improvement
  8. If performance remains poor after all of the above, review whether your hosting plan has sufficient resources for your site

When the Problem Is Your Hosting, Not Your Website

It is worth being honest about this possibility, particularly if you have already addressed images, plugins, and caching with limited improvement. Signs that hosting itself is the bottleneck include slow performance even on a minimal test page with few plugins active, performance that noticeably worsens during busier traffic periods, and a hosting plan that has not been reviewed despite significant site growth since it was first chosen. In these cases, no amount of WordPress-side optimisation will fully resolve the issue, since the underlying server resources are the limiting factor.

Security Alongside Performance

Performance and security are worth addressing together, since a compromised or attacked site will suffer in both areas. Switchweb hosting includes free SSL certificates on all sites, daily automated backups with 30 days of retention, automatic malware scanning, and DDoS protection as standard. Two-factor authentication is available at the account level.

These are included with hosting plans rather than sold as add-ons, which simplifies the setup required to run a site that is both fast and properly protected. If your site is ever compromised despite these safeguards, our step-by-step guide to recovering from a hacked WordPress site covers the immediate actions to take.

Frequently Asked Questions

How do I know if it’s my plugins causing the slowdown?

Many performance testing tools, including some caching and optimisation plugins, can show which plugins are adding the most loading time. Deactivating plugins one at a time and re-testing can also help identify specific culprits, though this is more time-consuming.

Will switching themes definitely fix slow loading times?

Not necessarily on its own, as theme weight is only one of several possible causes. However, if your current theme is particularly heavy and other causes have been addressed, switching to a lighter, well-coded theme can produce a noticeable improvement.

How quickly should I see results after making changes?

Most fixes (image compression, plugin removal, enabling caching) show improvement immediately upon re-testing. Search engines may take longer to reflect improved performance in tools like Search Console, as this is based on data gathered over recent weeks.

Is it ever just a hosting problem, with nothing wrong on the WordPress side?

Yes, particularly on very budget shared hosting that is overcrowded or under-resourced for a site’s actual size and traffic. In these cases, even a well-optimised WordPress site can be held back by slow server response times that are outside your control without changing hosting.

Getting Started

If you are setting up a new WordPress site on Switchweb, the one-click installer gets the core installation done in a few minutes. Automatic updates can be configured to keep WordPress core, plugins, and themes current without manual intervention.

For guidance on specific optimisation tasks or help troubleshooting performance issues, the UK-based support team is available around the clock, and the knowledge base covers common WordPress configuration topics in detail. For a plain-English explanation of how Google measures site speed, see our guide to Core Web Vitals.


Looking to get started on Switchweb? Take a look at our website hosting plans or message us about a free trial.


Pete White

Pete White has worked in the UK web hosting industry for over 20 years, supporting businesses, charities, grassroots campaigns, and non-profit organizations to launch their digital presence with secure, high-performance hosting.

Post Your Comment

SWITCHWEB 7 DAY FREE TRIAL

โ€” No Credit Card Requiredโ€”

7 Day Free Trial
Not ready to commit just yet? That is completely fine. We are confident that once you try Switchweb, you will not want to leave.