Search engines now take into account the loading speed of websites when they compile search results, giving fast loading sites a little boost in the rankings.
Page load time also has a noticeable impact on conversion rates – in layman’s terms this is the rate that a website “converts” casual visitors into customers, subscribers or fans (depending on your goals).
I’ve put together an extensive list of speed optimisations that I use or recommend for WordPress websites. If you have a standard website filled with content I would expect your page load times to drop by 75% – 95% if you follow all these recommendations.
Optimising web hosting for site speed
- Choose hosting geographically located close to most of your users. For UK-based businesses, I’ve had good experiences with Krystal.
If you’d like to try out Krystal you can get £10 free credit if you use the promo code ‘LUCIDRHINO’ at checkout. Full disclosure – I receive a small commission, at no extra cost to you. But they’re genuinely amazing. - Use hosting running LiteSpeed. For most hosting applications LiteSpeed kicks ass compared to Apache and Nginx, and its configuration is exactly the same as Apache so I’ve always found migrating websites from Apache to LiteSpeed to be a doddle.
- Use the latest version of PHP compatible with your plugins and theme, definitely something in the PHP 7 or 8 series.
- Newer versions of MySQL modules like MySQL Native Driver (nd_pdo_mysql) may give a smidge of a performance improvement to older versions [ source ]. Just make sure you don’t have conflicting MySQL modules active together. You can usually activate PHP modules in the same place you set the current version of PHP.
- I recommend setting the PHP memory limit to 256mb but do check with your hosting provider.
- Compress content so it’s delivered with gzip, brotli or something similar. Here’s a free website compression checking tool.
- Add .htaccess expires headers to tell browsers how long to cache your site content for faster future visits
Essential WordPress Optimisations for Lightning Speed
- Keep WordPress, plugins and themes up to date, as updates sometimes include optimisations and innovations that help site speed. It’s also crucial for site security.
- Monitor the health status of your website via the Tools menu in your admin dashboard. That’ll flag up any configuration issues including missing PHP modules.
- Cut down the number of plugins in use and prefer more lightweight plugins where you have a choice. For example don’t use a plugin with 100 features just for one of them when there’s another plugin available that does just that one thing equally well. Jetpack is commonly misused in this way.
- Use a lightweight theme. I often use Divi which isn’t known for being lightweight, but making use of other optimisations in this list it can still load pretty rapidly. Some speedy themes you can try are Astra, GeneratePress, OceanWP and Schema.
- Regularly optimise your database, but always remember to back up your website first and only use reputable plugins for this – WP-Optimize is good.
Plugins that help with site speed:
- LiteSpeed Cache – though this is only worth using on servers running LiteSpeed. Otherwise I’d recommend WP Super Cache, and I’ve heard good things about WP Rocket. A caching plugin should ideally also:
- Handle minification of files. If it doesn’t then Autoptimize is your friend.
- Allow you to set up DNS prefetching for commonly loaded external scripts or files.
- Allow lazy loading of images. If not then try Flying Images (this plugin also offers a free image CDN and WebP conversion).
- Use Asset CleanUp to remove code from pages where it’s not needed. This cut 20% of the page load time on this website.
- If your site has a blog consider serving the posts using an Accelerated Mobile Pages plugin
- Flying Analytics – this loads Google Analytics code (if you need it) from your local hosting rather than making browsers establish a separate connection to get the code from Google’s servers.
- Flying Pages – this makes the browser preload pages linked to from the current page before users click links. Your caching plugin may be able to do this though. I’ve found this plugin works better than the LiteSpeed Cache preloader with Divi.
When it comes to site content:
- Make sure your website images have as small filesizes as possible. Some tips:
- Scale them no larger then the sizes they’ll be displayed at. For images that will be displayed across the full width of the browser I find a width 1200px – 1500px is usually adequate, depending on how much detail they contain.
- Save images in a sensible file format. JPG for photos, SVG for logos and other line based details or PNG for applications where SVG doesn’t work perfectly. To upload SVGs to a WordPress website use something like the Safe SVG plugin.
- Compress images before uploading. Photoshop has a great feature for this called ‘save to web’.
- After uploading images in one of those formats deliver them in WebP format to browsers that support it (not all do yet). Here’s how to serve WebP in WordPress websites running LiteSpeed.
- Reuse large images like header images if you can as browsers will only load each image once in a session, so the loads of subsequent pages using the same image will use a version of the image previously downloaded by the browser, making it appear much sooner.
- Prefer to load resources like fonts and analytics code from your local hosting if possible. However, large video files are usually best handled by specialist video hosts like YouTube, Vimeo, Metacafe, Dailymotion, Veoh or others. Small background videos shouldn’t be such a problem but hosting large video files will eat up your hosting bandwidth.
Our WordPress optimised web hosting incorporates all these elements as standard
We offer UK-based, customer-focused, and eco-friendly services to keep your website at its peak performance.
Additional Optimisations to consider for Peak Performance
- Use a VPS hosting service. VPS hosting means each website is on its own unique server hardware, not shared with other websites, so more of the processing resources are available for the website. This may be necessary if your site gets a lot of traffic.
- If it’s important for visitors all around the world to be able to load your website superfast then set up a CDN. CloudFlare is a popular solution for site speed and security or your current host may already offer it.
- If you really want to push the envelope export your site as a static website using a service like Hardypress or WP2Static.
- Don’t use Google reCAPTCHA! I know it’s popular but removing it from this website cut down page load times by 0.7 seconds. Use alternative spam protection – my preferred solution is Contact Form 7 with custom quiz fields and a couple of Akismet hooks.
- Don’t use too many fonts. Always remember to KISS – Keep It Simple, Stupid!
For further insights, explore these real-world case studies that demonstrate significant speed improvements following the application of these tips.
Got questions or need personalized guidance? Don’t hesitate to leave a comment below or get in touch directly. I’m here to make your WordPress website perform at its peak.
Looking forward to helping you build a faster, more efficient WordPress website!
0 Comments