In this ultimate 2020 guide we will go through all the possible reasons why your WordPress is slow and how to fix that! After we are done, your WordPress loading speed will becomes much better and your website will rank better!
For the start, users may leave your website before it even opens! According to Google, 40% of people abandon a website that takes more than 3 seconds to load.
That is why Google prefers to position faster websites higher on the search results pages.
In other words, slow WordPress will make you lose potential visitors and clients, possibly even the existing ones.
If you are not sure how long exactly does it take for your website to open, use this tool to find out.
The common reasons why WordPress websites are slow:
This should really be obvious but it is not for most people so it must be mentioned. Fast, stable and secure hosting environment for your WordPress website is the starting point of your fast WordPress journey.
Web hosting is not just placing a website on the server and forgetting about it. It also includes hardware and software updates, performance monitoring, proper security and user support.
Most of the hosting companies are not focused on a specific niche (e.g. WordPress hosting). Not only that, they also offer shared hosting services so potentially there are hundreds of websites and apps on a single server.
This can be a real issue because hosting companies can’t always update their server software right away when there is a new security or peformance update available. If they do update it right away, they are risking broken or bugged websites, due to their variety.
While the hosting company is delaying software updates, your WordPress website may not perform at its peak or even worse, it may be vulnerable to hack attacks for a longer periods of time. Perfect example of this is PHP 5 to 7 transition.
Here are some points to consider if you would like to switch to a better hosting.
SSD stands for “solid-state drive”. It is a storage device, alternative to HDD (hard disk drive). Unlike HDD, which relies on moving parts and magnetism to store data, SSD uses flash memory (just like USB flash drive does).
Thanks to that, SSD handles all the data transitions a lot faster than any HDD ever could. This goes for both data storing and data accessing. Therefore, if your host uses SSD for data storage, your website will store and fetch data to/from the database much faster.
As it often goes with software, newer versions get better optimizations and new features. PHP7 is no different and it introduces a lot of changes which make it a huge improvement over previous PHP version, which was PHP5.
Some of PHP7 features are reduced memory usage, better error handling, smaller data structures, improved security and so on. Online benchmarks of PHP7 vary a lot depending on website type and development details, but all of the results are saying that it is by far the fastest PHP version yet.
WordPress installations on PHP7 are in most cases running 20-50% faster when compared to those powered by PHP5.
Cloudflare provides CDN (content delivery network), DDoS mitigation, website firewall and much more. It acts as a proxy between the site visitor and the hosting provider. And the best part is, it is free (unless you need premium packages).
Overall, Cloudflare is an easy way to improve your website speed and security, for free.
HTTP stands for “hypertext transfer protocol”. It is used for data communication and it is the foundation of the internet we know today.
Some of the improvements HTTP/2 introduced are:
So, what is the main difference? HTTP/2 changes the way data is formatted and transported between clients and servers, which makes a huge difference when it comes to website loading speed.
CDN stands for “content delivery network”. It is a world-wide network of servers which are storing and providing websites with static resources (such as images, JS and CSS scripts), for maximum loading efficiency.
There are many CDN services out there but I personally would suggest Cloudflare CDN. It is free and requires no extra setup once you create your free Cloudflare account and connect your domain.
This feature will minify HTML and JS / CSS scripts your website is using and increase the loading speed of your pages.
The fastest way of accomplishing this is by using a plugin such as JCH Optimize. This plugin can minify your scripts and HTML but it also comes with extra features such as website cache and script combiner to reduce HTTP requests used by scripts.
If you decide to use Cloudflare, it will minify your scripts at the host level. That way your WordPress won’t need script minify (or cache) plugin. All you need to do is to create a free Cloudflare account, connect your domain, go to Speed / Optimization in your CF dashboard and enable auto minify.
Cloudflare offers an optional rocket loader feature. Rocket Loader prioritizes your website’s content (text, images, fonts etc.) by deferring the loading of all of your JavaScript until after rendering. On pages with JavaScript, this results in a much faster loading experience for your site users. If you enable this option, make sure you test your website afterwards, since sometimes this option may break your scripts!
Also, make sure that you don’t use inline CSS because it can make your WordPress slow. Always load CSS code inside CSS scripts.
Website cache is a temporary storage of website assets such as images and scripts. It speeds up website loading for repeating visitors.
Common way to enable cache on your WordPress website is via cache plugins, such as W3 Total Cache or WP Super Cache.
Cloudflare also provides website cache – at the host level. Just like in the script minify scenario, your WordPress won’t need cache plugin if you choose to go with Cloudflare.
Large and unoptimized WordPress images can make huge issues when it comes to site opening speed. For the start, make sure you don’t use way too many images on a single page or post. This way you will reduce the number of HTTP image requests and reduce the overall weight of images per page or post.
Additionally, make sure you resize your images. Do you really need HD images on your website?
The last thing to do is to make sure you optimize your images or in other words, compress them. That way, you will additionally reduce every image in weight. You can accomplish this with plugins such as ShortPixel or Smush.
Most of the WordPress plugins load their own CSS and JS scripts. The more scripts your website loads, the longer it takes for it to open.
People are often using plugins which provide functionality that can easily be included into theme files or via theme settings. Or even worse, they use 3 different plugins because they don’t know that one of them can provide the solution for all 3.
Things like website cache and script minify can be solved without plugins, on DNS/host level (with Cloudflare).
You really need to be smart about your plugins. If you are not using them, delete them. If you are using them occasionally, deactivate them until you actually need them. And if you figure out that one of your plugins can complement the features of another plugin, use only that one.
Websites get hacked for many reasons and that is why side effects on your site may differ.
In some cases your website will be defaced (visually destroyed) and you will know right away what is going on.
However, in most cases, hackers won’t touch your site visuals but instead, they will upload malicious scripts and “camouflage” them to look as a part of your website.
That way, they can use your site to mine cryptocurrency or to perform different types of attacks on another sites, such as “DDoS”, “brute-force” etc.
Obviously, malicious activity such as that may lower your WordPress performance and make it slow.
Luckily, there is an easy way to check if your WordPress is hacked. It might not be perfect but it works in most cases. Open Sucuri SiteCheck, enter your website URL and press “scan website”.
Results of this scan will show you not only if your website is hacked but also how vulnerable it is, even if it is not currently hacked.
Regardless of your test results, we can help you clean your WordPress from malware and even improve its overall security. Both malware cleanup and security improvements are included in all ouf our monthly hosting & care packages.
Good example of this is commonly used “Contact Form 7” plugin. It loads its own scripts (CSS and JS) on every page of your website. Even on pages where you don’t need contact form. However, there is a cool trick you can use so that CF7 loads its scripts only on pages where you need them.
In general, it is a great practice to inspect your WordPress code and see what scripts are being loaded. That way you can do some research and find different methods on how to prevent scripts you don’t need from loading (or at least load them conditionally).
Hopefully, this article was helpful to you! In case you have any extra questions, feel free lo leave us a comment below and we’ll answer as soon as possible. You can also share your opinion on this article with us. What methods from our list will you use?
Good luck with fixing your slow WordPress! π
The easiest way to describe WordPress care services is to say that they bring peace of mind to WordPress site owners and save their time. But not only that, proper WordPress maintenance and monitoring can prevent a lot of potential problems on your website and make it perform faster and better, helping you attract and convert new clients.
What started in 2010 as a one-man web development operation is now a small and devoted team of web developers and server administrators.
Our focus is on WordPress hosting and WordPress care services such as speed optimizations, bug fixing and security hardening.
We are located in Croatia (Europe).
Our mission is to provide fast, stable and secure hosting environment for your WordPress websites, as well as professional WordPress care services and ongoing user support.
We believe that everybody deserves safe, stable and affordable hosting services. That is why our dedication, commitment and constant learning are reflecting that philosophy.