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.69 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 33 ( 1.00 betyg )
- X is not defined. (totalt 30 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 452 ( 1.00 betyg )
- X is defined but never used. (totalt 346 st)
- Unexpected console statement. (totalt 70 st)
- X is not defined. (totalt 29 st)
- X is assigned a value but never used. (totalt 7 st)
- `< script>` in: #41: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #41: crossdomain.htm, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #15: ai.2.gbl.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #15: ai.2.gbl.min.js, antal fel: 89 ( 1.00 betyg )
- X is defined but never used. (totalt 86 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #16: cmp.php, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #16: cmp.php, antal fel: 92 ( 1.00 betyg )
- X is defined but never used. (totalt 86 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: cmp-sv.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: cmp-sv.min.js, antal fel: 757 ( 1.00 betyg )
- X is not defined. (totalt 567 st)
- X is defined but never used. (totalt 176 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #40: bV8xLndfMjY5OTY, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: bV8xLndfMjY5OTY, antal fel: 765 ( 1.00 betyg )
- X is not defined. (totalt 575 st)
- X is defined but never used. (totalt 176 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 58 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 41 st)
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3613 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2296 st)
- Expected X and instead saw X. (totalt 1202 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 13 st)
- Unnecessary escape character: \.. (totalt 10 st)
- Unnecessary X. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `< script>` in: #41: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #41: crossdomain.htm, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #15: ai.2.gbl.min.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #15: ai.2.gbl.min.js, antal fel: 469 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 413 st)
- Expected X and instead saw X. (totalt 36 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: cmp.php, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #16: cmp.php, antal fel: 490 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 413 st)
- Expected X and instead saw X. (totalt 37 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: cmp-sv.min.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #17: cmp-sv.min.js, antal fel: 2548 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2090 st)
- Expected an assignment or function call and instead saw an expression. (totalt 414 st)
- Unnecessary escape character: \/. (totalt 27 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: bV8xLndfMjY5OTY, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #40: bV8xLndfMjY5OTY, antal fel: 3142 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2092 st)
- Unnecessary escape character: \/. (totalt 619 st)
- Expected an assignment or function call and instead saw an expression. (totalt 414 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)