Skip to main content

PageSpeedRecommendation

An actionable audit returned by pageSpeedRunAnalysis, ordered by time savings, byte savings, score, and ID.

type PageSpeedRecommendation {
id: String!
category: PageSpeedCategoryId!
groupId: String
groupTitle: String
title: String!
descriptionMarkdown: String
guidanceMarkdown: String
score: Float
rating: PageSpeedRating
scoreDisplayMode: String
displayValue: String
impact: PageSpeedImpact
savings: PageSpeedSavings
affectedItemCount: Int!
relevantMetricIds: [String!]!
resources: [PageSpeedResource!]!
elements: [PageSpeedElement!]!
}

Fields​

PageSpeedRecommendation.id ● String! non-null scalar​

PageSpeedRecommendation.category ● PageSpeedCategoryId! non-null enum​

PageSpeedRecommendation.groupId ● String scalar​

Captured audit group key; null when absent.

PageSpeedRecommendation.groupTitle ● String scalar​

Captured audit group title; null when unavailable.

PageSpeedRecommendation.title ● String! non-null scalar​

PageSpeedRecommendation.descriptionMarkdown ● String scalar​

Audit explanation in Markdown; null when absent.

PageSpeedRecommendation.guidanceMarkdown ● String scalar​

Captured technology-specific guidance in Markdown; null when absent.

PageSpeedRecommendation.score ● Float scalar​

Numeric score as a fraction from 0 to 1; null when no numeric score is supplied.

PageSpeedRecommendation.rating ● PageSpeedRating enum​

Score-derived rating; UNRATED without a numeric score.

PageSpeedRecommendation.scoreDisplayMode ● String scalar​

Captured score display mode; null when absent.

PageSpeedRecommendation.displayValue ● String scalar​

Provider-formatted audit value; null when absent.

PageSpeedRecommendation.impact ● PageSpeedImpact enum​

Captured recognized accessibility impact; null when absent or unrecognized.

PageSpeedRecommendation.savings ● PageSpeedSavings object​

Estimated time or byte savings; null when neither numeric estimate is supplied.

PageSpeedRecommendation.affectedItemCount ● Int! non-null scalar​

Top-level detail item count before resource and element extraction.

PageSpeedRecommendation.relevantMetricIds ● [String!]! non-null scalar​

Performance metric IDs linked to this audit in the captured report.

PageSpeedRecommendation.resources ● [PageSpeedResource!]! non-null object​

PageSpeedRecommendation.elements ● [PageSpeedElement!]! non-null object​

Member Of​

PageSpeedCategory object