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.18 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: sv, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: sv, antal fel: 17 ( 1.60 betyg )
- X is not defined. (totalt 15 st)
- X is assigned a value but never used. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: sv, antal fel: 93 ( 1.00 betyg )
- X is defined but never used. (totalt 70 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #26: main-core.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: main-core.js, antal fel: 1220 ( 1.00 betyg )
- X is not defined. (totalt 1193 st)
- X is defined but never used. (totalt 17 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #27: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: gtm.js, antal fel: 1695 ( 1.00 betyg )
- X is not defined. (totalt 1212 st)
- X is defined but never used. (totalt 386 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #34: svg4everybody.m, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: svg4everybody.m, antal fel: 1697 ( 1.00 betyg )
- X is not defined. (totalt 1214 st)
- X is defined but never used. (totalt 386 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #36: c-copy.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: c-copy.js, antal fel: 1701 ( 1.00 betyg )
- X is not defined. (totalt 1217 st)
- X is defined but never used. (totalt 387 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #43: s-teaser-webpag, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: s-teaser-webpag, antal fel: 1705 ( 1.00 betyg )
- X is not defined. (totalt 1221 st)
- X is defined but never used. (totalt 387 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 11 st)
Integritet & säkerhet
- `< script>` in: #1: sv, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: sv, antal fel: 30 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 21 st)
- Expected X and instead saw X. (totalt 9 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: sv, antal fel: 836 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 619 st)
- Expected an assignment or function call and instead saw an expression. (totalt 198 st)
- Unnecessary escape character: \/. (totalt 6 st)
- The Function constructor is eval. (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)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: main-core.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #26: main-core.js, antal fel: 1087 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 811 st)
- Expected X and instead saw X. (totalt 251 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (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: gtm.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #27: gtm.js, antal fel: 2813 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2011 st)
- Expected X and instead saw X. (totalt 503 st)
- Unnecessary escape character: \/. (totalt 158 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: svg4everybody.m, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #34: svg4everybody.m, antal fel: 2825 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2021 st)
- Expected X and instead saw X. (totalt 505 st)
- Unnecessary escape character: \/. (totalt 158 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: c-copy.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #36: c-copy.js, antal fel: 2826 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2022 st)
- Expected X and instead saw X. (totalt 505 st)
- Unnecessary escape character: \/. (totalt 158 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: s-teaser-webpag, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #43: s-teaser-webpag, antal fel: 2826 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2022 st)
- Expected X and instead saw X. (totalt 505 st)
- Unnecessary escape character: \/. (totalt 158 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)