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: 1667 ( 1.00 betyg )
- X is not defined. (totalt 1203 st)
- X is defined but never used. (totalt 367 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #35: svg4everybody.m, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: svg4everybody.m, antal fel: 1669 ( 1.00 betyg )
- X is not defined. (totalt 1205 st)
- X is defined but never used. (totalt 367 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #37: c-copy.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: c-copy.js, antal fel: 1673 ( 1.00 betyg )
- X is not defined. (totalt 1208 st)
- X is defined but never used. (totalt 368 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #44: s-teaser-webpag, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: s-teaser-webpag, antal fel: 1677 ( 1.00 betyg )
- X is not defined. (totalt 1212 st)
- X is defined but never used. (totalt 368 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: 2731 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1956 st)
- Expected X and instead saw X. (totalt 479 st)
- Unnecessary escape character: \/. (totalt 158 st)
- Do not access Object.prototype method X from target object. (totalt 108 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)
- 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)
- 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: #35: svg4everybody.m, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #35: svg4everybody.m, antal fel: 2743 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1966 st)
- Expected X and instead saw X. (totalt 481 st)
- Unnecessary escape character: \/. (totalt 158 st)
- Do not access Object.prototype method X from target object. (totalt 108 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)
- 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)
- 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: #37: c-copy.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #37: c-copy.js, antal fel: 2744 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1967 st)
- Expected X and instead saw X. (totalt 481 st)
- Unnecessary escape character: \/. (totalt 158 st)
- Do not access Object.prototype method X from target object. (totalt 108 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)
- 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)
- 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: #44: s-teaser-webpag, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #44: s-teaser-webpag, antal fel: 2744 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1967 st)
- Expected X and instead saw X. (totalt 481 st)
- Unnecessary escape character: \/. (totalt 158 st)
- Do not access Object.prototype method X from target object. (totalt 108 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)
- 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)