This works great for me!
As a little note... I found a way to remove the statistics message at the footer of each page by removing the following lines of code in the plugin:
Code:
$output = str_replace('</body>', '<center><span class="smallfont">[Output: ' . $page_kilobyte . ' Kb. compressed to <b>' . $pagenew_kilobyte . '</b> Kb. by saving <b>' . $pagesaved_kilobyte . '</b> Kb. (' . $pagesaved_perc . '%)]</span></center></body>', $output);
Cheers and great plugin! I hope that you improve it to make it even more powerful!