PHP_VERSION ]; } public static function get_wpinfo() { return [ 'wp_version' => get_bloginfo('version') ]; } public static function get_theme_info() { $theme = wp_get_theme(); $active_plugins = get_option( 'active_plugins' ); $all_plugins = get_plugins(); return [ 'active_theme' => $theme->get('Name'), 'inactive_theme_count' => count( wp_get_themes() ) - 1, 'total_active_plugin_count' => count( $active_plugins ), 'total_inactive_plugins_count' => count( $all_plugins ) - count( $active_plugins ) ]; } }