Skip to content
BeoHosting
BeoHosting
WordPress

How to Boost WordPress Site Speed

BeoHosting Team··11 min read read
How to Boost WordPress Site Speed

Why WordPress site speed matters

Page load speed directly affects three key aspects of your online presence: user experience, SEO ranking, and conversion rate. Google has confirmed that site speed is a ranking factor, and research shows that 53% of mobile users abandon a site that takes longer than 3 seconds to load.

WordPress is the most flexible CMS in the world, but that flexibility comes at a cost. Every plugin, theme, and extra widget adds code the browser has to load. Without proper optimization, a WordPress site can become frustratingly slow. The good news: most speed problems can be solved without technical knowledge.

Image optimization

Images are the most common cause of a slow WordPress site. The average web page has 1-3 MB of images, and unoptimized images can push that to 10+ MB.

Image compression

Compression reduces file size without visible quality loss. For WordPress, we recommend the following plugins:

  • ShortPixel: Automatically compresses images on upload. Supports lossy, glossy, and lossless compression. 100 free images per month.
  • Imagify: From the creators of WP Rocket. Simple interface, bulk optimization of existing images. 20 MB free per month.
  • EWWW Image Optimizer: Runs locally on the server (doesn't send images to an external service). Good for sites with sensitive content.

WebP format

WebP format delivers 25-35% smaller file sizes than JPEG at the same quality. All modern browsers support WebP. Most image optimization plugins automatically convert images to WebP and serve them to browsers that support it, while older browsers receive the original JPEG/PNG.

Lazy loading

Lazy loading only loads images when the user scrolls to them. WordPress 5.5+ has built-in lazy loading for images, but plugins like LiteSpeed Cache offer more advanced options including lazy loading for iframes and video content.

Correct dimensions

Don't upload a 4000x3000 pixel image if it will display at 800x600. WordPress automatically creates multiple sizes of every image, but it's better to upload images at roughly the right size. For blog posts, 1200px wide is usually enough.

Cache configuration

Caching is the most effective way to speed up a WordPress site. Instead of the server generating each page from scratch (reading the database, running PHP code, assembling HTML), a cached page is served directly.

LiteSpeed Cache (recommended on BeoHosting)

If your hosting uses a LiteSpeed server (like BeoHosting), the LiteSpeed Cache plugin is the best choice. It works at the server level, which makes it faster than any PHP-based cache plugin.

  • Page Cache: Caches complete HTML pages. Enable for all page types.
  • Browser Cache: Sets Cache-Control headers for static assets. Recommended value: 1 year for images, CSS, and JS.
  • Object Cache: Caches database query results. Requires Redis or Memcached on the server.
  • CSS/JS Minification: Removes unnecessary whitespace and comments from CSS and JavaScript files.
  • CSS/JS Combination: Merges multiple CSS or JS files into one, reducing the number of HTTP requests.

WP Rocket (alternative)

WP Rocket is a premium cache plugin ($59/yr) that runs on any server. Easier to configure than LiteSpeed Cache, with excellent default settings. Ideal for users who don't want to dive into detailed configuration.

CDN integration

A CDN (Content Delivery Network) distributes copies of your site across servers worldwide. When a visitor from Germany visits your site hosted elsewhere in Europe, the CDN serves static assets from the nearest server - perhaps from Frankfurt.

Cloudflare (free)

  • Free plan with CDN, DNS, and DDoS protection.
  • Simple integration - change your nameservers to Cloudflare and enable the proxy.
  • Auto Minify for CSS, JS, and HTML.
  • Polish option for automatic image optimization (Pro plan).

QUIC.cloud

  • CDN optimized for LiteSpeed servers and the LiteSpeed Cache plugin.
  • Free tier with limited traffic.
  • Caches dynamic content too (not just static files).
  • Simple activation directly from the LiteSpeed Cache plugin.

Database cleanup

Over time, a WordPress database accumulates unnecessary data that slows down queries. Regular cleanup can significantly improve performance.

What to clean

  • Post revisions: WordPress saves every revision of every post. A site with 100 posts can have 1,000+ revisions. Limit revisions to 3-5 per post by adding to wp-config.php: define('WP_POST_REVISIONS', 5);
  • Spam and trashed comments: Spam and trashed comments take up space in the database. Deleting them is safe and recommended.
  • Transients: Temporary data WordPress and plugins store in the database. Expired transients are useless and can be deleted.
  • Autoload options: Some plugins store large amounts of data in the wp_options table with autoload=yes. That means this data loads on every request.

Database cleanup plugins

  • WP-Optimize: Free plugin for database cleanup, image compression, and caching. You can schedule automatic cleanups.
  • Advanced Database Cleaner: A more detailed database overview with the option to delete orphaned tables left behind by uninstalled plugins.

Plugin optimization

Every WordPress plugin adds PHP code, CSS, and JavaScript that load on every page. More plugins means a slower site - but it's not just the number, quality matters too.

Plugin audit

  • Deactivate and delete plugins you don't use. A deactivated plugin is still a security risk.
  • Check whether you have two plugins doing the same thing (e.g., two SEO plugins, two cache plugins).
  • Use the Query Monitor plugin to see which plugins slow the site down (how many database queries each one runs).

Selective loading

Some plugins load their CSS and JS on every page, even where they're not needed. For example, Contact Form 7 loads JavaScript on all pages even though the form exists only on the contact page. Plugins like Asset CleanUp or Perfmatters let you selectively disable plugin resources on pages where they aren't needed.

Hosting choice and optimization

Hosting is the foundation of your site's speed. The clearest example: a WordPress site on slow shared hosting with HDD disks will be slow regardless of optimization. The same site on quality hosting with NVMe SSDs and a LiteSpeed server will load 3-5 times faster.

What to look for in hosting for speed

  • LiteSpeed server: Faster than Apache, with built-in server-level caching. BeoHosting uses LiteSpeed on all plans.
  • NVMe SSD disks: Up to 10x faster than regular SSDs for reading/writing data.
  • PHP 8.2+: Newer PHP versions are dramatically faster than older ones. PHP 8.2 is up to 3x faster than PHP 7.4.
  • HTTP/3 support: The latest HTTP protocol with better performance, especially on weaker networks.
  • Server location: The closer the server is to your visitors, the lower the latency. For sites targeting the United Kingdom and Europe, a server in Europe is ideal.

Measuring speed

You can't improve what you don't measure. Use these tools to test speed before and after optimization:

  • Google PageSpeed Insights: Measures Core Web Vitals and gives concrete recommendations. Aim for a 90+ score on desktop and 70+ on mobile.
  • GTmetrix: More detailed report with a waterfall diagram showing the load order of resources.
  • WebPageTest: An advanced tool that tests from different locations and connection types.

Conclusion

Speeding up a WordPress site is a process that requires work on multiple fronts. Start with image optimization (biggest impact), install a cache plugin (LiteSpeed Cache on BeoHosting), consider a CDN for a global audience, clean the database, and audit your plugins. If your hosting is slow, no optimization will make up the difference - quality hosting with a LiteSpeed server and NVMe disks is an investment that pays off many times over through better user experience, higher SEO rankings, and more conversions.

BeoHosting Team

10+ years of experience — Web hosting and infrastructure specialists

  • Web Hosting
  • WordPress Hosting
  • VPS
  • Dedicated Serveri
  • Domeni
  • SSL
  • cPanel
  • LiteSpeed
  • Linux administracija
  • DNS

Last updated: