From 138eaf000200e703d34011daa72bc0c32c5ee242 Mon Sep 17 00:00:00 2001 From: Adriana Ixba Date: Mon, 8 Jan 2024 14:02:01 -0800 Subject: [PATCH] core: bump guidance level of top CWV recommendations (#15695) --- core/audits/bf-cache.js | 2 +- core/audits/prioritize-lcp-image.js | 2 +- core/audits/unsized-images.js | 2 +- .../user-flows/reports/sample-flow-result.json | 18 +++++++++--------- core/test/results/sample_v2.json | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/core/audits/bf-cache.js b/core/audits/bf-cache.js index f9877e514f43..21fedeaccc07 100644 --- a/core/audits/bf-cache.js +++ b/core/audits/bf-cache.js @@ -61,7 +61,7 @@ class BFCache extends Audit { failureTitle: str_(UIStrings.failureTitle), description: str_(UIStrings.description), supportedModes: ['navigation', 'timespan'], - guidanceLevel: 2, + guidanceLevel: 4, requiredArtifacts: ['BFCacheFailures', 'HostProduct'], scoreDisplayMode: Audit.SCORING_MODES.BINARY, }; diff --git a/core/audits/prioritize-lcp-image.js b/core/audits/prioritize-lcp-image.js index d9732f089980..2b61a209471f 100644 --- a/core/audits/prioritize-lcp-image.js +++ b/core/audits/prioritize-lcp-image.js @@ -37,7 +37,7 @@ class PrioritizeLcpImage extends Audit { title: str_(UIStrings.title), description: str_(UIStrings.description), supportedModes: ['navigation'], - guidanceLevel: 3, + guidanceLevel: 4, requiredArtifacts: ['traces', 'devtoolsLogs', 'GatherContext', 'URL', 'TraceElements'], scoreDisplayMode: Audit.SCORING_MODES.METRIC_SAVINGS, }; diff --git a/core/audits/unsized-images.js b/core/audits/unsized-images.js index ca57c7e5f9eb..37cd27668660 100644 --- a/core/audits/unsized-images.js +++ b/core/audits/unsized-images.js @@ -34,7 +34,7 @@ class UnsizedImages extends Audit { title: str_(UIStrings.title), failureTitle: str_(UIStrings.failureTitle), description: str_(UIStrings.description), - guidanceLevel: 3, + guidanceLevel: 4, requiredArtifacts: ['ImageElements'], scoreDisplayMode: Audit.SCORING_MODES.METRIC_SAVINGS, }; diff --git a/core/test/fixtures/user-flows/reports/sample-flow-result.json b/core/test/fixtures/user-flows/reports/sample-flow-result.json index 039d8464b982..8661e8fe8254 100644 --- a/core/test/fixtures/user-flows/reports/sample-flow-result.json +++ b/core/test/fixtures/user-flows/reports/sample-flow-result.json @@ -1989,7 +1989,7 @@ } ] }, - "guidanceLevel": 3 + "guidanceLevel": 4 }, "valid-source-maps": { "id": "valid-source-maps", @@ -2038,7 +2038,7 @@ "pathLength": 2 } }, - "guidanceLevel": 3 + "guidanceLevel": 4 }, "csp-xss": { "id": "csp-xss", @@ -3790,7 +3790,7 @@ "description": "Many navigations are performed by going back to a previous page, or forwards again. The back/forward cache (bfcache) can speed up these return navigations. [Learn more about the bfcache](https://developer.chrome.com/docs/lighthouse/performance/bf-cache/)", "score": 1, "scoreDisplayMode": "binary", - "guidanceLevel": 2 + "guidanceLevel": 4 } }, "configSettings": { @@ -10099,7 +10099,7 @@ } ] }, - "guidanceLevel": 3 + "guidanceLevel": 4 }, "valid-source-maps": { "id": "valid-source-maps", @@ -10957,7 +10957,7 @@ "description": "Many navigations are performed by going back to a previous page, or forwards again. The back/forward cache (bfcache) can speed up these return navigations. [Learn more about the bfcache](https://developer.chrome.com/docs/lighthouse/performance/bf-cache/)", "score": 1, "scoreDisplayMode": "binary", - "guidanceLevel": 2 + "guidanceLevel": 4 } }, "configSettings": { @@ -13043,7 +13043,7 @@ } ] }, - "guidanceLevel": 3 + "guidanceLevel": 4 }, "accesskeys": { "id": "accesskeys", @@ -19942,7 +19942,7 @@ } ] }, - "guidanceLevel": 3 + "guidanceLevel": 4 }, "valid-source-maps": { "id": "valid-source-maps", @@ -19991,7 +19991,7 @@ "pathLength": 2 } }, - "guidanceLevel": 3 + "guidanceLevel": 4 }, "csp-xss": { "id": "csp-xss", @@ -21907,7 +21907,7 @@ "description": "Many navigations are performed by going back to a previous page, or forwards again. The back/forward cache (bfcache) can speed up these return navigations. [Learn more about the bfcache](https://developer.chrome.com/docs/lighthouse/performance/bf-cache/)", "score": 1, "scoreDisplayMode": "binary", - "guidanceLevel": 2 + "guidanceLevel": 4 } }, "configSettings": { diff --git a/core/test/results/sample_v2.json b/core/test/results/sample_v2.json index 69e1fd4815ce..940532c3a388 100644 --- a/core/test/results/sample_v2.json +++ b/core/test/results/sample_v2.json @@ -2875,7 +2875,7 @@ } ] }, - "guidanceLevel": 3 + "guidanceLevel": 4 }, "valid-source-maps": { "id": "valid-source-maps", @@ -2969,7 +2969,7 @@ "pathLength": 4 } }, - "guidanceLevel": 3 + "guidanceLevel": 4 }, "csp-xss": { "id": "csp-xss", @@ -5852,7 +5852,7 @@ } ] }, - "guidanceLevel": 2 + "guidanceLevel": 4 } }, "configSettings": {