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: 3 av 5
- JS är ok.
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 : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 119 ( 1.00 betyg )
- X is defined but never used. (totalt 48 st)
- X is not defined. (totalt 32 st)
- Unexpected console statement. (totalt 25 st)
- X is assigned a value but never used. (totalt 14 st)
- `< script>` in: #13: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #13: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #20: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: gtm.js, antal fel: 544 ( 1.00 betyg )
- X is defined but never used. (totalt 437 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: sv.js, antal fel: 545 ( 1.00 betyg )
- X is defined but never used. (totalt 437 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 1 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 : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 770 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 495 st)
- Expected X and instead saw X. (totalt 247 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `< script>` in: #13: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #13: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `content-type=".*javascript.*"` in: #20: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #20: gtm.js, antal fel: 1155 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 787 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- Unnecessary escape character: \/. (totalt 70 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 X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: sv.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #21: sv.js, antal fel: 1155 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 787 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- Unnecessary escape character: \/. (totalt 70 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 X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)