includes/Insight/class-system-info.php
System Info Class
Class System_Info
Class System_Info
class System_InfoConstants
| Constant | Visibility | Value | Line |
|---|---|---|---|
DROPIN_SALT_KEY | private | \'wppo_sysinfo_salt\' | 48 |
Properties
| Property | Visibility | Type | Default | Line |
|---|---|---|---|---|
$litespeed_request_cache | private static | array|null | null | 37 |
$cache_plugin_slugs | private static | array | array( \'w3-total-cache\', \'wp-super-cache\', \'wp-rocket\', \'litespeed-cache\', \'redis-cache\', \'wp-fastest-cache\', \'comet-cache\', \'hyper-cache\', ) | 58 |
publicstatic get_all()
public static function get_all(): arrayReturn all system info groups in a single array.
Return: array — {.
publicstatic get_php()
public static function get_php(): arrayGet PHP environment details.
Return: array — {.
publicstatic get_database()
public static function get_database(): arrayGet database environment details.
Return: array — {.
publicstatic get_wordpress()
public static function get_wordpress(): arrayGet WordPress installation details.
Return: array — {.
publicstatic get_wp_constants()
public static function get_wp_constants(): arrayGet key WordPress constants.
Return: array — {.
publicstatic get_server()
public static function get_server(): arrayGet server environment details.
Return: array — {.
publicstatic get_cache()
public static function get_cache(): arrayGet cache environment details.
Return: array — {.
publicstatic get_litespeed()
public static function get_litespeed(): arrayGet LiteSpeed environment details.
Return: array{ — detected: bool, server_type: string, lscache_active: bool, mode: string, effective_mode: string, wppo_owns_cache: bool, optimizer_disabled: bool, dropin: array{ advanced_cache: string, object_cache: string } }.
privatestatic detect_dropin_ownership()
private static function detect_dropin_ownership(): arrayDetect drop-in ownership for advanced-cache.php and object-cache.php.
Return: array{advanced_cache:string,object_cache:string}.
publicstatic flush_dropin_cache()
public static function flush_dropin_cache(): voidFlush the cached drop-in ownership verdicts and the request memo.
Return: void.
publicstatic reset_runtime_state()
public static function reset_runtime_state(): voidReset per-request system information memos without mutating site data.
Return: void.
publicstatic get_infrastructure()
public static function get_infrastructure(): arrayGet infrastructure environment details.
Return: array — {.
publicstatic get_opcache()
public static function get_opcache(): arrayGet PHP opcode cache environment details.
Return: array — {.
privatestatic build_opcache_info()
private static function build_opcache_info(): arrayBuild the OPcache info rows without transient handling.
Return: array — OPcache info rows (see get_opcache()).
privatestatic describe_ini_flag()
private static function describe_ini_flag(string $key): stringDescribe an on/off php.ini flag for display. Parameter Type Default Description $keystring— Ini key, e.g. `opcache.enable`.
Return: string — Display label.
privatestatic get_jit_info()
private static function get_jit_info(): arrayDescribe JIT status for display.
Return: array{enabled:string,mode:string} — Display labels.
privatestatic not_available_label()
private static function not_available_label(): stringTranslated `Not available` label for unreadable OPcache/JIT probes.
Return: string — Display label.
publicstatic get_request_start_microtime()
public static function get_request_start_microtime(): ?floatGet the request start time from REQUEST_TIME_FLOAT, or null if unavailable.
Return: float|null — Request start timestamp in Unix seconds, or null.
publicstatic get_woocommerce_presets()
public static function get_woocommerce_presets(): ?arrayGet WooCommerce high-value URL presets.
Return: string[]|null — Array of preset URLs, or null if WooCommerce is not active.
privatestatic get_active_cache_plugin()
private static function get_active_cache_plugin(): stringGet the slug of the first detected active cache plugin.
Return: string — Plugin slug or \’None\’ if no cache plugin is active.
privatestatic get_mysql_var()
private static function get_mysql_var(string $variable): ?stringRetrieve a MySQL/MariaDB server variable. Parameter Type Default Description $variablestring— The MySQL variable name to retrieve.
Return: string|null — The variable value, or null if not found.
privatestatic redact_version()
private static function redact_version(?string $version): ?stringRedact a software version string to its major.minor series. Parameter Type Default Description $version?string— Raw version string.
Return: string|null — Major.minor version series, or null when unavailable or unparseable.
privatestatic normalize_server_software()
private static function normalize_server_software(?string $software): ?stringNormalize a raw SERVER_SOFTWARE banner into a server family name. Parameter Type Default Description $software?string— Raw SERVER_SOFTWARE value.
Return: string|null — Normalized family name, \’Unknown\’ for unrecognized servers, or null when unavailable.
privatestatic format_constant()
private static function format_constant(string $constant): stringFormat a boolean WordPress constant as a readable string. Parameter Type Default Description $constantstring— The constant name to check.
Return: string — \’true\’, \’false\’, or \’undefined\’.