Javascript
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.33 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 30 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1512 ( 1.00 betyg )
- X is not defined. (totalt 1271 st)
- X is defined but never used. (totalt 125 st)
- X is assigned a value but never used. (totalt 76 st)
- Unexpected console statement. (totalt 39 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: matomo.js, antal fel: 49 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 7 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #58: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: init.js, antal fel: 50 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 7 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #66: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: init.js, antal fel: 50 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 7 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #67: index.c201fc46., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: index.c201fc46., antal fel: 102 ( 1.00 betyg )
- Unexpected console statement. (totalt 35 st)
- X is defined but never used. (totalt 33 st)
- X is not defined. (totalt 19 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #68: 578.578.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: 578.578.76d582a, antal fel: 104 ( 1.00 betyg )
- Unexpected console statement. (totalt 37 st)
- X is defined but never used. (totalt 33 st)
- X is not defined. (totalt 19 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #69: 925.925.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: 925.925.76d582a, antal fel: 112 ( 1.00 betyg )
- Unexpected console statement. (totalt 39 st)
- X is defined but never used. (totalt 36 st)
- X is not defined. (totalt 19 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #70: 950.950.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: 950.950.76d582a, antal fel: 128 ( 1.00 betyg )
- X is defined but never used. (totalt 44 st)
- Unexpected console statement. (totalt 44 st)
- X is assigned a value but never used. (totalt 21 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #71: 628.628.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: 628.628.76d582a, antal fel: 130 ( 1.00 betyg )
- X is defined but never used. (totalt 46 st)
- Unexpected console statement. (totalt 44 st)
- X is assigned a value but never used. (totalt 21 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #72: 873.873.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: 873.873.76d582a, antal fel: 131 ( 1.00 betyg )
- X is defined but never used. (totalt 47 st)
- Unexpected console statement. (totalt 44 st)
- X is assigned a value but never used. (totalt 21 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #73: 328.328.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: 328.328.76d582a, antal fel: 153 ( 1.00 betyg )
- X is defined but never used. (totalt 59 st)
- Unexpected console statement. (totalt 50 st)
- X is assigned a value but never used. (totalt 25 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #78: 560.560.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: 560.560.76d582a, antal fel: 153 ( 1.00 betyg )
- X is defined but never used. (totalt 59 st)
- Unexpected console statement. (totalt 50 st)
- X is assigned a value but never used. (totalt 25 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #79: 994.994.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: 994.994.76d582a, antal fel: 153 ( 1.00 betyg )
- X is defined but never used. (totalt 59 st)
- Unexpected console statement. (totalt 50 st)
- X is assigned a value but never used. (totalt 25 st)
- X is not defined. (totalt 19 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 5 ( 4.00 betyg )
- Expected X and instead saw X. (totalt 3 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 24 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3520 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2210 st)
- Expected X and instead saw X. (totalt 1128 st)
- Unnecessary escape character: \/. (totalt 109 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Async method X has no X expression. (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 X. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: matomo.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #57: matomo.js, antal fel: 3 ( 4.40 betyg )
- Do not access Object.prototype method X from target object. (totalt 3 st)
- `content-type=".*javascript.*"` in: #58: init.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #58: init.js, antal fel: 6 ( 3.80 betyg )
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Expected X and instead saw X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: init.js, antal fel: 9 ( 3.20 betyg )
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Expected X and instead saw X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `content-type=".*javascript.*"` in: #67: index.c201fc46., antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #67: index.c201fc46., antal fel: 693 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 351 st)
- Expected an assignment or function call and instead saw an expression. (totalt 318 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: 578.578.76d582a, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #68: 578.578.76d582a, antal fel: 718 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 359 st)
- Expected an assignment or function call and instead saw an expression. (totalt 335 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: 925.925.76d582a, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #69: 925.925.76d582a, antal fel: 1066 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 560 st)
- Expected X and instead saw X. (totalt 477 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (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: #70: 950.950.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #70: 950.950.76d582a, antal fel: 1420 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 718 st)
- Expected X and instead saw X. (totalt 652 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 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: #71: 628.628.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #71: 628.628.76d582a, antal fel: 1448 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 721 st)
- Expected X and instead saw X. (totalt 677 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 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: #72: 873.873.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #72: 873.873.76d582a, antal fel: 1499 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 754 st)
- Expected X and instead saw X. (totalt 695 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 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: #73: 328.328.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #73: 328.328.76d582a, antal fel: 1811 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 927 st)
- Expected X and instead saw X. (totalt 832 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: 560.560.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #78: 560.560.76d582a, antal fel: 1816 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 930 st)
- Expected X and instead saw X. (totalt 834 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: 994.994.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #79: 994.994.76d582a, antal fel: 1821 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 933 st)
- Expected X and instead saw X. (totalt 836 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \&. (totalt 1 st)