General
How to disable or enable scripts with Regex
You can disable or enable scripts in the Perfmatters Script Manager using Regex (regular expressions). This is especially helpful for...
Disable WooCommerce Reviews
Reviews are enabled by default when you install WooCommerce. If you aren’t using them, they load unnecessary scripts, dashboard widgets,...
How to disable the WordPress Heartbeat API
The WordPress Heartbeat API uses /wp-admin/admin-ajax.php to run AJAX calls from the web browser. While this is great and all it...
How to disable WooCommerce widgets
WooCommerce by default comes with a lot of widgets installed. A lot of times these aren’t used anywhere as themes...
How to host Google Fonts locally in WordPress
There have always been a few advantages to hosting Google Fonts locally instead of using Google’s CDN. However, as of...
How to optimize your WordPress database (a few simple clicks)
Optimizing your WordPress database is important when it comes to keeping your site healthy and running fast. Over time things...
How to remove WordPress version number
By default, the following tag shows up in every WordPress install. <meta name="generator" content="WordPress 4.7.5" /> It shows the version...
How to enable CDN rewrite in WordPress
The CDN rewrite option allows you to easily use third-party CDN providers on your WordPress site. Rewrite means that it...
How to remove RSS feed links in WordPress
Similar to how WordPress generates RSS feeds, it also generates RSS feed links for your pages/posts, comments, tags, etc. You...
How to disable WooCommerce status meta box
By default, WooCommerce has a status meta box (widget) that loads in the WordPress dashboard. A lot of times this...
How to disable self-pingbacks in WordPress
A pingback is basically an automated comment that gets created when another blog links to you. A self-pingback is created when...
How to disable RSS feeds in WordPress
By default, WordPress generates all types of different RSS feeds for your site. While RSS feeds can be useful if...
How to disable emojis in WordPress
Emojis are fun and all, but if you aren’t using them, they actually load a JavaScript file (wp-emoji-release.min.js) on every...
How to change the Heartbeat frequency in WordPress
The WordPress Heartbeat API uses /wp-admin/admin-ajax.php to run AJAX calls from the web browser. While this is great, it can cause...
How to disable and limit post revisions in WordPress
WordPress automatically saves revisions when you are working on posts and pages. These can begin to add up pretty quickly....
How to use the Script Manager’s MU mode to disable WordPress plugins
The Script Manager is a very powerful tool and lets you easily disable front-end scripts on a per post/page or...
How to remove query strings from static resources in WordPress
Query strings such as “?” or “&” are sometimes appended on the ends of assets (CSS, JS) in WordPress, along with the...
WordPress add code to header, body, footer
There are times when you might need to add custom code to your WordPress site’s header (head), body, or footer....
Filters to further customize Perfmatters
Below is a list of all the filters available in Perfmatters. These allow you to further customize the plugin. If...
How to change autosave interval in WordPress
WordPress, by default, automatically saves a draft every 60 seconds (1 minute). There are reasons why you might want to...
How to create a blank favicon on your WordPress site
If you’re constantly benchmarking new WordPress sites, especially fresh installs, it can be annoying as a missing favicon will generate...
How to disable comments in WordPress
There are times when you have a WordPress site where you won’t need, want, or use comments. Opinions are good,...
How to remove the WordPress author comment link and website field
WordPress comments, by default, include a website field. This also creates a link on the author’s name. First off, this...
How to add font-display:swap to your Google Fonts
By default, Google Fonts are render-blocking and might take a while to load. The problem is that most modern browsers...
How to delete WordPress transients (expired or all)
WordPress transients provide a simple and standardized way for developers to store cached data in the database temporarily, along with...