How to Compress PHP output in my plugin?

To answer your question, yes, it is that easy to enable compression. However, that’s only a small step when configuring a site for performance.

You should not attempt to handle compression from your plugin, unless the entire purpose of the plugin is load time optimization. Leave that to dedicated plugins, such as the WP Super-Cache or W3 Total Cache.

Leave a Comment