0; $image_bytes = (int) ($savings['image_bytes'] ?? 0); $db_bytes = (int) ($savings['database_bytes'] ?? 0); $cache_bytes = (int) ($savings['cache_bytes'] ?? 0); $files_bytes = (int) ($savings['files_bytes'] ?? 0); $image_pct = (int) ($savings['image_pct'] ?? 0); $db_pct = (int) ($savings['database_pct'] ?? 0); $cache_pct = (int) ($savings['cache_pct'] ?? 0); $files_pct = (int) ($savings['files_pct'] ?? 0); $image_human = $savings['image_human'] ?? '0 B'; $db_human = $savings['database_human'] ?? '0 B'; $cache_human = $savings['cache_human'] ?? '0 B'; $files_human = $savings['files_human'] ?? '0 B'; // Bar widths: zero-byte segments get a 1% sliver so all 4 colours always show. $image_bar = $has_savings ? ($image_bytes > 0 ? max(2, $image_pct) : 1) : 0; $db_bar = $has_savings ? ($db_bytes > 0 ? max(2, $db_pct) : 1) : 0; $cache_bar = $has_savings ? ($cache_bytes > 0 ? max(2, $cache_pct) : 1) : 0; $files_bar = $has_savings ? ($files_bytes > 0 ? max(2, $files_pct) : 1) : 0; ?>
array('class' => true))); ?>

0 MB