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.35 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 21 ( 1.00 betyg )
- X is not defined. (totalt 18 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1530 ( 1.00 betyg )
- X is not defined. (totalt 1285 st)
- X is defined but never used. (totalt 125 st)
- X is assigned a value but never used. (totalt 78 st)
- Unexpected console statement. (totalt 41 st)
- Parsing error: Unexpected token (totalt 1 st)
- `< script>` in: #67: CookieInformati, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #67: CookieInformati, antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 8 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #62: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: matomo.js, antal fel: 193 ( 1.00 betyg )
- X is not defined. (totalt 125 st)
- X is defined but never used. (totalt 39 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #63: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: init.js, antal fel: 194 ( 1.00 betyg )
- X is not defined. (totalt 125 st)
- X is defined but never used. (totalt 39 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #69: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: configs.php, antal fel: 195 ( 1.00 betyg )
- X is not defined. (totalt 126 st)
- X is defined but never used. (totalt 39 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #74: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: init.js, antal fel: 195 ( 1.00 betyg )
- X is not defined. (totalt 126 st)
- X is defined but never used. (totalt 39 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #76: index.c201fc46., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: index.c201fc46., antal fel: 247 ( 1.00 betyg )
- X is not defined. (totalt 129 st)
- X is defined but never used. (totalt 52 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 21 st)
- `content-type=".*javascript.*"` in: #77: 578.578.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: 578.578.76d582a, antal fel: 249 ( 1.00 betyg )
- X is not defined. (totalt 129 st)
- X is defined but never used. (totalt 52 st)
- Unexpected console statement. (totalt 47 st)
- X is assigned a value but never used. (totalt 21 st)
- `content-type=".*javascript.*"` in: #78: 925.925.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: 925.925.76d582a, antal fel: 257 ( 1.00 betyg )
- X is not defined. (totalt 129 st)
- X is defined but never used. (totalt 55 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 24 st)
- `content-type=".*javascript.*"` in: #79: 950.950.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: 950.950.76d582a, antal fel: 273 ( 1.00 betyg )
- X is not defined. (totalt 129 st)
- X is defined but never used. (totalt 63 st)
- Unexpected console statement. (totalt 54 st)
- X is assigned a value but never used. (totalt 27 st)
- `content-type=".*javascript.*"` in: #80: 628.628.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: 628.628.76d582a, antal fel: 275 ( 1.00 betyg )
- X is not defined. (totalt 129 st)
- X is defined but never used. (totalt 65 st)
- Unexpected console statement. (totalt 54 st)
- X is assigned a value but never used. (totalt 27 st)
- `content-type=".*javascript.*"` in: #81: 873.873.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #81: 873.873.76d582a, antal fel: 276 ( 1.00 betyg )
- X is not defined. (totalt 129 st)
- X is defined but never used. (totalt 66 st)
- Unexpected console statement. (totalt 54 st)
- X is assigned a value but never used. (totalt 27 st)
- `content-type=".*javascript.*"` in: #82: 328.328.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: 328.328.76d582a, antal fel: 298 ( 1.00 betyg )
- X is not defined. (totalt 129 st)
- X is defined but never used. (totalt 78 st)
- Unexpected console statement. (totalt 60 st)
- X is assigned a value but never used. (totalt 31 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 2 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: 3526 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2212 st)
- Expected X and instead saw X. (totalt 1132 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: #62: matomo.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #62: matomo.js, antal fel: 62 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 49 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: init.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #63: init.js, antal fel: 65 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 51 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: configs.php, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #69: configs.php, antal fel: 65 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 51 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: init.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #74: init.js, antal fel: 68 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 51 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: index.c201fc46., antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #76: index.c201fc46., antal fel: 752 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 400 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 14 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \[. (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: #77: 578.578.76d582a, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #77: 578.578.76d582a, antal fel: 777 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 408 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 14 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \[. (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: #78: 925.925.76d582a, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #78: 925.925.76d582a, antal fel: 1125 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 560 st)
- Expected X and instead saw X. (totalt 526 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \). (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: #79: 950.950.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #79: 950.950.76d582a, antal fel: 1479 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 718 st)
- Expected X and instead saw X. (totalt 701 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \). (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)
- `content-type=".*javascript.*"` in: #80: 628.628.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #80: 628.628.76d582a, antal fel: 1507 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 726 st)
- Expected an assignment or function call and instead saw an expression. (totalt 721 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \). (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)
- `content-type=".*javascript.*"` in: #81: 873.873.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #81: 873.873.76d582a, antal fel: 1558 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 754 st)
- Expected X and instead saw X. (totalt 744 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \). (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)
- `content-type=".*javascript.*"` in: #82: 328.328.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #82: 328.328.76d582a, antal fel: 1870 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 927 st)
- Expected X and instead saw X. (totalt 881 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \). (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)