__( 'Overview', 'argus-wordpress-defence' ), 'page-cache' => __( 'Page Cache', 'argus-wordpress-defence' ), 'discovery' => __( 'Page Discovery', 'argus-wordpress-defence' ), 'rules' => __( 'Cache Rules', 'argus-wordpress-defence' ), 'compression' => __( 'Compression', 'argus-wordpress-defence' ), 'warming' => __( 'Preload', 'argus-wordpress-defence' ), 'purge' => __( 'Purge & Cache', 'argus-wordpress-defence' ), 'analytics' => __( 'Analytics', 'argus-wordpress-defence' ), 'advanced' => __( 'Advanced', 'argus-wordpress-defence' ), ); $hit_30d = $log_summary_30d[ Argus_Static_Cache::STATUS_HIT ]['count'] ?? 0; $stale_30d = $log_summary_30d[ Argus_Static_Cache::STATUS_STALE ]['count'] ?? 0; $miss_30d = $log_summary_30d[ Argus_Static_Cache::STATUS_MISS ]['count'] ?? 0; $revalidated_30d = $log_summary_30d[ Argus_Static_Cache::STATUS_REVALIDATED ]['count'] ?? 0; $bypass_30d = $log_summary_30d[ Argus_Static_Cache::STATUS_BYPASS ]['count'] ?? 0; $excluded_30d = $log_summary_30d[ Argus_Static_Cache::STATUS_EXCLUDED ]['count'] ?? 0; $accelerated_30d = $hit_30d + $stale_30d; $origin_reached_30d = $miss_30d + $revalidated_30d; $total_eligible_30d = $accelerated_30d + $origin_reached_30d; $dynamic_protected_30d = $bypass_30d + $excluded_30d; $requests_reduced_pct = $total_eligible_30d > 0 ? round( ( $accelerated_30d / $total_eligible_30d ) * 100 ) : null; $cache_efficiency_pct = $total_eligible_30d > 0 ? round( ( $accelerated_30d / max( 1, $total_eligible_30d + $dynamic_protected_30d ) ) * 100, 1 ) : null; $performance_status = ! $settings['static_cache_enabled'] ? array( 'label' => __( 'Not Enabled', 'argus-wordpress-defence' ), 'chip' => 'chip-off' ) : ( $total_eligible_30d < 20 ? array( 'label' => __( 'Learning', 'argus-wordpress-defence' ), 'chip' => 'chip-amber' ) : array( 'label' => __( 'Optimised', 'argus-wordpress-defence' ), 'chip' => 'chip-emerald' ) ); $cumulative = 0; $cumulative_series = array(); foreach ( $daily_series as $day ) { $cumulative += (int) $day['hit']; $cumulative_series[] = array( 'label' => $day['date'], 'value' => $cumulative ); } ?>
| url ); ?> | __( 'Eligible', 'argus-wordpress-defence' ), Argus_Cache_Eligibility::BYPASS => __( 'Excluded', 'argus-wordpress-defence' ), Argus_Cache_Eligibility::FORCE_EXCLUDED => __( 'Excluded', 'argus-wordpress-defence' ), Argus_Cache_Eligibility::NEEDS_REVIEW => __( 'Needs Review', 'argus-wordpress-defence' ), ); echo esc_html( $eligible_labels[ $row->eligibility ] ?? $row->eligibility ); ?> |