get_usage_stats('month'); $totals = $usage_stats['totals'] ?? array( 'message_count' => 0, 'tokens_used' => 0, 'conversation_count' => 0, ); // Check if upgrade plugin is active $upgrade_active = function_exists('is_plugin_active') && is_plugin_active('a1ai-chatbot-upgrade-new/a1ai-chatbot-upgrade.php'); ?>

'; } else { echo '๐Ÿค–'; } ?>

0 ? round($totals['message_count'] / $totals['conversation_count'], 1) : 0; echo esc_html(number_format_i18n($avg_messages, 1)); ?>
0 ? round($totals['tokens_used'] / $totals['message_count'], 0) : 0; echo esc_html(number_format_i18n($avg_tokens)); ?>

๐Ÿ“Š