PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.2.7
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.2.7
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / templates / images / smush-details.php

smush-details.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 3.2.7, at templates/images/smush-details.php

27 lines 888 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
2 <a class="wpo-collapsible"><?php _e('More', 'wp-optimize'); ?></a>
3 <div class="wpo-collapsible-content">
4 <table class="smush-details">
5 <thead>
6 <tr>
7 <th><?php _e('Size name', 'wp-optimze'); ?></th>
8 <th><?php _e('Original', 'wp-optimze'); ?></th>
9 <th><?php _e('Compressed', 'wp-optimze'); ?></th>
10 <th></th>
11 </tr>
12 </thead>
13 <tbody>
14 <?php foreach ($sizes_info as $size => $info) {
15 $saved = round((($info['original'] - $info['compressed']) / $info['original'] * 100), 2);
16 ?>
17 <tr>
18 <td><?php echo htmlentities($size); ?></td>
19 <td><?php echo WP_Optimize()->format_size($info['original'], 1); ?></td>
20 <td><?php echo WP_Optimize()->format_size($info['compressed'], 1); ?></td>
21 <td><?php echo $saved; ?>%</td>
22 </tr>
23 <?php } ?>
24 </tbody>
25 </table>
26 </div>
27