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.28 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 8 ( 3.40 betyg )
- X is not defined. (totalt 4 st)
- X is defined but never used. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 604 ( 1.00 betyg )
- X is defined but never used. (totalt 296 st)
- X is not defined. (totalt 268 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #16: init.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #16: init.js, antal fel: 1 ( 4.80 betyg )
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: lottie-player.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: lottie-player.j, antal fel: 135 ( 1.00 betyg )
- X is defined but never used. (totalt 110 st)
- X is assigned a value but never used. (totalt 17 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #19: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: init.js, antal fel: 135 ( 1.00 betyg )
- X is defined but never used. (totalt 110 st)
- X is assigned a value but never used. (totalt 17 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #24: index.be76b002., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: index.be76b002., antal fel: 189 ( 1.00 betyg )
- X is defined but never used. (totalt 123 st)
- Unexpected console statement. (totalt 31 st)
- X is assigned a value but never used. (totalt 27 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #25: 578.578.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: 578.578.0f57926, antal fel: 191 ( 1.00 betyg )
- X is defined but never used. (totalt 123 st)
- Unexpected console statement. (totalt 33 st)
- X is assigned a value but never used. (totalt 27 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #26: 925.925.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: 925.925.0f57926, antal fel: 199 ( 1.00 betyg )
- X is defined but never used. (totalt 126 st)
- Unexpected console statement. (totalt 35 st)
- X is assigned a value but never used. (totalt 30 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #27: 950.950.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: 950.950.0f57926, antal fel: 215 ( 1.00 betyg )
- X is defined but never used. (totalt 134 st)
- Unexpected console statement. (totalt 40 st)
- X is assigned a value but never used. (totalt 33 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #28: 628.628.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: 628.628.0f57926, antal fel: 217 ( 1.00 betyg )
- X is defined but never used. (totalt 136 st)
- Unexpected console statement. (totalt 40 st)
- X is assigned a value but never used. (totalt 33 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #29: 873.873.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: 873.873.0f57926, antal fel: 218 ( 1.00 betyg )
- X is defined but never used. (totalt 137 st)
- Unexpected console statement. (totalt 40 st)
- X is assigned a value but never used. (totalt 33 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #30: 236.236.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: 236.236.0f57926, antal fel: 241 ( 1.00 betyg )
- X is defined but never used. (totalt 149 st)
- Unexpected console statement. (totalt 46 st)
- X is assigned a value but never used. (totalt 38 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #39: 229.229.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: 229.229.0f57926, antal fel: 241 ( 1.00 betyg )
- X is defined but never used. (totalt 149 st)
- Unexpected console statement. (totalt 46 st)
- X is assigned a value but never used. (totalt 38 st)
- X is not defined. (totalt 8 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 404 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 292 st)
- Expected X and instead saw X. (totalt 83 st)
- Expected an assignment or function call and instead saw an expression. (totalt 24 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 28 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2821 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1834 st)
- Expected X and instead saw X. (totalt 804 st)
- X is assigned to itself. (totalt 28 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Unnecessary escape character: \^. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 6 st)
- Unnecessary escape character: \|. (totalt 6 st)
- Unnecessary escape character: \}. (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 3 st)
- Unnecessary escape character: \=. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: init.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #16: init.js, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: lottie-player.j, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #17: lottie-player.j, antal fel: 1240 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1009 st)
- Expected X and instead saw X. (totalt 206 st)
- Unnecessary X. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: init.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #19: init.js, antal fel: 1244 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1012 st)
- Expected X and instead saw X. (totalt 206 st)
- Unnecessary X. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: index.be76b002., antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #24: index.be76b002., antal fel: 1928 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1328 st)
- Expected X and instead saw X. (totalt 555 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary X. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 2 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: #25: 578.578.0f57926, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #25: 578.578.0f57926, antal fel: 1953 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1345 st)
- Expected X and instead saw X. (totalt 563 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary X. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 2 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: #26: 925.925.0f57926, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #26: 925.925.0f57926, antal fel: 2301 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1570 st)
- Expected X and instead saw X. (totalt 681 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary X. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 2 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)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: 950.950.0f57926, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #27: 950.950.0f57926, antal fel: 2655 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1728 st)
- Expected X and instead saw X. (totalt 856 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Unnecessary X. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: 628.628.0f57926, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #28: 628.628.0f57926, antal fel: 2683 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1731 st)
- Expected X and instead saw X. (totalt 881 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Unnecessary X. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: 873.873.0f57926, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #29: 873.873.0f57926, antal fel: 2736 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1765 st)
- Expected X and instead saw X. (totalt 900 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Unnecessary X. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: 236.236.0f57926, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: 236.236.0f57926, antal fel: 3049 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1938 st)
- Expected X and instead saw X. (totalt 1038 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary X. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: 229.229.0f57926, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #39: 229.229.0f57926, antal fel: 3054 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1941 st)
- Expected X and instead saw X. (totalt 1040 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary X. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)