includes/Insight/class-insight-query.php
Insight query read model for cached telemetry and PageSpeed results.
Class Insight_Query
Read-only adapter for the plugin\’s stored insight results.
final class Insight_Querypublicstatic get_telemetry()
public static function get_telemetry(string $url)Read a cached telemetry result for a URL. Parameter Type Default Description $urlstring— Scanned URL.
Return: array|false — Cached telemetry payload, or false when absent.
publicstatic get_pagespeed()
public static function get_pagespeed(string $url, string=\'mobile\' $strategy)Read the raw PageSpeed result for a URL and strategy. Parameter Type Default Description $urlstring— Scanned URL. $strategystring=\'mobile\'— Device strategy.
Return: array|false — Prepared PageSpeed result, or false when absent.
publicstatic get_pagespeed_report()
public static function get_pagespeed_report(string $url, string=\'mobile\' $strategy)Read a PageSpeed result with deterministic suggestion augmentation. Parameter Type Default Description $urlstring— Scanned URL. $strategystring=\'mobile\'— Device strategy.
Return: array|false — Augmented PageSpeed result, or false when absent.