RS Head Cleaner Plus Plugin for WordPress

RS Head Cleaner Plus Plugin for WordPress removes junk code from the head section, improves speed, efficiency, security, & SEO.


This plugin cleans up a number of issues, doing the work of multiple plugins, improving speed, efficiency, security, SEO, and user experience. It removes junk code from your WordPress head section; moves JavaScript from the header to footer; combines, minifies, and caches CSS and JavaScript files; hides the Generator/WordPress Version number; removes version numbers from CSS and JS links in the head; removes HTML comments; and changes the “Read more” link so it displays the entire post.

Translate This



Why Do I Need RS Head Cleaner Plus?

Here’s a more detailed explanation of what the plugin does.

Remove the WordPress Version Number

The code for the WordPress version number is in the HEAD section of your page and looks like this:

<meta name='generator' content='WordPress 2.7' />

Showing the WordPress version in your site code exposes your site to hackers. Many exploits are version-specific, and even if you keep you blog up to date, there are zero-day exploits that occur before a new version can be released to patch the problem. Hackers run automated programs call “bots” to scour sites looking for this line of code with WordPress versions, and when they find one that matches the version of the exploit they are looking to launch, they send another bot to those sites to launch the attack.

That’s why it’s important to remove the WordPress version number from your site. (Obviously you need to secure your site using more than just this one method.)

Once you activate this plugin, the WordPress version will disappear from your site code.

Remove the Version Numbers from CSS and JS Links in the HEAD

By default WordPress inserts version numbers into the CSS links in the HEAD section of your page and looks like this:

<link rel='stylesheet' id='example-css' href='' type='text/css' media='all' />

<script type='text/javascript' src=''/></script/>

Showing the WordPress version in your CSS and JS links again exposes your site to hackers. For the same reasons we remove the WordPress Generator, you want to remove them from here.

But, that’s not all. Having the version numbers appended to the link keeps browsers from caching the CSS and JS files. If you want your site to run at its fastest, one aspect of that is using caching properly. Removing these version numbers will now allow browsers to cache those files.

One last thing…having version numbers appended to the CSS and JS links causes sites not to validate. So in order to get your site code to validate 100%, you will want to remove those.

Once you activate this plugin, this issue will be fixed and the resulting code will look like this:

<link rel='stylesheet' id='example-css' href='' type='text/css' media='all' />

<script type='text/javascript' src=''/></script/>

Problem solved.

Remove Junk Code from Your Site

This plugin cleans up the HEAD section of your site. For those of you not familiar, that’s the HTML code located between the <HEAD> and </HEAD> tags. WordPress inserts code that can hurt your SEO and site security. This plugin will automatically remove these lines of junk code for you. I’ll explain in a bit more detail.

1 — Remove the The RSD Link

RSD stand for Really Simple Discovery. In a nutshell, it helps remote client software find the info it needs to read and edit the blog. WordPress inserts the following code:

<link rel='EditURI' type='application/rsd+xml' title='RSD' href='' />

The RSD link is only needed if you use remote publishing to your blog. If you only edit your blog through a browser (which is true for most people) then it is more secure to remove this from the header. As a general rule and best practice, it’s always better to have clean code and remove unused code from a site, for efficiency, security and SEO.

2 — The Windows Live Writer Manifest Link

<link rel='wlwmanifest' type='application/wlwmanifest+xml' href='' />

This is a similar deal to RSD. The bottom line is, if you’re not using Windows Live Writer, remove the WLW Manifest link from the HEAD section of your site code to improve security and SEO.

3 — Remove WordPress Shortlinks from the HEAD and HTTP Headers

Shortlinks is a protocol you can use to specified shortened URL’s for each page in your site code. WordPress has provided its own URL-shortening service. WordPress inserts code in your header that provide a link to the “shortened” URL:

<link rel='shortlink' href='' />

If you don’t actually request a shortlink when you write your post/page, it will insert the raw unshortened URL into your page. Ouch. If you notice, it matches the default URL structure before you even setup permalinks in the WordPress settings.

Why even have WordPress create clean, SEO-friendly permalinks, if it’s going to ignore your settings and insert junk like this into your site? Not cool. To be clear, these are NOT SEO-friendly URL’s. It’s one thing to use these for Twitter or affiliate links, but its bad idea to include these in your site code. It is not recommended under any circumstance. These should be removed no matter what as they will only hurt your SEO in a number of ways.

That’s not the only place where WordPress places shortlinks. They are also inserted into the HTTP headers. (These are served invisibly to the browser before the page loads.) Again, ouch. See what it looks like:

Link: <> rel=shortlink

The thing is, this is all according to shortlinks protocol, but WordPress’ implementation is incorrect. If the user has not specifically chosen to create shortlinks, there should not be default “shortlinks” inserted into the site — there should be none at all — and especially not ones that are in the format shown, with SEO-unfriendly URLs, and which expose post ID’s. That’s ok though, this plugin will fix it for you.

4 — Adjacent Posts Links: REL=”PREV” and REL=”NEXT”

WordPress Adjacent links were meant to be an aid in helping with canonical issues with paginated posts on a blog. Unfortunately WordPress’ implementation is incorrect and inserts these on ALL posts/pages, even ones that are not paginated:

<link rel='prev' title='Previous Page' href='' />

<link rel='next' title='Next Page' href='' />

What this does is create a mess, and hurt your SEO. I’ve seen it list pages in these links that were completely unrelated just because they had sequential post numbers in WordPress. I highly recommended turning off the WordPress’ default implementation (which this plugin will do for you).

Move JavaScripts from the HEAD to the Footer to Speed Up Your Page Load
These days it is important for a number of reasons to speed up your site as much as possible. It even affects your SEO and advertising costs:

  1. Usability — Usability and user-friendliness always needs to be the first concern on your website. It’s important to speed up your page because if you have a slow site, it will eventually drive people away. Make your site faster, and improve user engagement on your site.
  2. SEO — Since 2010, page speed has been a known factor of SEO. (And some believed it was even considered long before that.) Google and Yahoo have both provided speed measurement and improvement tools (Google PageSpeed and Yahoo YSlow) that advise moving whatever JavaScripts (that aren’t absolutely necessary to keep in the HEAD) to the footer of your page in order to speed up loading.
  3. AdWords Quality Score — When you advertise on AdWords, Google assigns a quality score for ad. This affects your costs for advertising if you have a poorer score. Page speed is one of the factors that affects your quality score.

Moving your WordPress JavaScripts to the footer is a major factor in speeding up your page load. This plugin will automatically fix this for you.

Combines, Minifies, and Caches CSS and JavaScript Files to Improve Your Page Load Speed Even More
The plugin now goes far beyond moving JavaScript to the footer:

  1. Combine your WordPress CSS files and JavaScripts into a single CSS file and a single JS file.
  2. Minify your CSS and JavaScript files.
  3. Cache your new condensed CSS and JavaScript files.
  4. Apply gzip compression (which further shrinks file size) and add far future “Expires” headers to the concatenated CSS and JS files.
  5. The minified and compressed JavaScript file will be moved to the footer of the page to speed up page loading.
  6. To improve page load speed when Contact Form 7 is installed, the plugin will only include the JS and CSS for Contact Form 7 on pages that actually use its forms. (It tests the page content for the CF7 shortcode…if none are detected, then the CSS & JS aren’t included.)

All of this has been tested and verified with GTMetrix, which tests websites using Google PageSpeed and Yahoo YSlow, and shows the scores. Check it out for yourself…do a before and after test with your site and watch your Google PageSpeed and Yahoo YSlow Scores improve right before your eyes.

For more information, this is explained in more detail further down the page.

Removes HTML Comments to Improve Speed and Security

Many plugins and themes add notes in the HTML code of your site using HTML comments. After a while this can add up to many extra kilobytes of data, slowing down your page. It also can potentially expose information about plugins you are using. This plugin fixes that and removes all that junk automatically.

Fixes the “Read More” Link to Improve Usability

By default, on a WordPress site when a visitor sees an archive page with a list of posts (Home Page, Categories, Tags Archives, Date Archives, Search Results, etc.) and they click on the “Read more” link, it takes them to the point in the post where the more tag was inserted (<!--more-->). This plugin fixes that issue, so when a visitor clicks the “Read more” link, it will display the entire post, for an improved user experience.

How the Minification and Caching of CSS and JavaScript Works in this Plugin

Browsers can only download a limited number of JavaScript and CSS files at once, so it can create a bottleneck if you have a lot, causing the visitor to experience a slow page load, even on high-speed internet. If you’re using WordPress with a lot of plugins, chances are that many of them add their own CSS and JavaScript files to your page. If you have 20 plugins you might have 10 extra CSS and 10 extra JS files in addition to the ones added by your theme. Ouch! That WILL slow a page down. RS Head Cleaner Plus will reduce all those down to 1 CSS and 1 JavaScript file. (With a few exceptions…certain files can’t be combined…like jquery.)

Page Speed Improvements: What Results Can You Expect?

Results will vary on every site. (I have to get that out of the way.) It’s going to depend on how optimized your site already is. But even optimized sites will get excellent results.

This plugin will improve these elements of your Google PageSpeed Score (and more):

It will also improve these elements of your Yahoo YSlow Score (and more):

Real Before and After Examples from GTMetrix:

Google PageSpeed Before/After

Before / After - Google PageSpeed: Minify CSS, Minify JavaScript, Remove query strings from static resources

Yahoo YSlow Before/After

Before / After - Yahoo YSlow: Minify JavaScript and CSS, Make fewer HTTP requests

It will also help improve several other elements of your Google PageSpeed and Yahoo YSlow scores, since many aspects of improving page load speed are related to these. A couple of these are: Defer Parsing of JavaScript (Google PageSpeed) and Reduce DNS Lookups (Yahoo YSlow).

If you want to see the real difference it makes, go to GTMetrix and run a before and after comparison. Deactivate the plugin and run your “Before” report and print it or save as a PDF, and then reactivate it and run your “After” report and print it or save as a PDF. (This works best if you disable caching on your site and clear the file cache before you run these.) Then compare your two reports to see the difference.

When you run your reports, pay attention to the elements mention in the Before/After examples above, and also pay attention to:

These improvements in page loading speed may also help your website’s SEO, in particular your Google rankings, because website speed is a factor in ranking now. I suspect it will become an even more important part of the ranking algorithm as time goes on.

For Best Results

If you REALLY want your site speed to increase, use this in combination with WP Super Cache. Use the “mod_rewrite” method, and then the “Preload” option to preload the the pages of your site. What this will do is go through your site, and create a cached version of every page before anyone ever visits the page, so it will be super fast on the first visit. This will also ensure that all the cache files for RS Head Cleaner Plus are created before anyone visits.

Make sure when you install this plugin and activate it, if you ARE using caching software, have your plugin delete the file cache first thing, otherwise the new improvements won’t go into effect until it refreshes the cache.

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 Plus 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 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

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). (Starting in version 1.3.5.) 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.)

As with any JS/CSS minification & caching plugin, it’s important to test, test, test. 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.

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.


Version 1.4, released 06/27/15

Version 1.3.9, released 06/26/15

Version 1.3.8, released 06/20/15

Version 1.3.7, released 04/22/15

Version 1.3.6, released 03/06/15

Version 1.3.5, released 03/03/15

Version 1.3.4, released 03/01/15

Version 1.3.3, released 01/19/15

Version 1.3.2, released 12/18/14

Version 1.3.1, released 07/12/14

Version 1.3, released 07/03/14

Version 1.1.1, released 06/17/14

Version, released 04/28/14

Version, released 04/13/14

Version, released 04/04/14

Version, released 03/26/14

Version, released 03/17/14

Frequently Asked Questions (FAQs)

See What Others Have Said About
RS Head Cleaner Plus

From Reviews of the plugin on

Great Plugin! I’m telling you. I have tried every single minifier and caching plugin available and compatible with 4.0. Nothing happened! My site speed stayed at around 69-73/100 on Pingdom Tools and around 79-83/100 on Google PageSpeed Insights. I almost gave up looking for a plugin that could improve speed while at the same time allows me to edit my site without having to delete the cache and refresh the page a million times. Until I stumbled upon this amazing plugin today. I installed and activated it (You don’t have to do anything else after activation) And…Zoooom! Wow! I got 89/100 on Pingdom and 90/100 on Google pagespeed insights.


WOW it works well! Hi all.

I have placed this plugin on a small number of websites to see what happens to the speed of loading and the site itself. Speed, is about 25% faster and the site, nothing just the same. A very nice plugin.

This developer is someone to watch.



See What Others Have Said About
RS Head Cleaner Lite

From Reviews of the plugin on

Awsome Awesome Awesome Thank youuuuuu sooooo much man.
It does exactly what you describe.
I install with cross finger to hope not having my website to crash.
I use also use W3 Total Cache plugin.
Just out the box. No configuration nothing.
Than I did check with gtmetrix.
Its sky roketed.
It worth searching and reading and reading.
Thank you so much. THIS IS MUST HAVE PLUGIN.
My website quite heavy. Because of the huge amount of 300×300 pics. (1300+ pictures and plenty large size slights)
Roll the drum please…….
Page Speed Grade:A
YSlow Grade:B

I am very happy indeed with this result.
Guys out there who use this plugin, please don’t be lazy to rate this plugin. Developer deserves more than that.
Some times I see 800.000 download only 300 something 5 star rate.
It is not fare to developer.
Be genuine and spare your way of saying thank you with rating.
I come back to add more about this plugin. I did install all my clients website. I am sure when they go to visit their website, they will be very surprise.
I achieved 97 – 91 with gmetrix. And, believe me those sites has huge size pictures.



Download RS Head Cleaner Plus Plugin (.zip)

If you need a version that doesn’t have the JS to Footer code, try RS Head Cleaner Lite:
Download RS Head Cleaner Lite Plugin (.zip)


WordPress Plugin Support


The following are required to run RS Head Cleaner Plus and RS Head Cleaner Lite on your site:

  1. WordPress 3.8 or higher (Recommended: WordPress 4.0 or higher)
  2. PHP 5.3 or higher (Recommended: PHP 5.4 or higher)

NOTE: We no longer support PHP 5.2. If you are still using PHP 5.2 on your server, it’s extremely important that you upgrade as soon as possible. All legitimate web hosts offer PHP 5.3, 5.4, and 5.5, and the upgrade is not time consuming or difficult, it literally is just a change in configuration to switch to the newer version. If your web host does not offer anything past 5.2, then it is time to change hosts immediately.

The PHP team stopped supporting PHP 5.2 back in 2011, and even PHP 5.3 reached its end of life in August 2014. (If you’re not familiar with the term, “End of Life” means the point where a certain version of software is no longer supported, and no more security or performance patches will be made. PHP 5.2 has known security flaws and is extremely slow….PHP 5.3 is more than double the speed on any hardware.

WordPress itself has a current minimum requirement of 5.2.4, but PHP 5.4 is (highly) recommended – see the WordPress requirements. In our opinion, they should have dropped support for 5.2 a long time ago, and this opinion is shared by many. It’s extremely important that users stay up to date with the most recent version of WordPress 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. Also, see PHP Unsupported Branches for more info.

Translate »