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.76 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 89 ( 1.00 betyg )
- X is not defined. (totalt 87 st)
- Unexpected console statement. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 271 ( 1.00 betyg )
- X is not defined. (totalt 136 st)
- X is defined but never used. (totalt 112 st)
- Parsing error: X in strict mode (totalt 15 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #75: hub.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #75: hub.html, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 13 st)
- `< script>` in: #76: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #76: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #76: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #76: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #82: bframe, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #82: bframe, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #82: bframe, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #82: bframe, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #54: b9346f85-f704-4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #54: b9346f85-f704-4, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #71: widget.a101de8f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: widget.a101de8f, antal fel: 406 ( 1.00 betyg )
- X is defined but never used. (totalt 190 st)
- X is not defined. (totalt 162 st)
- Unexpected console statement. (totalt 52 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #74: ppms.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: ppms.js, antal fel: 426 ( 1.00 betyg )
- X is defined but never used. (totalt 203 st)
- X is not defined. (totalt 166 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #80: display-rules, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: display-rules, antal fel: 427 ( 1.00 betyg )
- X is defined but never used. (totalt 203 st)
- X is not defined. (totalt 167 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #83: status, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #83: status, antal fel: 428 ( 1.00 betyg )
- X is defined but never used. (totalt 203 st)
- X is not defined. (totalt 168 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 18 ( 1.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2353 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1454 st)
- Expected X and instead saw X. (totalt 760 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Parsing error: X in strict mode (totalt 15 st)
- Unnecessary X. (totalt 14 st)
- eval can be harmful. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 10 st)
- The Function constructor is eval. (totalt 9 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script src="...">` in: #75: hub.html, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #75: hub.html, antal fel: 131 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 79 st)
- Expected X and instead saw X. (totalt 47 st)
- The Function constructor is eval. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `< script src="...">` in: #76: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #76: anchor, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `< script src="...">` in: #82: bframe, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #82: bframe, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: b9346f85-f704-4, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #54: b9346f85-f704-4, antal fel: 946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 586 st)
- Expected X and instead saw X. (totalt 327 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: widget.a101de8f, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #71: widget.a101de8f, antal fel: 3139 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1895 st)
- Expected X and instead saw X. (totalt 1142 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: ppms.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #74: ppms.js, antal fel: 3405 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2157 st)
- Expected X and instead saw X. (totalt 1145 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: display-rules, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #80: display-rules, antal fel: 3405 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2157 st)
- Expected X and instead saw X. (totalt 1145 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #83: status, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #83: status, antal fel: 3405 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2157 st)
- Expected X and instead saw X. (totalt 1145 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)