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.60 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 11 ( 2.80 betyg )
- X is not defined. (totalt 5 st)
- X is defined but never used. (totalt 4 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 113 ( 1.00 betyg )
- X is not defined. (totalt 56 st)
- X is defined but never used. (totalt 28 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 10 st)
- Definition for rule X was not found. (totalt 1 st)
- `< script>` in: #14: 6Lels32yFNj2cdW, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #14: 6Lels32yFNj2cdW, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #14: 6Lels32yFNj2cdW, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #14: 6Lels32yFNj2cdW, antal fel: 413 ( 1.00 betyg )
- X is defined but never used. (totalt 270 st)
- Unexpected console statement. (totalt 67 st)
- X is assigned a value but never used. (totalt 46 st)
- X is not defined. (totalt 30 st)
- `content-type=".*javascript.*"` in: #33: core.gfvbdf8m.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: core.gfvbdf8m.j, antal fel: 24 ( 1.00 betyg )
- X is defined but never used. (totalt 18 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: 8739.db22247876, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: 8739.db22247876, antal fel: 35 ( 1.00 betyg )
- X is defined but never used. (totalt 23 st)
- X is not defined. (totalt 7 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #57: 537.b4e4b89a6a7, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: 537.b4e4b89a6a7, antal fel: 37 ( 1.00 betyg )
- X is defined but never used. (totalt 25 st)
- X is not defined. (totalt 7 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #58: 9195.c01e787638, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: 9195.c01e787638, antal fel: 88 ( 1.00 betyg )
- X is defined but never used. (totalt 68 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #59: 9575.7b87514dca, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: 9575.7b87514dca, antal fel: 90 ( 1.00 betyg )
- X is defined but never used. (totalt 70 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #60: spotify-player-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: spotify-player-, antal fel: 91 ( 1.00 betyg )
- X is defined but never used. (totalt 71 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 57 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 38 st)
- Expected an assignment or function call and instead saw an expression. (totalt 9 st)
- Expected X and instead saw X. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 791 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 425 st)
- Expected X and instead saw X. (totalt 325 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Definition for rule X was not found. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Unnecessary escape character: \ . (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `< script>` in: #14: 6Lels32yFNj2cdW, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #14: 6Lels32yFNj2cdW, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #14: 6Lels32yFNj2cdW, antal grupperade fel: 33 ( 1.00 betyg )
- `< script src="...">` in: #14: 6Lels32yFNj2cdW, antal fel: 6078 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3742 st)
- Expected X and instead saw X. (totalt 2176 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Async method X has no X expression. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unsafe usage of ReturnStatement. (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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- `< script>` in: #32: sm.25.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #32: sm.25.html, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #33: core.gfvbdf8m.j, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #33: core.gfvbdf8m.j, antal fel: 317 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 161 st)
- Expected X and instead saw X. (totalt 141 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Do not access Object.prototype method X from target object. (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: #56: 8739.db22247876, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #56: 8739.db22247876, antal fel: 423 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 243 st)
- Expected X and instead saw X. (totalt 165 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Do not access Object.prototype method X from target object. (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: #57: 537.b4e4b89a6a7, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #57: 537.b4e4b89a6a7, antal fel: 429 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 245 st)
- Expected X and instead saw X. (totalt 169 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Do not access Object.prototype method X from target object. (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: #58: 9195.c01e787638, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #58: 9195.c01e787638, antal fel: 1348 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 881 st)
- Expected X and instead saw X. (totalt 430 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- X is not modified in this loop. (totalt 2 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)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: 9575.7b87514dca, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #59: 9575.7b87514dca, antal fel: 1370 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 890 st)
- Expected X and instead saw X. (totalt 443 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- X is not modified in this loop. (totalt 2 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)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: spotify-player-, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #60: spotify-player-, antal fel: 1398 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 908 st)
- Expected X and instead saw X. (totalt 447 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Async method X has no X expression. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Async function X has no X expression. (totalt 2 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)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)