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.87 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 40 ( 1.00 betyg )
- X is not defined. (totalt 39 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: 517 ( 1.00 betyg )
- X is defined but never used. (totalt 338 st)
- X is not defined. (totalt 102 st)
- Unexpected console statement. (totalt 75 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #29: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #29: crossdomain.htm, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #7: cmp.php, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #7: cmp.php, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #8: cmp-sv.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: cmp-sv.min.js, antal fel: 661 ( 1.00 betyg )
- X is not defined. (totalt 557 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #19: integration, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: integration, antal fel: 1323 ( 1.00 betyg )
- X is not defined. (totalt 1214 st)
- X is defined but never used. (totalt 94 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #27: cmp.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: cmp.php, antal fel: 1326 ( 1.00 betyg )
- X is not defined. (totalt 1216 st)
- X is defined but never used. (totalt 94 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #28: bV8xLndfNTQ2NDc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: bV8xLndfNTQ2NDc, antal fel: 1347 ( 1.00 betyg )
- X is not defined. (totalt 1237 st)
- X is defined but never used. (totalt 94 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #47: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: common.js, antal fel: 1359 ( 1.00 betyg )
- X is not defined. (totalt 1238 st)
- X is defined but never used. (totalt 105 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #48: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: util.js, antal fel: 1378 ( 1.00 betyg )
- X is not defined. (totalt 1239 st)
- X is defined but never used. (totalt 120 st)
- X is assigned a value but never used. (totalt 13 st)
- Unexpected console statement. (totalt 6 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 38 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 38 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2738 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1799 st)
- Expected X and instead saw X. (totalt 650 st)
- X is assigned to itself. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary X. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `< script>` in: #29: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #29: crossdomain.htm, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #7: cmp.php, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #7: cmp.php, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #8: cmp-sv.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #8: cmp-sv.min.js, antal fel: 2058 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2054 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: integration, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #19: integration, antal fel: 2178 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2074 st)
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: cmp.php, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #27: cmp.php, antal fel: 2204 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2075 st)
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: bV8xLndfNTQ2NDc, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #28: bV8xLndfNTQ2NDc, antal fel: 2493 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2077 st)
- Unnecessary escape character: \/. (totalt 317 st)
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: common.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #47: common.js, antal fel: 2930 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2161 st)
- Expected an assignment or function call and instead saw an expression. (totalt 437 st)
- Unnecessary escape character: \/. (totalt 318 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: util.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #48: util.js, antal fel: 4296 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2874 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1066 st)
- Unnecessary escape character: \/. (totalt 318 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)