0 ? round( $resolved / $total_queries * 100 ) : 0; $fallback_pct = $total_queries > 0 ? round( $fallbacks / $total_queries * 100 ) : 0; $provider_total = $openai_queries + $gemini_queries + $request_stats['native']; $openai_pct = $provider_total > 0 ? round( $openai_queries / $provider_total * 100 ) : 0; $gemini_pct = $provider_total > 0 ? round( $gemini_queries / $provider_total * 100 ) : 0; $days_data = array(); foreach ( $request_stats['days'] as $date => $count ) { $day_timestamp = ( new \DateTimeImmutable( $date . ' 12:00:00', wp_timezone() ) )->getTimestamp(); $days_data[ wp_date( 'D', $day_timestamp, wp_timezone() ) ] = $count; } $max_day_count = max( array_values( $days_data ) ); $max_day_count = $max_day_count > 0 ? $max_day_count : 1; ?>

() %
() %

() %
() %

$count ) : ?> 0 ? max( 8, round( ( $count / $max_day_count ) * 100 ) ) : 0; ?>