WP Rocket With Perfmatters. Both are plugins that speed up WordPress. WP Rocket is a cache plugin that handles page caching and file optimization, and Perfmatters is an optimization plugin that turns off unnecessary WordPress features and scripts.
The two plugins share features such as lazy loading and delaying JavaScript execution, so turning them on in both runs the same job twice. For each overlapping feature, we laid out which side to turn on or off using the settings screens of both plugins.
TOC
5mn read
TOC
5mn read
View more
1️⃣ How WP Rocket and Perfmatters Work Together
↪️ Cache plugins and optimization plugins
WP Rocketis a cache plugin. It saves the first-opened page as an HTML file and sends that file to the next visitor without running WordPress again.
Perfmattersis an optimization plugin without page caching. It turns off default WordPress features such as emojis and embeds, plus plugin scripts a page does not use, and its official site says it is built to work with cache plugins.
So on the first visit, WordPressbuilds the page, Perfmatters trims it, and WP Rocket saves it as an HTML file; from the next visit, that file is served.
The order in which WP Rocket and Perfmatters work
First visit and next visit
First visit
WordPress builds the page
→
Perfmatters Turns off emojis, embeds and unused plugin scripts
→
WP Rocket Saves it as an HTML file
Next visit
WP Rocket Sends the saved file
Does not run WordPress again
2️⃣ WP Rocket With Perfmatters
↪️ Use overlapping features on one side only
Features that exist in both plugins are turned on in one only, left to whichever does them better. WP Rocket handles JavaScript, lazy loading, image dimensions, Google Fonts, database cleanup and CDN; Perfmatters handles CSS, Heartbeat and link preloading.
Perfmatters builds unused CSS right on your server and can keep it as a separate file, which helps repeat visits, and it lets you choose the Heartbeat interval yourself. For link preloading, keep the Perfmatters side, which uses WordPress's built-in speculative loading; for delaying JavaScript execution, WP Rocket, with one-click exclusions and safe mode, breaks sites less.
However, if your server specs are low or you change the design often, it is better to leave Remove Unused CSS to WP Rocket. WP Rocket builds used CSS on an external server and clears it automatically along with the cache when posts or the theme change.
WP Rocket basic settings, you only need to turn off four settings in WP Rocket: [Minify CSS files], [Optimize CSS delivery], [Enable link preloading] and [Control Heartbeat].
Post CleanupPost cleanup — applies to revisions, auto drafts and trashed posts.
RevisionsRevisionsApplied
Auto DraftsAuto draftsApplied
Trashed PostsTrashed postsApplied
Comments CleanupComment cleanup — deletes spam and deleted comments.
Spam CommentsSpam commentsApplied
Trashed CommentsDeleted commentsApplied
Transients CleanupTransients cleanup — clears all transients stored in the DB.
All transientsAll transientsApplied
Database CleanupDatabase cleanup
Optimize TablesOptimize tablesApplied
“Reduces database table overhead.” This is like removing unneeded paper and clips and keeping only the key information neatly organized, so you can use more cabinet space and find the document you want faster.
Choose how many images appear on the first screen (usually 2–3). WP Rocket does not have this feature.
PreloadPreloadLeft empty
Cloudflare Early HintsCloudflare Early HintsNot applied
Turn on only if you use Cloudflare.
Fetch PriorityFetch priorityLeft empty
Speculative LoadingSpeculative loading
Auto (Default)
ModeModeDefault
Uses WordPress's built-in speculative loading as is. Turn off WP Rocket [Enable link preloading].
ConnectionConnection
PreconnectPreconnectLeft empty
Leave empty when used with a cache plugin.
DNS PrefetchDNS prefetchLeft empty
Leave empty when used with a cache plugin.
Lazy Loading
Lazy LoadingLazy loading
ImagesImagesHandled by WP Rocket
WP Rocket handles this, so leave it off.
iFrames and Videosiframes and videosHandled by WP Rocket
WP Rocket handles this, so leave it off.
YouTube Preview ThumbnailsYouTube previewHandled by WP Rocket
WP Rocket handles this, so leave it off.
Add Image DimensionsAdd image dimensionsHandled by WP Rocket
WP Rocket handles this, so leave it off.
CSS Background ImagesCSS background images
Background ImagesBackground imagesHandled by WP Rocket
WP Rocket handles this, so leave it off.
Lazy ElementsLazy elements
ElementsLazy elementsApplied
Cache plugins do not have this feature, so turn it on even when used together.
Element SelectorsElement selectorsLeft empty
Fonts
Google FontsGoogle Fonts
Local Google FontsSelf-host Google FontsHandled by WP Rocket
WP Rocket handles this, so leave it off.
Disable Google FontsDisable Google FontsNot applied
When on, theme fonts change to the default font.
CDN(CDN)
CDN
Enable CDN RewriteCDN rewriteHandled by WP Rocket
If you use a CDN, connect it in WP Rocket [Other CDN].
Analytics
Google Analytics
Enable Local AnalyticsLocal analyticsNot applied
If another plugin already connects Google Analytics, leave it off.
Code
codeCode
Add Header CodeHeader codeLeft empty
Add Body CodeBody codeLeft empty
Add Footer CodeFooter codeLeft empty
Tools
PluginPlugin
Script ManagerScript ManagerApplied
Turns off plugin scripts a page does not use.
Show Advanced OptionsShow advanced optionsApplied
Disable for Logged In UsersDisable for logged-in usersNot applied
Hide Admin Bar MenuHide admin bar menuNot applied
Safe ModeSafe modeNot applied
Accessibility ModeAccessibility modeNot applied
SettingsSettings
Clean UninstallClean up settings on uninstallNot applied
Database
DatabaseDatabase
Post RevisionsRevisionsHandled by WP Rocket
Post Auto-DraftsAuto draftsHandled by WP Rocket
Trashed PostsTrashed postsHandled by WP Rocket
Spam CommentsSpam commentsHandled by WP Rocket
Trashed CommentsTrashed commentsHandled by WP Rocket
Expired TransientsExpired transientsHandled by WP Rocket
All TransientsAll transientsHandled by WP Rocket
TablesOptimize tablesHandled by WP Rocket
Disabled
Scheduled OptimizationScheduled optimizationHandled by WP Rocket
WP Rocket [Schedule Automatic Cleanup] cleans up daily.
Features in both plugins
Where to turn it on
Features
WP Rocket
Perfmatters
CSS
Minify CSS
WP RocketMinify CSS filesOff
PerfmattersMinify CSSOn
Remove unused CSS
WP RocketOptimize CSS DeliveryOff
PerfmattersRemove Unused CSSOn
JavaScript
Minify JavaScript
WP RocketMinify JavaScript filesOn
PerfmattersMinify JavaScriptOff
Load JavaScript deferred
WP RocketLoad JavaScript deferredOn
PerfmattersDefer JavascriptOff
Delay JavaScript execution
WP RocketDelay JavaScript executionOn
PerfmattersDelay JavaScriptOff
Deferred loading
Images
WP RocketEnable for imagesOn
PerfmattersImagesOff
CSS background images
WP RocketEnable for CSS background imagesOn
PerfmattersBackground ImagesOff
iframes and videos
WP RocketEnable for iframes and videosOn
PerfmattersiFrames and VideosOff
YouTube preview image
WP RocketReplace YouTube iframe with preview imageOn
PerfmattersYouTube Preview ThumbnailsOff
Image dimensions
Add missing image dimensions
WP RocketAdd missing image dimensionsOn
PerfmattersAdd Image DimensionsOff
Google Fonts
Self-host Google Fonts
WP RocketSelf-host Google FontsOn
PerfmattersLocal Google FontsOff
Link preloading
Link preloading
WP RocketEnable link preloadingOff
PerfmattersSpeculative Loading › ModeDefault
Heartbeat
Reduce Heartbeat
WP RocketControl HeartbeatOff
PerfmattersDisable HeartbeatOn
Database cleanup
Automatic cleanup
WP RocketSchedule Automatic CleanupOn
PerfmattersScheduled OptimizationOff
CDN
CDN rewrite
WP RocketOther CDNWhen using a CDN
PerfmattersEnable CDN RewriteOff
4️⃣ Order: Save, Clear Cache, Check
After changing settings, save and clear the cache in the order below.
Save and clear cache
5 steps
1
PerfmattersWhen you finish the settings, click [Save Changes].
2
WP RocketAfter turning off the four settings, click [Save Changes].
3
PerfmattersIn the CSS menu, click [Clear Used CSS].
4
WP RocketIn the admin bar, click [WP Rocket] → [Clear and Preload Cache].
5
CheckOpen the page in a logged-out (incognito) window and check that nothing looks broken. If something is broken, put that CSS file in Perfmatters [Excluded Stylesheets]and start again from step 3.
🔢 FAQ & Recommended Content
Perfmatters has no page cache, so it cannot save pages as HTML files.
If your host provides a server cache, you can use that cache with Perfmatters alone; if not, add a cache plugin such as WP Rocket.
Yes. Perfmatters is built to work with cache plugins, and its official documentation has separate recommended settings for use with LiteSpeed Cache and WP Fastest Cache.
Whichever cache plugin you use, turn on features that exist in both plugins on one side only.
Both are paid and billed yearly. For one site, WP Rocket Single is $59.95 a year and Perfmatters Personal is $29.95 a year (checked 2026-10-04).
Discount options are covered in the WP Rocket settings guide and the Perfmatters guide.
🧭WP Rocket and Perfmatters related posts6 posts · 3 tools
ℹ️ Affiliate Disclosure This site's content contains affiliate links. When a visitor buys a product or service through one of them, the site receives a commission from the seller. The amount the buyer pays(it goes down during event discounts ↓)does not go up. Posted prices, discounts, and stock reflect the time of writing and may differ, so confirm with the seller before buying. Products are chosen and reviewed by our own standards, and commissions do not affect the order or content of reviews.