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.68 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 490 ( 1.00 betyg )
- X is not defined. (totalt 354 st)
- Unexpected console statement. (totalt 71 st)
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 24 st)
- `content-type=".*javascript.*"` in: #14: container-zr2mM, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: container-zr2mM, antal fel: 255 ( 1.00 betyg )
- X is not defined. (totalt 152 st)
- X is defined but never used. (totalt 65 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #16: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: configs.php, antal fel: 256 ( 1.00 betyg )
- X is not defined. (totalt 153 st)
- X is defined but never used. (totalt 65 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #18: search-script.m, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: search-script.m, antal fel: 317 ( 1.00 betyg )
- X is not defined. (totalt 153 st)
- X is defined but never used. (totalt 92 st)
- Unexpected console statement. (totalt 56 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #19: cludo-search-re, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: cludo-search-re, antal fel: 379 ( 1.00 betyg )
- X is not defined. (totalt 158 st)
- X is defined but never used. (totalt 137 st)
- Unexpected console statement. (totalt 64 st)
- X is assigned a value but never used. (totalt 20 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 937 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 620 st)
- Expected X and instead saw X. (totalt 199 st)
- Unexpected string concatenation of literals. (totalt 50 st)
- Async method X has no X expression. (totalt 35 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Async function X has no X expression. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Async arrow function has no X expression. (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: #14: container-zr2mM, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #14: container-zr2mM, antal fel: 235 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 166 st)
- Expected X and instead saw X. (totalt 53 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: configs.php, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #16: configs.php, antal fel: 235 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 166 st)
- Expected X and instead saw X. (totalt 53 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: search-script.m, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #18: search-script.m, antal fel: 656 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 315 st)
- Unnecessary escape character: \/. (totalt 166 st)
- Expected X and instead saw X. (totalt 157 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: cludo-search-re, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #19: cludo-search-re, antal fel: 1706 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 902 st)
- Expected X and instead saw X. (totalt 583 st)
- Unnecessary escape character: \/. (totalt 167 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)