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.52 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 9 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 316 ( 1.00 betyg )
- X is not defined. (totalt 304 st)
- X is defined but never used. (totalt 8 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: gtm.js, antal fel: 468 ( 1.00 betyg )
- X is defined but never used. (totalt 363 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: otSDKStub.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: otSDKStub.js, antal fel: 473 ( 1.00 betyg )
- X is defined but never used. (totalt 366 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #33: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: otBannerSdk.js, antal fel: 538 ( 1.00 betyg )
- X is defined but never used. (totalt 393 st)
- X is assigned a value but never used. (totalt 92 st)
- Unexpected console statement. (totalt 39 st)
- X is not defined. (totalt 14 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 )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 363 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 290 st)
- Expected X and instead saw X. (totalt 45 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: gtm.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #25: gtm.js, antal fel: 2153 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1098 st)
- Unnecessary escape character: \/. (totalt 714 st)
- Expected X and instead saw X. (totalt 223 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 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: #29: otSDKStub.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #29: otSDKStub.js, antal fel: 2223 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1156 st)
- Unnecessary escape character: \/. (totalt 714 st)
- Expected X and instead saw X. (totalt 235 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 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: #33: otBannerSdk.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #33: otBannerSdk.js, antal fel: 3299 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2062 st)
- Unnecessary escape character: \/. (totalt 714 st)
- Expected X and instead saw X. (totalt 395 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (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)
- Unnecessary escape character: \_. (totalt 1 st)