WP Rocket is essential.
Loading speed is an important factor for SEO, that's no surprise.
In addition, it is a key factor because it allows you to increase user satisfaction and the experience within the website.
Ways to increase the speed of your WordPress site? Millions.
That's why I bought one of the best caching plugins for Wordpress out there: WP Rocket.
In recent months and due to a migration, I have been having several problems with the speed of my marketing agency's website, which was throwing these values in GTMetrix:
After installing the WP Rocket plugin and playing 5 minutes with its settings the values changed:
I managed this in just 15 minutes of research… and I'm sure there are a lot more improvements I can make thanks to this caching plugin.
Update 5/26/21 Post re-branding of the agency and some other improvements:
I have WP Rocket installed on the blog you are reading right now and I have these speed results:
For this reason, in this post I want to show you and tell you about WP Rocket, its features and why you should use it if you want to optimize the speed of your website.
Let's go with everything!
WP Rocket is one of the best WordPress caching plugins and helps you improve the speed of your website.
Thanks to the tools included in the plugin, you can reduce the loading speed of your website in a few clicks.
I must also say that it is one of the WordPress plugins that makes what is actually more difficult to understand easy, and that is for people who do not want to waste time understanding and understanding each of the functionalities and who just want to have a fast website. It's fundamental.
- Lazyload for images
- Preload fonts and generate cache files
- Optimize and integrate with a CDN
- And many other optimizations
Note: I know that many of you are curious and that is why I want to share screenshots of how I configure WP Rocket on some of my sites. You can try each of the options and test the speed with GTMetrix for example.
Many times I am asked if it is worth investing in a paid WordPress plugin to optimize loading speed and generally (and like all SEO) my answer is: it depends.
But, if it is about promoting a project or business that we know we have to optimize to the maximum, then my answer is: yes, you should buy a premium plugin that allows you to improve your speed in Wordpress.
If you are thinking about WP Rocket here I bring you a complete configuration:
Don't let all these options make you dizzy...
After having purchased the plugin for either 1 site or more, we will find ourselves in Settings – WP Rocket with a panel similar to this one.
The really important thing is to understand that, just by having installed it, surely, you have already greatly improved your loading speed.
Always remember to check every change with GTMetrix .
That's the magic I'm talking about.
It is the WP Rocket CDN and it has a separate cost, you can have it and use it as you don't have to. In my case, I have never tried it, although I am still wondering if I have a better level with this CDN than with BunnyCDN and Cloudflare .
These actions are extremely practical for day-to-day managing a website.
Because they are quick shortcuts to used functionalities:
Clear cache: This clears your website's cache.
Preload Cache: This preloads everything so you can see how fast it goes with preloading on.
Regenerate critical CSS: When there is a CSS problem, this option is usually used to regenerate and build the information.
There are also tons more customizations and options that you can play with, and that's what we're going to talk about next.
When I was just starting to learn SEO , the whole caching thing was always a pain.
I didn't get it!
It is that we have:
- The page cache
- Cache in the mobile version
- user cache
And many other options that honestly I was too lazy to understand.
Basically, the cache means that after a user's first visit to a certain website, this page will load without requesting the information again, that is, it will load much faster.
The mobile cache makes it easy for us to optimize the cache if we have a theme for the mobile version that is different from the desktop version.
The option: “Enable caching for mobile devices” or “Enable caching for mobile devices” will be left ENABLED .
The user cache is used so that logged in users (you, for example) can view the cached version of the website.
Many times it has happened to me that a certain website of mine had problems and I could not view them, this partially solves the problem.
Note: Always remember to open your website incognito when in doubt.
You must leave this option ENABLED .
With this you will tell WP Rocket how often you want the cache to remain uncleaned. The more dynamic your site is, the less time you should allocate to your cache, since we need the version cached by Google to be the most recent. Example: if you have a news site.
In my case, as it is a blog, I leave it in its default configuration of 10 hours.
Probably one of the parts that will affect your loading speed the most.
The HTML minification function reduces the size of the HTML code by removing useless things like comments, spaces and others.
Almost all websites use Google fonts, but they make many requests.
With this function you can combine the Google Fonts and reduce the number of requests.
Query strings are basically version control of static files.
The problem with that is that this check slows down the web a lot and this eliminates the versions.
CSS files or style sheets are very heavy and tend to slow down the web. The ideal would be to use good plugins that do not have requests, but with this you can improve it a lot.
This removes what is not needed: comments, spaces and others, making these files load faster.
By combining them, the CSS files will make fewer requests.
That is to say: if you have, for example, 10 CSS files, they will all be merged into one.
In the event that there are failures on the web, the failed files must be excluded.
You exclude it and you can continue using that function that greatly improves the speed of your website.
Basically you must create a CSS file with the code that is loaded first from the web, so that the site loads faster.
All whitespace, comments, and other code that only makes those scripts heavier will be removed.
It combines them into one so that fewer requests are made to the server, which results in higher loading speed.
In the event that something does not work, we must review and exclude the files.
In this way, the files do not block the loading of the web, which will be faster.
This makes JQuery not crash, but it will make the web load a bit slower.
In media we can optimize everything that has to do with images and similar content.
The Lazy Load or lazy load function means that images, iframes and videos are not loaded until the user reaches where they are and they have to be displayed on the screen. This considerably reduces the number of requests.
It is a good tool to speed up a web page and until now I needed a separate plugin to achieve it. With this plugin you can have it.
I recommend activating it for images and checking immediately that we like how it works and it does not hinder navigation.
Regarding iframes and videos, I have noticed small problems on some sites. So check the operation of your website well after activating them.
WordPress makes a request to the emoji file and sometimes it is a bit slow; from here we deactivate it.
With embedded content we prevent other sites from using our content, which slows down our server.
On the other hand, in addition, it also prevents certain content from being embedded in WordPress.
Let's now talk about the preloading of files, links and DNS requests.
The prefetch function causes the cache to be created before the user visits a URL. With this function the preload is done automatically.
In addition, WP Rocket can create it using the sitemap of various plugins such as Yoast SEO, All-in-one-one, Rank Math SEO or The SEO Framework, if you activate it.
Remind you that these functions increase the CPU consumption of the server.
You can also preload DNS requests.
If, for example, your website calls a map from Google Maps, the DNS is previously loaded to make the request faster. This works for Google Maps, Google Font, Google Fonts, Fonts Awesome or any external file. You just have to insert the domain and subdomain without http for it to work.
They serve to configure various parameters when problems arise.
Note: All this configuration in 98% of the cases should be empty by default but I will still explain what each thing is.
WP Rocket is already compatible with many ecommerce plugins like WooCommerce and Easy Digital Downloads and never caches any of your pages like cart, checkout, checkout, etc.
Keep in mind that if they were cached, some users would be shown other users' pages like the shopping cart or the account page.
WP Rocket is one of the few plugins that saves you the hassle of adding store pages manually.
Sometimes it can be useful that some cookies are loaded in cache and for this there is this function.
You can prevent different user agents from being cached, such as certain browsers that cause problems. For example, if you don't want to cache pages that look bad, like the iPhone browser.
To do this, you must use the user agent, which is the browser with which you enter the web. You add the Apple-iPhone user agent of that version of iPhone and that's it.
It can also be valuable to have the cache of some pages or posts purged.
If there are query strings that are not in cache, with this function you can add them.
You can optimize the WordPress database, without the need to enter the hosting, or install other plugins for this task.
You can delete the revisions that WordPress creates every time you update a content. This means that you will not see the ones that are created every time you edit an entry.
As you will see in the image I have a lot of (439) revisions to clean, doing this will help me to optimize the database.
They are created when we are updating content and with this plugin we can eliminate them.
This function removes discarded entries from our database.
It allows you to program the automatic deletion of spam comments, but personally I also recommend checking them from time to time: be careful with deleting useful comments that have fallen into spam due to bad luck.
You can also delete comments that have been discarded.
Trasients are like a cache of temporary data that WordPress creates from databases.
It allows requests to the database to be made faster and thus WordPress accesses faster. That is, when a certain call is made, it is stored as trasient to be used again later.
Unfortunately having too many can also slow it down, so this feature removes the ones that are no longer useful.
As they have an expiration date, from here we can delete those that no longer serve us.
Another option is to remove all trasients, but this will make the requests somewhat slower.
Once you clean the databases, you have to optimize the tables.
This is done by a function that sorts and improves the speed of how the database works. Increase your speed and decrease your weight.
If you are someone who works with databases or phpMyAdmin, this function will be very valuable to you. With a single click we will optimize the database so that queries are made much faster.
Schedule automatic cleaning
You can program so that this cleaning is done every certain time automatically on a daily, weekly or monthly basis.
WP Rocket allows you to set up a CDN or Content Delivery Network on your WordPress.
Note: WP Rocket offers you the RocketCDN so you can purchase it, but you don't have to.
A CDN is a system of servers that copies our static content such as images, videos, CSS and JS scripts around the world.
So if a user enters our website from the United States, those files are offered to them from the closest server.
With this plugin you can activate this function and configure the CDN that best suits your needs.
Among the best known are Amazon CloudFront, StackPath (formerly MaxCDN), KeyCDN, Akamai, among others.
We can also use our website as a CDN.
If we create a subdomain in our hosting that is called, for example, cdn.mysite.com, it will multiply the speed of our website. This will cause some files to be downloaded from our main domain and others from the cdn subdomain. In this way, the web loads faster when downloading simultaneously.
We can create as many CDNs as we want: cdn1, cdn1, cdn3, etc.
If you detect problems or just don't want some files to be loaded from it, you can exclude them.
It is a function that allows WordPress to be constantly active and checking certain things.
An example is when you are writing and the changes are being saved automatically.
Once activated, you must choose where you want to disable it and where to limit it. And that, naturally, will depend on the needs of each project.
WP Rocket offers several addons that greatly improve speed.
This tool allows you to make the Google Analytics script save locally, and that will save you an external request.
Being local, it will be saved in the browsers cache, which will result in better speed.
The FaceBook pixel is another one that is usually slow and this feature will also save it locally, giving its respective benefits.
There are hostings that, in addition to your cache system, implement their own, as is the case with Varnish.
Unfortunately, most of the time they do not have a plugin as in the case of Siteground that does offer us the possibility of managing its cache system.
Given this scenario, what can happen to us is that you are making a change on your website and you see that the change is not made no matter how much you clean your browser cache or the plugin cache.
With this method we can at least correct that problem if our hosting uses this cache system.
But beware: having 2 caches means that even if you empty the plugin cache, the hosting cache remains intact. But with this addon and with a single click, we empty both.
ClouFlare allows you to control some functions without having to access its control panel. From activating the development mode to see the changes in real time, to activating settings that improve the speed of your website and activating the relative protocol, in which the http: and hppts: protocols are eliminated in static resources.
With Sucuri, this feature offers to flush your cache without leaving WordPress.
This plugin also has several interesting tools for those of us who work with the site on a daily basis.
You can export the settings to have them saved or if you often use the same configuration on several websites.
This feature allows settings to be imported and the plugin to be configured with one click.
This tool is very useful: it allows you to go back to a previous version of the plugin if you have problems with the update.
WP Rocket's Changelog, like others, offers a history of changes to the plugin.
Although when updating it you will see what is new, it is useful to monitor from time to time to see everything that they add, remove and problems that they solve.
Let's now see some WP Rocket errors that can occur while we are optimizing our website to the fullest:
If when using WP Rocket you find a blank screen, it is usually due to lack of memory. It is recommended to use a hosting with a minimum of 256MB of RAM such as Siteground and add the following to the wp-config-php file:
If you get a 500 error and you have enough memory, you may be CPU limited for certain functions. In that case, I recommend disabling cache preloading and looking for better quality hosting.
Cache plugins sometimes cause design issues for compatibility reasons. To verify this, you can try disabling functions such as the combination of scripts, for example, and see if the site continues to look without problems.
You can choose 3 types of license (USD 49, USD 99 or USD 249) depending on whether you need it for one website, three or unlimited.
All options provide 1 year of support and updates. The $49 option is for one site, the $99 option is for 3 sites, and the $249 option is for unlimited websites.
Note: WP Rocket does not offer a trial version, but it does have a 14-day money-back guarantee. In the event that you are not satisfied, you can claim and receive the payment made by the plugin.
Let's keep in mind that this plugin will improve the speed of your wordpress but that does not imply that your website is completely optimized.
Each WordPress installation, depending on the plugins installed, needs a different configuration. And besides, apart from the cache, many other improvements must be made at the level of scripts, images, server, databases and others.