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.36 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: 570 ( 1.00 betyg )
- X is defined but never used. (totalt 413 st)
- X is assigned a value but never used. (totalt 77 st)
- X is not defined. (totalt 55 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #14: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: gtm.js, antal fel: 580 ( 1.00 betyg )
- X is defined but never used. (totalt 470 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: js, antal fel: 1006 ( 1.00 betyg )
- X is defined but never used. (totalt 808 st)
- X is assigned a value but never used. (totalt 160 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: js, antal fel: 1432 ( 1.00 betyg )
- X is defined but never used. (totalt 1146 st)
- X is assigned a value but never used. (totalt 233 st)
- X is not defined. (totalt 52 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: main.js, antal fel: 1658 ( 1.00 betyg )
- X is defined but never used. (totalt 1350 st)
- X is assigned a value but never used. (totalt 236 st)
- X is not defined. (totalt 64 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #27: script.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: script.js, antal fel: 1706 ( 1.00 betyg )
- X is defined but never used. (totalt 1393 st)
- X is assigned a value but never used. (totalt 236 st)
- X is not defined. (totalt 66 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #29: banner.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: banner.js, antal fel: 1787 ( 1.00 betyg )
- X is defined but never used. (totalt 1437 st)
- X is assigned a value but never used. (totalt 236 st)
- X is not defined. (totalt 95 st)
- Unexpected console statement. (totalt 19 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: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2314 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1701 st)
- Expected X and instead saw X. (totalt 477 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (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: #14: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #14: gtm.js, antal fel: 1044 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 753 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 81 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #20: js, antal fel: 2606 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1975 st)
- Expected X and instead saw X. (totalt 429 st)
- Do not access Object.prototype method X from target object. (totalt 172 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (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: #21: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #21: js, antal fel: 4168 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3197 st)
- Expected X and instead saw X. (totalt 660 st)
- Do not access Object.prototype method X from target object. (totalt 263 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: main.js, antal grupperade fel: 34 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #25: main.js, antal fel: 6451 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4680 st)
- Expected X and instead saw X. (totalt 1302 st)
- Do not access Object.prototype method X from target object. (totalt 323 st)
- Unnecessary escape character: \/. (totalt 28 st)
- X is not modified in this loop. (totalt 14 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \}. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (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 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: script.js, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #27: script.js, antal fel: 6761 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4897 st)
- Expected X and instead saw X. (totalt 1368 st)
- Do not access Object.prototype method X from target object. (totalt 333 st)
- Unnecessary escape character: \/. (totalt 28 st)
- X is assigned to itself. (totalt 17 st)
- X is not modified in this loop. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 7 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \}. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 5 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 3 st)
- Unexpected string concatenation of literals. (totalt 2 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 escape character: \&. (totalt 2 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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: banner.js, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #29: banner.js, antal fel: 7057 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5111 st)
- Expected X and instead saw X. (totalt 1432 st)
- Do not access Object.prototype method X from target object. (totalt 335 st)
- Unnecessary escape character: \/. (totalt 28 st)
- X is assigned to itself. (totalt 20 st)
- X is not modified in this loop. (totalt 18 st)
- Comparing to itself is potentially pointless. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 12 st)
- The Function constructor is eval. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \}. (totalt 5 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 3 st)
- Unexpected string concatenation of literals. (totalt 2 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 escape character: \[. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 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)
- Unsafe usage of ReturnStatement. (totalt 1 st)