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.75 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 171 ( 1.00 betyg )
- X is defined but never used. (totalt 125 st)
- X is assigned a value but never used. (totalt 21 st)
- Unexpected console statement. (totalt 17 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #19: 362.91e1884f8a7, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #19: 362.91e1884f8a7, antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: 389.0acf1bec013, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: 389.0acf1bec013, antal fel: 5 ( 4.00 betyg )
- X is assigned a value but never used. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: 1bfc9850-5d44de, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #21: 1bfc9850-5d44de, antal fel: 5 ( 4.00 betyg )
- X is assigned a value but never used. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: 242-755b86dba2d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: 242-755b86dba2d, antal fel: 16 ( 1.80 betyg )
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: 910.c0f0446260a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: 910.c0f0446260a, antal fel: 19 ( 1.20 betyg )
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: 0c428ae2.a438b2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: 0c428ae2.a438b2, antal fel: 19 ( 1.20 betyg )
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: 77.9e70c130ed3c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: 77.9e70c130ed3c, antal fel: 19 ( 1.20 betyg )
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: gtm.js, antal fel: 523 ( 1.00 betyg )
- X is defined but never used. (totalt 421 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #31: script.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: script.js, antal fel: 571 ( 1.00 betyg )
- X is defined but never used. (totalt 464 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #32: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: js, antal fel: 991 ( 1.00 betyg )
- X is defined but never used. (totalt 800 st)
- X is assigned a value but never used. (totalt 150 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #33: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: fbevents.js, antal fel: 1642 ( 1.00 betyg )
- X is defined but never used. (totalt 1433 st)
- X is assigned a value but never used. (totalt 151 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #34: jkaupw27uh, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: jkaupw27uh, antal fel: 1642 ( 1.00 betyg )
- X is defined but never used. (totalt 1433 st)
- X is assigned a value but never used. (totalt 151 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #35: 108742598262903, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: 108742598262903, antal fel: 1792 ( 1.00 betyg )
- X is defined but never used. (totalt 1561 st)
- X is assigned a value but never used. (totalt 155 st)
- Unexpected console statement. (totalt 39 st)
- X is not defined. (totalt 37 st)
- `content-type=".*javascript.*"` in: #37: banner.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: banner.js, antal fel: 1873 ( 1.00 betyg )
- X is defined but never used. (totalt 1605 st)
- X is assigned a value but never used. (totalt 155 st)
- X is not defined. (totalt 66 st)
- Unexpected console statement. (totalt 47 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3413 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2336 st)
- Expected X and instead saw X. (totalt 985 st)
- Do not access Object.prototype method X from target object. (totalt 37 st)
- Unnecessary X. (totalt 10 st)
- Redundant use of `await` on a return value. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Async function X has no X expression. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: 549.fca27fd5953, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #18: 549.fca27fd5953, antal fel: 5 ( 4.00 betyg )
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #19: 362.91e1884f8a7, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #19: 362.91e1884f8a7, antal fel: 9 ( 3.20 betyg )
- Expected X and instead saw X. (totalt 8 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: 389.0acf1bec013, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #20: 389.0acf1bec013, antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 14 st)
- Expected X and instead saw X. (totalt 12 st)
- `content-type=".*javascript.*"` in: #21: 1bfc9850-5d44de, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #21: 1bfc9850-5d44de, antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 14 st)
- Expected X and instead saw X. (totalt 12 st)
- `content-type=".*javascript.*"` in: #22: 242-755b86dba2d, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #22: 242-755b86dba2d, antal fel: 280 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 162 st)
- Expected X and instead saw X. (totalt 113 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: 910.c0f0446260a, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #23: 910.c0f0446260a, antal fel: 288 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 169 st)
- Expected X and instead saw X. (totalt 114 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: 0c428ae2.a438b2, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #24: 0c428ae2.a438b2, antal fel: 288 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 169 st)
- Expected X and instead saw X. (totalt 114 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: 77.9e70c130ed3c, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #25: 77.9e70c130ed3c, antal fel: 309 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 173 st)
- Expected X and instead saw X. (totalt 131 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #28: gtm.js, antal fel: 1519 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1031 st)
- Expected X and instead saw X. (totalt 333 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- Unnecessary escape character: \/. (totalt 44 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: script.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #31: script.js, antal fel: 1829 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1248 st)
- Expected X and instead saw X. (totalt 399 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \/. (totalt 44 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (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)
- `content-type=".*javascript.*"` in: #32: js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #32: js, antal fel: 3406 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2486 st)
- Expected X and instead saw X. (totalt 630 st)
- Do not access Object.prototype method X from target object. (totalt 198 st)
- Unnecessary escape character: \/. (totalt 47 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: fbevents.js, antal grupperade fel: 34 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #33: fbevents.js, antal fel: 4794 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3101 st)
- Expected X and instead saw X. (totalt 1233 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 56 st)
- X is assigned to itself. (totalt 18 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: jkaupw27uh, antal grupperade fel: 34 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #34: jkaupw27uh, antal fel: 4798 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3104 st)
- Expected X and instead saw X. (totalt 1234 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 56 st)
- X is assigned to itself. (totalt 18 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: 108742598262903, antal grupperade fel: 34 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #35: 108742598262903, antal fel: 5196 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3331 st)
- Expected X and instead saw X. (totalt 1400 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 56 st)
- Unsafe usage of ThrowStatement. (totalt 20 st)
- X is assigned to itself. (totalt 19 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: banner.js, antal grupperade fel: 34 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #37: banner.js, antal fel: 5493 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3546 st)
- Expected X and instead saw X. (totalt 1464 st)
- Do not access Object.prototype method X from target object. (totalt 203 st)
- Unnecessary escape character: \/. (totalt 56 st)
- X is assigned to itself. (totalt 22 st)
- Unsafe usage of ThrowStatement. (totalt 22 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- eval can be harmful. (totalt 1 st)