time(), 'cache' => array( 'files' => absint( isset( $cache['files'] ) ? $cache['files'] : 0 ), 'bytes' => absint( isset( $cache['bytes'] ) ? $cache['bytes'] : 0 ), ), 'features' => array( 'page_cache' => (bool) get_option( 'nbh_performance_cache_enabled', 0 ), 'css_minify' => (bool) get_option( 'nbh_performance_css_minify_enabled', 0 ), 'js_minify' => (bool) get_option( 'nbh_performance_js_minify_enabled', 0 ), 'image_conversion' => (bool) get_option( 'nbh_performance_image_conversion_enabled', 0 ), ), 'health' => null, 'alerts' => array(), 'measurement_source' => 'local_configuration', ); } public function snapshot() { $summary = $this->summary(); return array( 'captured_at' => $summary['captured_at'], 'health' => null, 'cache' => $summary['cache'], 'features' => $summary['features'], 'measurement_source' => 'local_configuration', ); } }