You can’t talk about WordPress without bringing up the subject of performance. Although WordPress is the most popular blogging platform in the world, it takes rigorous effort to make it perform at acceptable levels. That being said, you can’t always put the blame on WordPress alone.
I think we are living in a bit of a strange era when it comes to WordPress themes and designs in general. It feels as if theme developers are constantly at each other’s throats, competing for customer recognition.
And most of the time, this comes at the expense of performance and usability. Do you really need to have the ability to style individual words inside an articles’ title? And is it necessary to use a massive framework like Bootstrap for what is essentially the design of one homepage?
I have always enjoyed this little project from Jeremy Thomas; creator of the CSS’ framework Bulma. It goes to show how anyone can develop a user-friendly web page in less than 100 lines of code.
The purpose of design is to enhance the presentation of the content it’s applied to. It might sound obvious, but content being the primary element of a website, it should not be established as an afterthought. (Jeremy Thomas)
Unfortunately, this is not the approach of theme developers today. Enormous resources are put inside the “framework” of a web page, which often leaves content pages feeling dull and monotonous.
If you think that performance doesn’t affect the UX, I dare you to throttle your Internet connection to 50kbps for a whole day.
You’ll quickly learn that performance is perhaps the most critical element of a good user experience.
Keep in mind that:
So, I won’t be taking the conventional approach and recommend that you increase your PHP memory limit.
Instead, I would like to use this opportunity to highlight some of the most valuable tools and plugins I have come across in the past year or so.
This also includes insights about certain technologies that I feel are contributing greatly to better performance for WordPress users.
Still, EasyEngine feels like a true pioneer in this field, and their onboarding process is extremely fast compared to others. You can install EasyEngine and launch a WordPress blog in less than 5 minutes.
In short, EasyEngine is a command-line tool that helps to manage the LEMP (Linux, NGINX, MySQL, PHP) Stack within a Docker instance. You don’t need prior Docker experience, and everything’s made to run in a ‘behind the scenes’ manner. The only thing you do need is access to either a dedicated Linux server or at least a VPS (Virtual Private Server). Platforms such as DigitalOcean can help you out for as little as $5 per month.
Those with a little bit of web server knowledge will already know that NGINX tends to perform much better than Apache. And since most web hosting providers still use Apache as their default web server, the performance improvements you see from switching to NGINX are immediate.
But, this is not the only draw for EasyEngine. Other than significant performance improvements, EasyEngine makes your day-to-day life easier as well.
And the best part is that EasyEngine is entirely open-source. It is supported by passionate developers who love Open Web and have a strong determination to make the Web faster.
I would highly recommend this option if you want to significantly optimize your site’s performance, but also have access to the most modern server management tools.
Maybe working with the Linux command-line interface isn’t your thing, but I’m sure your web host will be more than happy to lend you a helping hand.
The first time I heard about OpenLiteSpeed was from DigitalOcean. I feel like I would have switched to OLS a long time ago had DigitalOcean added it as a default option for its Droplet configuration panel. Nevertheless, I have made the switch and very happy with the results so far.
“OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise and contains all of the essential features. OLS provides enormous scalability and an accelerated hosting platform for WordPress.”
Essentially, OpenLiteSpeed for WordPress consists of three central elements:
Any benchmarks published in recent years showcase that OLS can outperform the likes of Apache and NGINX with up to 200% better performance.
The LiteSpeed Cache plugin (500,000+ users) itself provides unparalleled performance, including exclusive features for OLS users. E.g. Exclude custom pages from the cache using WordPress taxonomies. Also, adds support for HTTP/2, QUIC, and ESI.
If you are familiar with DigitalOcean or Amazon AWS, then making the switch to OLS should be relatively painless. After setting up a new server, you’ll be able to use a WebAdmin panel to make further customizations to your virtual hosts, SSL certificates, and general settings.
As far as support goes for traditional hosting providers like BlueHost and others — you will have to contact your provider directly. I know for a fact there are hosting providers that have OpenLiteSpeed options.
Whenever someone visits your website, they have to load every single resource to render the page fully. This also includes external resources.
There are two problems with this:
Fortunately, a few of the solutions mentioned in this article address this issue directly.
It’s not easy to give up on Google Analytics. The in-depth metrics combined with real-time stats leaves competition stuck in the mud. All the while, Google Analytics is an external solution. Meaning, every time a new reader comes to your site, they will have to make a ‘round trip’ to Google servers to download the necessary files.
And because Google has set cache expiry to just 2 hours, this impacts not only with your PageSpeed score but also means that users’ will consistently need to redownload the tracking file.
Fortunately, the CAOS plugin removes the need to rely on Google’s rules for using analytics. With CAOS, you can host Google Analytics locally on your server, without any limitations to tracking or data reporting.
The settings dashboard includes many useful features.
E.g. You can enable compatibility with popular plugins like Monster Insights and Analytify. You can also set a custom Cookie expiry period, and manage different GDPR related options.
Even if the performance improvements are minimal for this specific case, this kind of optimization techniques does start to add up over time.
Using multiple Google Fonts, including multiple variations, means that users’ constantly need to make external requests with Google to load the actual font. This means Google-enforced cache expiry, multiple DNS requests, and delayed page load times.
This plugin will automatically download all the fonts you need and store them locally. Also, the plugin will generate a unique stylesheet that is automatically included in your website header. There are no compatibility issues, and CAOS for Webfonts works great with popular caching plugins.
And if you do end up using this plugin, remember to remove any requests to Google Fonts from your theme and/or plugin files.
There are many reasons to love SVG — with most prominent of them being performance improvements. Unlike traditional image formats, SVG images are created using markup-language, which web browsers interpret much like they would HTML and CSS. This leads to many different benefits.
Smaller file size. SVG images use vectors rather than pixels. As a result, you can reduce page size and reduce the time it takes to load a page fully.
Infinite scaling. Have you ever tried to scale a PNG image above its native dimensions? At a certain point, you can’t recognize the image anymore. With SVG images, this isn’t an issue. Vector images can be scaled infinitely without loss in image quality or increase in file size.
Use CSS animation. You can add creative animation effects to your vector images using CSS. Trying to do the same thing using a GIF image would result in an excessively large image.
The only caveat for SVG images is that unless you are a designer, creating them is not exactly easy. But, you can always use stock illustrations, and illustrations provided by third-parties.
Icons8 is home to more than 90,000 icons, all of which have an option to download the icons in SVG format.
Last but not least, if you plan to use SVG images on a WordPress site, you are going to need to download the SVG Support plugin. This is because WordPress does not allow to upload SVG files by default. The reasoning is security concerns, but the said plugin takes care of that.
Having a reliable performance optimization plugin is critical. It’s much more convenient to have optimization tasks automated than having to do them manually each time you change your site structure.
Perfmatters is not a free plugin, but that shouldn’t stop you from looking into what it has to offer. The plugin covers a lot of ground for interesting optimizations tweaks. Automated prefetching, script management, and rewrite management are just a few of my favorites.
And the cherry on top is that the plugin authors take feedback directly from the community. You can suggest features yourself, at which point they will go under review, pending discussion and approval.
You can look up every single script loaded by your themes and plugins. And then, manually decide whether you wish to keep that script enabled or disabled. Also, you can use Regex to target specific pages and taxonomies where you would like to see scripts disabled.
Chances are, you have visited at least one AMP article in the past. Maybe even more. Accelerated Mobile Pages or AMP as it’s commonly known helps to speed up the mobile browsing experience. Specifically, Google is using AMP to deliver near-instantaneous load times for its mobile users.
All in all, the performance improvements are definitely significant.
And all you really need to do is install a plugin like AMP for WP and it will take care of everything by itself. The plugin offers extensive configuration tools to help you customize your AMP pages for smooth user experience.
The most notable features:
As always, experiment and see what results you get. AMP is very popular amongst food bloggers and media sites, and you might find that you like using the default WordPress over AMP.
Lazy loading is the process of serving content on demand. Let’s say you have a blog post with 20 images. By default, WordPress would load all of the images at once whenever a reader lands on your post.
This means that the reader would have to download multiple megabytes of content even if they never reached the bottom of the article. Clearly, it’s counterintuitive to performance optimization.
And thankfully, lazy loading was invented as a reliable alternative. With lazy loading, readers will only request content — images, videos, and the like — whenever a reader has that content in their viewport.
You can grab a plugin like Lazy Load from the WordPress plugin repo and be on your way. It adds lazy loading functionality seamlessly.
Lastly, Google is working on bringing lazy loading to Chrome as a native feature. Starting with Version 75, the Google Chrome web browser will perform lazy loading by default. An exciting new addition, and should yield significant performance improvements across the whole of the web.
Keep in mind this is a Chrome-only feature. You’ll still need a plugin for your WordPress site to offer this feature for other browsers.
Instant Page is an extremely niche solution. It uses hover-based preloading, which preloads a page a few milliseconds before a user clicks on it.
“Before a user clicks on a link, they hover their mouse over that link. When a user has hovered for 65 ms there is one chance out of two that they will click on that link, so instant.page starts preloading at this moment, leaving on average over 300 ms for the page to preload.”
This also works great for mobile users, since the user has to release their finger from the display to load a new page. As a result, this snippet has plenty of time to preload the page.
Instant Page does not load more than the basic HTML of the following page. So, there’s no excessive strain being put on the users’ available resources or bandwidth.
And even then, Instant Page provides enough support to make it look like your pages are loading instantaneously.
Quicklink is a Google-built library for pre-fetching viewport links whilst the user is in idle status. Both Quicklink and Instant Page have a lot of similarities between them, but Quicklink works slightly differently.
So, for example, let’s say you have a really long paragraph section in your article. And in this long paragraph, you have a handful of links. These links can be pointing to both internal and external content. Whenever a reader spends just enough time to be considered ‘idle’, the Quicklink library will automatically pre-fetch all those links inside the given paragraph.
So, now, if a reader was to click on any of those links, the follow-up pages would have already been prefetched. This is a really neat and quirky way of improving user experience by thoughtfully monitoring readers’ activity.
Also, if you are a developer, then you can customize the library using custom Recipes.
WordPress is known to have a bit of a tough time with providing optimal performance. But, as is evident by all the nifty tools in this article, not all is lost. By applying the right techniques and managing your resources thoughtfully, you can make your WordPress site faster.
Here is a quick recap of what we learned:
If you know other tips and tricks that have significantly improved your WordPress sites’ performance, let us know in the comments down below!
About the author: Alex Ivanovs is a digital marketing specialist with a knack for writing, UX design, and all-things success. Visit his site The Divine Indigo.
Title image: Taxi illustration pack from Ouch, the library of free vectors
Finding the right music for a video can be challenging. And buying a proper license…
We've all had enough fun with face swapping. It's time to put jokes aside. Meet…