Reduce file size by shortening URLs and safely removing all standard comments and unnecessary whitespace from an HTML document.
As of April 2026, WP-HTML-Compression is a WordPress comment plugin with 1.0K+ active installations and a 3.4/5 rating from 14 reviews. It has been downloaded 108K+ times in total. Requires WordPress 3.2+ and PHP false+. Available on WordPress.org since 2009. Last updated 8 years ago — may have compatibility concerns. Downloads are down 39% this week. Top alternative: Comments – wpDiscuz.
Combining HTML “minification” with cache and HTTP compression (WP Super Cache, or similar) will cut down your bandwidth and ensure near-immediate content delivery while increasing your Google rankings.
This plugin will compress your HTML by shortening URLs and removing standard comments and whitespace; including new lines, carriage returns, tabs and excess spaces. Most importantly, by ignoring <pre>, <textarea>, <script> and Explorer® conditional comment tags, presentation will not be affected.
Very useful and good plugin. Thank you….
سلام
در وردپرس بنده به غیر از کدهای جاوا اسکریپت کل کدهای HTML رو کوچک کرد
It works, but do not absolutely use with qTranslate. It completely breaks the site! 🙁
…any suggestion?
Good job, thank you..
Recently installed this on a couple of sites. It seems to do the job well, compressing very happily with no obvious repercussions. One site includes inline JavaScript which the plugin happily ignores.
If there’s one downside, the WP-Supercache comment gets stripped out (along with other comments) so there’s no way to check when a cached version was created, which is annoying (flaw with how WP-Supercache works more than anything) but I’ll survive!
| WordPress | 3.2+ requiredTested up to 3.5.2 |
| PHP | false+ required |
<script> and <style> tags are no longer shortened unless compression on such tags has been enabledPlugin data sourced from WordPress.org. Analysis and metrics by PluginSift.