Check and Enable GZIP compression

Leírás

GZIP compression is bundling (zipping) pages on a web server before the page is sent to the visitor.
This saves bandwidth and therefore increases the loading speed of the page significantly.
The visitors’ web browser then automatically unzips the pages. This compressing and unzipping only takes a fraction of a second.

This plugin checks if your WordPress site has GZIP compression enabled. Every time you run this check, your domain name will be sent to http://checkgzipcompression.com. We won’t sent any other private information.

Képernyőmentések

  • When enabled the plugin will tell you if GZIP is enabled.
  • The detail page will show you details about the GZIP compression state. And will make it possible to enable GZIP compression.
  • When GZIP compression is enabled, the plugin will tell you so.
  • You’ll receive an alert when GZIP is enabled.

Telepítés

  1. Upload check-and-enable-gzip-compression.zip to the /wp-content/plugins/ directory
  2. A bővítmény bekapcsolása a WordPress “Bővítmények” menü részénél lehetséges
  3. The plugin will let you know it GZIP is enabled,
  4. When GZIP is not enabled, you can enabled it via the tools menu.

GYIK

Installation Instructions
  1. Upload check-and-enable-gzip-compression.zip to the /wp-content/plugins/ directory
  2. A bővítmény bekapcsolása a WordPress “Bővítmények” menü részénél lehetséges
  3. The plugin will let you know it GZIP is enabled,
  4. When GZIP is not enabled, you can enabled it via the tools menu.
What is GZIP compression?

GZIP compression is bundling (zipping) pages on a web server before the page is sent to the visitor.
This saves bandwidth and therefore increases the loading speed of the page significantly.
The visitors’ web browser then automatically unzips the pages. This compressing and unzipping only takes a fraction of a second.

GZIP compression is recommended for all types of text files such as:
– HTML (.html) but also all types of dynamic HTML (such as extension .php, .aspx)
– Textfiles (extension .txt)
– CSS and Javascript (extensie .css and .js)
– Webservices, such as WSDL, REST and JSON

GZIP compression is not recommended for non-text files, such as graphical files and .zip files because it hardly saves space and can therefore increase the loading time.

Why is GZIP compression important?

GZIP compression saves 50% to 80% bandwidth and will therefore significantly increase the website’s loading speed.
The textfiles are compressed (zipped) on the web server after which the visitor’s web browser will automatically unzip the files. This compressing and unzipping only takes a fraction of a second without the end user noticing.

Just about all the large websites worldwide use GZIP compression. For and actual overview of GZIP usage nowadays please check our statistics page.

Vélemények

Plugin takes time to start working

First report:
Initially, enabling GZIP compression with this plugin made my site take 1 second *longer* to load – both on first byte and “fully loaded.”

Is it supposed to get better with time?? (As it is, I disabled the plugin as soon as I got back test results from https://gtmetrix.com/ and http://www.webpagetest.org/
Both tests yielded similar results.

I’m a bit frustrated because GZIP compression is enabled on the server, yet the tests say my site is not GZIP enabled. Now, even enabling with this plugin got similar results, except that load time takes 1 second longer.
This evening, GMetrix reported: Fully Loaded Time 6.9s Total Page Size 742KB with plugin enabled. Disabling plugin reduced time to 5.8 s.
webpagetest.org reported 6.228 s with plugin and 5.167s without plugin. So in each case, the savings was over 1 second for deactivating the plugin.

PS I notice that some of the 5-star ratings should be 1-star because they indicate that the plugin is not working.
————————
Next morning:
I found out that the “deactivation” of the plugin didn’t actually “take.”
When I re-tested my site (over 200,000 unique visitors a month with WordPress) this morning, I was surprised to see that the testing sites showed “gzip compression enabled.” And, sure enough, WP showed it still enabled.
Turns out that was a good thing. This morning, average full-page load time is 3.5 seconds. But I’ve had that before in slow times, even wo gzip compression, so I’ll reserve judgment till I can test it again at a busier time.
Take-away from my experience: It takes a while for the server to implement efficient gzip compression. So give it a bit of time.

Working Again – I have a fix

I’ve used it on a few sites – would love to put it on all my clients’ sites, but often it fails to connect to checkgzipcompression.com
This is the message I get:
Oops! Something went wrong 🙁 It could be that you are on a local development environment, or that we couldn’t contact checkgzipcompression.com

We checked the url: [link removed]

This is a live site – would love to get this working. Any ideas?

I have now discovered a fix.
If you install Comet Cache, there is a place – Apache Optimisations. Go there and turn on Gzip. Perhaps this changed to ‘Off’ with an update to Comet Cache. but this has sorted the problem.

It works

Gzip compression stopped working in my site despite it was enabled in CPanel settings. This plugin made it work again. Thanks.

16 (az összes) vélemény olvasása

Közreműködők és fejlesztők

“Check and Enable GZIP compression” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:

Közreműködők

Translate “Check and Enable GZIP compression” into your language.

Érdekeltek vagyunk a fejlesztésben?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Változások

1.1.11

  • Fixed an error when the plugin seemed to think it was impossible to check the domain.

1.1.7

  • When .htaccess method is not working, you can now revert to the normal method.

1.1.6

  • Better url parsing for checker.

1.1.5

  • Added check to prevent double compression error.

1.1.4

  • Fixed time-out issue. Moved API to HTTPS for better safety.

1.1.3

  • Added check for different Apache server versions.

1.1.2

  • Added warning for a .htaccess error.

1.1

  • Better checking for server type and caching rules.

1.0.3

  • Bugfix: Customizer is working again when plugin is enabled.

1.0.2

  • Added a fix for when checkgzipcompression.com is not available.

1.0.1

  • Added a fix for the htaccess rules.

1.0

  • Plugin is mature enough for v1.0 😉
  • Better explanation of the preview mode
  • Following WordPress guidelines, you can now compress your site using the ‘ob_gzhandler’ handler or using the .htaccess method (if you’re on an Apache host).
  • Numerous small bugfixes

0.2

  • Added preview modus for testing
  • If enabled, only front-end is GZIP compressed, not admin area

0.1

  • First version of the plugin.