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: #27: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: 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: #28: index.c201fc46., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: index.c201fc46., antal fel: 187 ( 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 25 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #29: 578.578.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: 578.578.76d582a, antal fel: 189 ( 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 25 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #30: 925.925.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: 925.925.76d582a, antal fel: 197 ( 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 28 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #31: 950.950.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: 950.950.76d582a, antal fel: 213 ( 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 31 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #32: 628.628.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: 628.628.76d582a, antal fel: 215 ( 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 31 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #33: 873.873.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: 873.873.76d582a, antal fel: 216 ( 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 31 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #34: 328.328.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: 328.328.76d582a, antal fel: 238 ( 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 35 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #39: 229.229.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: 229.229.76d582a, antal fel: 238 ( 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 35 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: 403 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 291 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: #27: init.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #27: init.js, antal fel: 1243 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1011 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: #28: index.c201fc46., antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #28: index.c201fc46., antal fel: 1927 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1327 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: #29: 578.578.76d582a, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #29: 578.578.76d582a, antal fel: 1952 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1344 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: #30: 925.925.76d582a, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #30: 925.925.76d582a, antal fel: 2300 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1569 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: #31: 950.950.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #31: 950.950.76d582a, antal fel: 2654 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1727 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: #32: 628.628.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #32: 628.628.76d582a, antal fel: 2682 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1730 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: #33: 873.873.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #33: 873.873.76d582a, antal fel: 2733 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1763 st)
- Expected X and instead saw X. (totalt 899 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: #34: 328.328.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #34: 328.328.76d582a, antal fel: 3045 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1936 st)
- Expected X and instead saw X. (totalt 1036 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.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #39: 229.229.76d582a, antal fel: 3050 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1939 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)