Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

RS Head Cleaner Lite

This plugin speeds up your site by minifying and caching JS & CSS files. It also fixes a number of issues, replacing multiple plugins.

This plugin speeds up your site by minifying and caching JS & CSS files. It also cleans up a number of issues, replacing multiple plugins. It improves speed, efficiency, security, SEO, and user experience.

This plugin combines/minifies/caches CSS & JavaScript files, removes junk code from the document HEAD & HTTP headers, hides the Generator/WordPress Version number, removes version numbers from CSS and JS links, removes HTML comments, and fixes the "Read more" link so it displays the entire post.

Documentation / Tech Support


  • Removes the Generator/WordPress Version number from the HEAD section for security reasons. You don't want your WordPress version being easily visible because that makes it easier for hackers to find sites with a specific WordPress version to target. The best defense is to keep your WordPress updated with the latest version, but even if you do keep your site up to date, it still could be vulnerable to zero-day exploits.
  • Removes Version numbers from CSS and JS in the HEAD for the same security reasons you hide WordPress version. Will also improve site loading speed because removing version numbers from the CSS & JS links will allow browsers to properly cache these files, as well as helping your site code to validate. This feature improves your Google PageSpeed score.
  • Removes junk WordPress code from the HEAD of your site: RSD link, Windows Live Writer Manifest link, WordPress Shortlinks (also removed from HTTP Headers), Adjacent Posts links (REL = PREV/NEXT), Emoji Detection bloat as all are unnecessary, hurt your SEO and clutter your site code.
  • Combines, minifies, and caches all of your site's CSS and JavaScript files into a gzip compressed file for even better speed improvements in page loading.
  • Removes HTML comments from your site's code. Many plugins and themes add notes in the HTML code of your site using HTML comments. After a while this can add up, slowing down your page and possibly exposing information about plugins you are using. With this plugin, all that junk is removed automatically.
  • Fixes the "Read more" link so it displays the entire post when you click, not just the part after the "#more".
  • This is one of the fastest and most lightweight JS/CSS compression & minification plugins you can find. It doesn't contain huge libraries.

Several of these features work together to improve page loading speed and will improve your Google PageSpeed score and Yahoo YSlow score. Do a before & after test with GTMetrix to see what we mean.

The JavaScript & CSS cache files are cleared each time the plugin is deactivated manually through the dashboard (but not on automatic or bulk plugin upgrades). If you would like to manually clear the cache, simply deactivate and reactivate the plugin. Important: If you're using a caching plugin, when you do this, be sure to clear your caching plugin's file cache as well to prevent issues from a cached page calling on now-missing JS & CSS files. (For example, with WP Super Cache, go to the settings, and on the Content page, choose "Delete Cache". It will be similar with other caching plugins.)

Use this plugin instead of RS Head Cleaner Plus if you don't want to move JavaScript from the page HEAD to your page footer. (Some themes, especially responsive themes that use JS libraries, need the JS to stay in the HEAD.)


Plugin Documentation | FAQs | Tech Support

NOTE: As with any JS/CSS minification & caching plugin, it's important to test, test, test before implementing on a production site. Because of the type of plugin it is, this plugin may not work for every site out there, but that does not mean the plugin is broken. If you have any issues, please submit a support request so we can look into it and make it as compatible as possible for everyone.

More Info

For a more thorough explanation of what the plugin does and why you need it, as well as how to get the best performance results with it, visit the RS Head Cleaner Lite plugin homepage.


  • WordPress 4.0 or higher (Recommended: WordPress 4.5 or higher)
  • PHP 5.3 or higher (Recommended: PHP 5.5 or higher)
  • Your server must be configured to allow the use of an .htaccess file. (This is enabled by default on the vast majority of servers.)
Author Scott Allen
Contributors RedSand, rsm-support
Tags cache, clean, cleaner, combine, compress, Compression, concatenate, CSS, generator, google, gtmetrix, head, head-cleaner, javascript, minification, minify, more, Optimization, optimize, page speed, pagespeed, performance, search engine optimization, security, seo, speed, yahoo, yslow

Installation Instructions

Option 1: Install the plugin directly through the WordPress Admin Dashboard (Recommended)

  1. Go to Plugins -> Add New.

  2. Type RS Head Cleaner Lite into the Search box, and click Search Plugins.

  3. When the results are displayed, click Install Now.

  4. When it says the plugin has successfully installed, click Activate Plugin to activate the plugin (or you can do this on the Plugins page).

Option 2: Install .zip file through WordPress Admin Dashboard

  1. Go to Plugins -> Add New -> Upload.

  2. Click Choose File and find on your computer's hard drive.

  3. Click Install Now.

  4. Click Activate Plugin to activate the plugin (or you can do this on the Plugins page).

Option 3: Install .zip file through an FTP Client (Recommended for Advanced Users Only)

  1. After downloading, unzip file and use an FTP client to upload the enclosed rs-head-cleaner-lite directory to your WordPress plugins directory (usually /wp-content/plugins/) on your web server.

  2. Go to your Plugins page in the WordPress Admin Dashboard, and find this plugin in the list.

  3. Click Activate to activate the plugin.

Other Notes

This plugin has not been designed specifically for use with Multisite. It can be used in Multisite if activated per site, but should not be Network Activated. As with any plugin, test and make sure it works with your particular setup before using on a production site.

More Info / Documentation

For more info and full documentation, visit the RS Head Cleaner Lite homepage.

released 12/24/16

  • Various minor code improvements.

released 12/08/16

  • Fixed a bug that affected certain debug mode processes.

released 12/06/16

  • Added a compatibility fix for Contact Form 7 version 4.6 and higher.
  • Made various code improvements.

released 09/04/16

  • Made various code improvements.

released 05/11/16

  • Fixed a minor bug.
  • Various minor code improvements.


released 05/01/16

  • Compatibility improvements, including improved compatibility with sliders and responsive themes.
  • Made some improvements to the CSS concatenation and minification.
  • Added feature to disable the emoji detection for older browsers and remove the associated code bloat from the head and other places.
  • Various code improvements.

released 09/09/15

  • Compatibility improvements, including improved compatibility with sliders and responsive themes.
  • Made some improvements to the CSS concatenation and minification.
  • Various code improvements.

released 09/08/15

  • Fixed a couple minor bugs.


released 09/07/15

  • Added error checking to ensure cached CSS and JS files get created, even if there is an error on the first try.
  • Improved compatibility with certain themes and scripts.
  • Added a number of PHP constants that can be added to wp-config.php to modify the plugin's behavior. Documentation will be coming soon.
  • Various other code improvements.


released 07/10/15

  • Improved page load speed, and improved Google PageSpeed, Yahoo YSlow, and GTmetrix scores.
  • Improved compatibility with certain themes and scripts.
  • Improved handling of jQuery and Contact Form 7 scripts. This is one of the few minification plugins that handles these correctly.
  • Added a second concatenated and minified JavaScript in the head to streamline scripts that cannot be moved to the footer without breaking functionality.


released 06/27/15

  • Added a minimum required PHP version of 5.3, as we are no longer supporting PHP 5.2. The PHP team stopped supporting PHP 5.2 back in 2011, and even PHP 5.3 reached its end of life in August 2014. WordPress has a current minimum requirement of 5.2.4, but PHP 5.4 is recommended - see the WordPress requirements. It's extremely important that users stay up to date with the most recent version of WordPress (currently 4.1.1) and a reasonably up-to-date version of PHP for security, functionality, and website performance. (Not only are the newer versions more secure, but they are faster, so its a double win.) We recommend PHP 5.4 or higher, especially if you care about optimizing your site's speed. Also, see PHP Unsupported Branches for more info.
  • Modified the deactivation and uninstall functions to clean up the files in the old folder location as well.
  • Fixed a bug where CSS & JS cache files were not being written in certain situations.


released 06/26/15

  • Added gzip compression and far future Expires headers to concatenated CSS and JS files.
  • Moved the plugin's cache folder into the /wp-content/cache/ folder. New location is /wp-content/cache/rshcl/.
  • Changed the cache file naming system to utilize a faster method.
  • Fixed a bug with login/registration pages not loading scripts properly.


released 06/20/15

  • Fixed a bug with the JavaScript and CSS compression.
  • Added a feature to remove HTML comments and blank lines in the HTML code.


released 04/22/15

  • Fixed some bugs with the JavaScript and CSS compression.
  • Added an .htaccess file to the rs-head-cleaner-lite directory to control browser access to certain files.
  • Increased minimum required WordPress version to 3.8.
  • Made various code improvements.


released 03/06/15

  • Made various minor code improvements.


released 03/03/15

  • Added a function that will clear the JavaScript & CSS cache files each time the plugin is deactivated manually through the dashboard (but not on automatic or bulk plugin upgrades). If you would like to manually clear the cache, simply deactivate and reactivate the plugin. (If you're using a page caching plugin, just be sure to also clear that plugin's cache as well at the same time to prevent related issues.)
  • Fixed a minor bug in the uninstall function.


released 03/01/15

  • Added an uninstall function that completely uninstalls the plugin and removes all cache files, options, data, and traces of its existence when it is deleted through the dashboard.
  • Added a minor JavaScript compatibility fix for Twenty Fourteen and similar themes.


released 01/19/15

  • Fixed a minor bug.
  • Increased minimum required WordPress version to 3.7.


released 12/18/14

  • Added additional security checks.
  • Various code improvements.
  • Fixed a bug that caused the plugin to attempt to cache web font files.


released 07/12/14

  • Added additional security checks.
  • Fixed a minor bug.


released 07/03/14

  • Added the Combine/Minify/Cache CSS & JavaScript feature.


released 06/17/14

  • Updated some features.

released 04/28/14

  • Fixed a bug that caused an error message on certain server configurations.

released 04/13/14

  • Added additional security checks.

released 04/04/14

  • Minor code improvements.


released 03/26/14

  • Added feature to remove version numbers from CSS and JS links in the HEAD.


released 03/17/14

  • Initial release.

Here are a few of the FAQs...for a more complete set of FAQs, please visit: Frequently Asked Questions (FAQs)

If you have any further questions, please submit them at the main WordPress Plugin Support page (our main support channel) and we will be happy to help you out.

Where are the options?

This plugin is fast, and lean...there are no options needed. You install it and it just works.

Does this plugin have any known issues?

We are aware of an issue with some themes using sliders, and some responsive themes. We are currently working on resolving this and creating a fix. Please test this plugin out thoroughly with your theme prior to using it on a live site. We will provide an update as soon as we have this resolved. Most themes are able to use this with no issues whatsoever.

But I already have a caching Plugin installed...Why do I need CSS and JS caching?

Caching plugins are fact we recommend everyone use caching plugins. But it doesn't help speed up the CSS and JavaScript files downloading. A caching plugin speeds up the site by bypassing PHP and database calls by creating static HTML files. If you have a lot of plugins and have 10 JS and 10 CSS files that have to download on every page, that can still bottleneck and slow your site down dramatically. This plugin will reduce those down to 1-2 JS and 1 CSS that have to be downloaded. Combined with a caching plugin, your site will be even faster. On a similar note, even if you have a super-fast, high-end server, you still need to combine and cache your JavaScript and CSS files. This will speed up your site far more than "brute speed" and is an essential step in true speed optimization.

What if I Don't Want to Have My Page's CSS Files Cached?

This plugin is built for speed. That's why it doesn't have an options page, because I didn't want it to have any database calls, which would slow it down. After a certain amount of database calls, you lose any speed improvements. Certain industry leading websites have found that for every 100 milliseconds (1/10th of a second) their site slowed down, they lost 1% in sales. Ouch.

This new feature is integral to the plugin, so the caching isn't a feature you want, then this plugin won't be the right match for you. It's designed for people that are very speed-conscious, and want hardcore solutions.

You do great work...can I hire you?

Absolutely...go to our WordPress Consulting page for more information.


Requires WordPress version: 4.0 or higher

Compatible up to: 4.7.2

Last Updated 25 Dec 2016

Date Added: 08 Apr 2014

Plugin Homepage


4.5 stars
12 ratings


Not Enough Data

Works: 0
Broken: 0