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.75 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 86 ( 1.00 betyg )
- X is defined but never used. (totalt 64 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #19: 94726e6d-c5956a, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #19: 94726e6d-c5956a, antal fel: 17 ( 1.60 betyg )
- X is defined but never used. (totalt 15 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #20: commons-98c2d00, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: commons-98c2d00, antal fel: 35 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: ba74fc06b2f9b33, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: ba74fc06b2f9b33, antal fel: 61 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 18 st)
- X is assigned a value but never used. (totalt 12 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #22: component---src, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: component---src, antal fel: 61 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 18 st)
- X is assigned a value but never used. (totalt 12 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: 108-d313e124ead, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: 108-d313e124ead, antal fel: 65 ( 1.00 betyg )
- X is defined but never used. (totalt 31 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 12 st)
- X is not defined. (totalt 2 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1242 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 806 st)
- Expected X and instead saw X. (totalt 398 st)
- Do not access Object.prototype method X from target object. (totalt 29 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: 94726e6d-c5956a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: 94726e6d-c5956a, antal fel: 153 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 136 st)
- Expected X and instead saw X. (totalt 15 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: commons-98c2d00, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #20: commons-98c2d00, antal fel: 409 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 287 st)
- Expected X and instead saw X. (totalt 115 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: ba74fc06b2f9b33, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #21: ba74fc06b2f9b33, antal fel: 1273 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 995 st)
- Expected X and instead saw X. (totalt 263 st)
- Unnecessary X. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: component---src, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #22: component---src, antal fel: 1274 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 996 st)
- Expected X and instead saw X. (totalt 263 st)
- Unnecessary X. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: 108-d313e124ead, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #32: 108-d313e124ead, antal fel: 1640 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1180 st)
- Expected X and instead saw X. (totalt 427 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)