Page speed directly affects both user experience and Google rankings. The first plugin that comes to mind for speed on WordPress is WP Rocket. It is easy to install, but leaving it with the default settings means using only half of its potential. In this guide, we install WP Rocket step by step and explain the recommended settings in each tab.
1. Installation and license activation
- Download the WP Rocket plugin file (.zip) from WP Rocket.
- In the WordPress dashboard, upload the file via Plugins → Add New → Upload Plugin and activate it.
- Page caching is turned on automatically with the installation; you will see the first speed gain even without doing anything else.
Important: Do not use two caching plugins at the same time. If W3 Total Cache, WP Super Cache or LiteSpeed Cache is installed, disable it before installing WP Rocket.
2. Cache tab
- Mobile cache: Keep it on. If your theme generates different HTML on mobile, also enable the "separate cache for mobile devices" option.
- Cache for logged-in users: On membership or e-commerce sites, it is safer to keep this off.
- Cache lifespan: On frequently updated sites, 10 hours can be used; on static sites, it can be kept longer.
3. File optimization
Most of the gains come from this tab, but this is also where most problems appear. Enable the options one by one and check your site each time.
- CSS minification: Can be enabled safely.
- Remove unused CSS: Provides a big gain; after enabling it, be sure to check the appearance of your pages.
- JavaScript minification: Can be enabled safely.
- Defer JavaScript: Works without problems on most sites.
- Delay JavaScript execution: Holds scripts until user interaction; it noticeably improves Core Web Vitals scores. If a menu, slider or form breaks, add the related script to the exclusion list.
4. Media tab
- Lazy load for images and iframes: Turn it on. Leaving the large image in the first screen of the page (LCP) out of lazy load improves the speed score.
- Add missing image dimensions: Turn it on; it reduces content shift (CLS) while the page loads.
- Preview image for YouTube videos: Makes a big difference on pages that contain videos.
5. Preload
Turn on cache preloading; WP Rocket caches the pages in your sitemap before visitors arrive. Preloading the fonts used on your site also improves initial load speed.
6. Database cleanup
Post revisions, auto-drafts, comments in the trash and expired temporary data gradually bloat the database. Do not forget to take a backup before cleanup, and schedule automatic cleanup weekly.
7. CDN and Cloudflare
If you use Cloudflare, you can enable the WP Rocket Cloudflare add-on to clear the cache on both sides at the same time.
Taking WP Rocket even further
WP Rocket is very powerful for caching and file optimization. Adding Perfmatters to disable unnecessary scripts on a per-page basis is a common and effective combination. For a comparison with alternatives, you can take a look at our WP Rocket, FlyingPress and Perfmatters comparison.
Conclusion
A properly configured WP Rocket noticeably raises the speed score on most WordPress sites. Enabling settings one by one and testing your site after each step is the surest way to get a trouble-free result. For all speed and SEO plugins, check out the WordPress Plugins & Themes category.
Frequently Asked Questions
Can WP Rocket be used together with free plugins?
It works smoothly with image compression (e.g. WebP conversion) and SEO plugins. It should only not be used together with another page caching plugin; two caching plugins conflict.
My site broke after installing WP Rocket, what should I do?
The problem usually comes from the file optimization tab. Turn off the "Delay JavaScript execution" and "Remove unused CSS'" options one by one to find which one causes the issue; then add the related file to the exclusion list and turn the option back on.
Does WP Rocket work with hosting-level caching?
Many hosting providers’ server-side caching is compatible with WP Rocket. If your host has its own caching plugin, it is recommended to disable one of them so that you do not do the same job twice.
