Kontrollerar ifall Javascript-koden är korrekt enligt Webperf-communityts egna Javascript-test. Testet är ett "lint"-test för att avgöra om det är korrekt Javascript och följer webbstandard.
Betyg: 2.29 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 375 ( 1.00 betyg )
- X is defined but never used. (totalt 289 st)
- Unexpected console statement. (totalt 39 st)
- X is assigned a value but never used. (totalt 26 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #50: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: gtm.js, antal fel: 446 ( 1.00 betyg )
- X is defined but never used. (totalt 352 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: not-found-5f0fc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: not-found-5f0fc, antal fel: 447 ( 1.00 betyg )
- X is defined but never used. (totalt 352 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: otSDKStub.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: otSDKStub.js, antal fel: 453 ( 1.00 betyg )
- X is defined but never used. (totalt 356 st)
- X is assigned a value but never used. (totalt 83 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #59: 67618afb9b36c09, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: 67618afb9b36c09, antal fel: 477 ( 1.00 betyg )
- X is defined but never used. (totalt 371 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #71: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: otBannerSdk.js, antal fel: 533 ( 1.00 betyg )
- X is defined but never used. (totalt 395 st)
- X is assigned a value but never used. (totalt 84 st)
- Unexpected console statement. (totalt 41 st)
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #74: widget.3fdb85f4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: widget.3fdb85f4, antal fel: 541 ( 1.00 betyg )
- X is defined but never used. (totalt 401 st)
- X is assigned a value but never used. (totalt 84 st)
- Unexpected console statement. (totalt 43 st)
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #75: data.000000BE4F, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: data.000000BE4F, antal fel: 541 ( 1.00 betyg )
- X is defined but never used. (totalt 401 st)
- X is assigned a value but never used. (totalt 84 st)
- Unexpected console statement. (totalt 43 st)
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #76: animated-creati, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: animated-creati, antal fel: 564 ( 1.00 betyg )
- X is defined but never used. (totalt 414 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 52 st)
- X is not defined. (totalt 13 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 24 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4657 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2801 st)
- Expected X and instead saw X. (totalt 1714 st)
- Do not access Object.prototype method X from target object. (totalt 49 st)
- Async function X has no X expression. (totalt 16 st)
- Unnecessary escape character: \(. (totalt 10 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unnecessary escape character: \@. (totalt 7 st)
- Redundant use of `await` on a return value. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: gtm.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #50: gtm.js, antal fel: 2240 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1328 st)
- Unnecessary escape character: \/. (totalt 478 st)
- Expected X and instead saw X. (totalt 276 st)
- Do not access Object.prototype method X from target object. (totalt 137 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: not-found-5f0fc, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #55: not-found-5f0fc, antal fel: 2241 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1329 st)
- Unnecessary escape character: \/. (totalt 478 st)
- Expected X and instead saw X. (totalt 276 st)
- Do not access Object.prototype method X from target object. (totalt 137 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: otSDKStub.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #56: otSDKStub.js, antal fel: 2311 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1387 st)
- Unnecessary escape character: \/. (totalt 478 st)
- Expected X and instead saw X. (totalt 288 st)
- Do not access Object.prototype method X from target object. (totalt 137 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: 67618afb9b36c09, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #59: 67618afb9b36c09, antal fel: 2486 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1510 st)
- Unnecessary escape character: \/. (totalt 478 st)
- Expected X and instead saw X. (totalt 338 st)
- Do not access Object.prototype method X from target object. (totalt 137 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: otBannerSdk.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #71: otBannerSdk.js, antal fel: 3512 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2387 st)
- Unnecessary escape character: \/. (totalt 478 st)
- Expected X and instead saw X. (totalt 478 st)
- Do not access Object.prototype method X from target object. (totalt 141 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: widget.3fdb85f4, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #74: widget.3fdb85f4, antal fel: 3605 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2449 st)
- Expected X and instead saw X. (totalt 506 st)
- Unnecessary escape character: \/. (totalt 478 st)
- Do not access Object.prototype method X from target object. (totalt 141 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: data.000000BE4F, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #75: data.000000BE4F, antal fel: 3605 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2449 st)
- Expected X and instead saw X. (totalt 506 st)
- Unnecessary escape character: \/. (totalt 478 st)
- Do not access Object.prototype method X from target object. (totalt 141 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: animated-creati, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #76: animated-creati, antal fel: 4221 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2896 st)
- Expected X and instead saw X. (totalt 667 st)
- Unnecessary escape character: \/. (totalt 479 st)
- Do not access Object.prototype method X from target object. (totalt 141 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)