* * @since 0.1.0 */ public function handle(): array { global $wp_version; $health = $this->health->snapshot(); return [ 'plugin_version' => defined( 'BOOKLINE_VERSION' ) ? BOOKLINE_VERSION : '0.0.0', 'php_version' => PHP_VERSION, 'wp_version' => is_string( $wp_version ) ? $wp_version : '', 'db_size_mb' => null, 'queue_depth' => $health['scheduler']['pending'] ?? 0, 'active_theme' => function_exists( 'wp_get_theme' ) ? wp_get_theme()->get( 'Name' ) : '', 'health' => $health, ]; } }