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.33 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 31 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 8 st)
- X is assigned a value 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: 937 ( 1.00 betyg )
- X is defined but never used. (totalt 838 st)
- X is not defined. (totalt 60 st)
- Unexpected console statement. (totalt 38 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #15: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #15: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: gtm.js, antal fel: 492 ( 1.00 betyg )
- X is defined but never used. (totalt 401 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: ai.0.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #9: ai.0.js, antal fel: 519 ( 1.00 betyg )
- X is defined but never used. (totalt 423 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #14: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: uc.js, antal fel: 566 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 16 st)
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #16: consent-sdk-2.2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: consent-sdk-2.2, antal fel: 1254 ( 1.00 betyg )
- X is defined but never used. (totalt 994 st)
- X is assigned a value but never used. (totalt 126 st)
- X is not defined. (totalt 118 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #17: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: cc.js, antal fel: 1283 ( 1.00 betyg )
- X is defined but never used. (totalt 1006 st)
- X is assigned a value but never used. (totalt 132 st)
- X is not defined. (totalt 128 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #18: element.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: element.js, antal fel: 1423 ( 1.00 betyg )
- X is defined but never used. (totalt 1039 st)
- X is not defined. (totalt 233 st)
- X is assigned a value but never used. (totalt 134 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #23: m-el-main, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: m-el-main, antal fel: 1466 ( 1.00 betyg )
- X is defined but never used. (totalt 1078 st)
- X is not defined. (totalt 235 st)
- X is assigned a value but never used. (totalt 136 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #27: supportedLangua, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: supportedLangua, antal fel: 1467 ( 1.00 betyg )
- X is defined but never used. (totalt 1078 st)
- X is not defined. (totalt 236 st)
- X is assigned a value but never used. (totalt 136 st)
- Unexpected console statement. (totalt 17 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 6 ( 3.80 betyg )
- Expected X and instead saw X. (totalt 4 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4879 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2489 st)
- Expected X and instead saw X. (totalt 2154 st)
- X is assigned to itself. (totalt 78 st)
- Do not access Object.prototype method X from target object. (totalt 51 st)
- Comparing to itself is potentially pointless. (totalt 41 st)
- X is not modified in this loop. (totalt 15 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (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)
- 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)
- `< script>` in: #15: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #15: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #8: gtm.js, antal fel: 1298 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 884 st)
- Expected X and instead saw X. (totalt 203 st)
- Unnecessary escape character: \/. (totalt 102 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- X is not modified in this loop. (totalt 4 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: #9: ai.0.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #9: ai.0.js, antal fel: 1617 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1105 st)
- Expected X and instead saw X. (totalt 294 st)
- Unnecessary escape character: \/. (totalt 102 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- X is not modified in this loop. (totalt 4 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)
- 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)
- `content-type=".*javascript.*"` in: #14: uc.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #14: uc.js, antal fel: 1969 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1346 st)
- Expected X and instead saw X. (totalt 396 st)
- Unnecessary escape character: \/. (totalt 104 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 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)
- `content-type=".*javascript.*"` in: #16: consent-sdk-2.2, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #16: consent-sdk-2.2, antal fel: 2745 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1787 st)
- Expected X and instead saw X. (totalt 691 st)
- Unnecessary escape character: \/. (totalt 105 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 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)
- `content-type=".*javascript.*"` in: #17: cc.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #17: cc.js, antal fel: 3092 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2093 st)
- Expected X and instead saw X. (totalt 727 st)
- Unnecessary escape character: \/. (totalt 105 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 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)
- `content-type=".*javascript.*"` in: #18: element.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #18: element.js, antal fel: 3540 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2319 st)
- Expected X and instead saw X. (totalt 898 st)
- Unnecessary escape character: \/. (totalt 132 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Comparing to itself is potentially pointless. (totalt 21 st)
- Unnecessary X. (totalt 13 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 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)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: m-el-main, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #23: m-el-main, antal fel: 4919 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3091 st)
- Expected X and instead saw X. (totalt 1472 st)
- Unnecessary escape character: \/. (totalt 143 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Comparing to itself is potentially pointless. (totalt 22 st)
- Unnecessary X. (totalt 19 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 7 st)
- Script URL is a form of eval. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 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)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: supportedLangua, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #27: supportedLangua, antal fel: 4919 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3091 st)
- Expected X and instead saw X. (totalt 1472 st)
- Unnecessary escape character: \/. (totalt 143 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Comparing to itself is potentially pointless. (totalt 22 st)
- Unnecessary X. (totalt 19 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 7 st)
- Script URL is a form of eval. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 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)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)