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.63 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 1 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: 365 ( 1.00 betyg )
- X is defined but never used. (totalt 292 st)
- Unexpected console statement. (totalt 43 st)
- X is not defined. (totalt 28 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #26: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #26: 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: #2: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 552 ( 1.00 betyg )
- X is defined but never used. (totalt 446 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: ai.0.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: ai.0.js, antal fel: 579 ( 1.00 betyg )
- X is defined but never used. (totalt 468 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #19: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: js, antal fel: 1035 ( 1.00 betyg )
- X is defined but never used. (totalt 830 st)
- X is assigned a value but never used. (totalt 167 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #27: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: sv.js, antal fel: 1036 ( 1.00 betyg )
- X is defined but never used. (totalt 830 st)
- X is assigned a value but never used. (totalt 167 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 5 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- Unnecessary escape character: \/. (totalt 1 st)
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2577 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1972 st)
- Expected X and instead saw X. (totalt 462 st)
- Do not access Object.prototype method X from target object. (totalt 71 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `< script>` in: #26: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #26: 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: #2: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 1118 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 788 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- Unnecessary escape character: \/. (totalt 31 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #14: ai.0.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #14: ai.0.js, antal fel: 1437 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1009 st)
- Expected X and instead saw X. (totalt 292 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \/. (totalt 31 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #19: js, antal fel: 2863 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2115 st)
- Expected X and instead saw X. (totalt 511 st)
- Do not access Object.prototype method X from target object. (totalt 177 st)
- Unnecessary escape character: \/. (totalt 34 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: sv.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #27: sv.js, antal fel: 2863 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2115 st)
- Expected X and instead saw X. (totalt 511 st)
- Do not access Object.prototype method X from target object. (totalt 177 st)
- Unnecessary escape character: \/. (totalt 34 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)