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.34 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 32 ( 1.00 betyg )
- X is not defined. (totalt 24 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: 1522 ( 1.00 betyg )
- X is not defined. (totalt 1275 st)
- X is defined but never used. (totalt 125 st)
- X is assigned a value but never used. (totalt 79 st)
- Unexpected console statement. (totalt 42 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: #72: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: 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: #75: index.be76b002., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: index.be76b002., 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 45 st)
- X is assigned a value but never used. (totalt 23 st)
- `content-type=".*javascript.*"` in: #76: 578.578.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: 578.578.0f57926, antal fel: 251 ( 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 23 st)
- `content-type=".*javascript.*"` in: #77: 925.925.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: 925.925.0f57926, antal fel: 259 ( 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 26 st)
- `content-type=".*javascript.*"` in: #78: 950.950.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: 950.950.0f57926, antal fel: 275 ( 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 29 st)
- `content-type=".*javascript.*"` in: #79: 628.628.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: 628.628.0f57926, antal fel: 277 ( 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 29 st)
- `content-type=".*javascript.*"` in: #80: 873.873.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: 873.873.0f57926, antal fel: 278 ( 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 29 st)
- `content-type=".*javascript.*"` in: #81: 236.236.0f57926, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #81: 236.236.0f57926, antal fel: 301 ( 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 34 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: 3525 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2211 st)
- Expected X and instead saw X. (totalt 1131 st)
- Unnecessary escape character: \/. (totalt 110 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: #72: configs.php, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #72: 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: 69 ( 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)
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: index.be76b002., antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #75: index.be76b002., antal fel: 753 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 400 st)
- Expected an assignment or function call and instead saw an expression. (totalt 319 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: #76: 578.578.0f57926, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #76: 578.578.0f57926, antal fel: 778 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 408 st)
- Expected an assignment or function call and instead saw an expression. (totalt 336 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: 925.925.0f57926, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #77: 925.925.0f57926, antal fel: 1126 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 561 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: #78: 950.950.0f57926, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #78: 950.950.0f57926, antal fel: 1480 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 719 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: #79: 628.628.0f57926, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #79: 628.628.0f57926, antal fel: 1508 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 726 st)
- Expected an assignment or function call and instead saw an expression. (totalt 722 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: 873.873.0f57926, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #80: 873.873.0f57926, antal fel: 1561 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 756 st)
- Expected X and instead saw X. (totalt 745 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: 236.236.0f57926, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #81: 236.236.0f57926, antal fel: 1874 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 929 st)
- Expected X and instead saw X. (totalt 883 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)