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.22 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: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 23 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #17: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: gtm.js, antal fel: 511 ( 1.00 betyg )
- X is defined but never used. (totalt 412 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: cb66d2e7.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: cb66d2e7.js, antal fel: 534 ( 1.00 betyg )
- X is defined but never used. (totalt 435 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: js, antal fel: 941 ( 1.00 betyg )
- X is defined but never used. (totalt 765 st)
- X is assigned a value but never used. (totalt 145 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: analytics.js, antal fel: 971 ( 1.00 betyg )
- X is defined but never used. (totalt 792 st)
- X is assigned a value but never used. (totalt 145 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: fbevents.js, antal fel: 1625 ( 1.00 betyg )
- X is defined but never used. (totalt 1428 st)
- X is assigned a value but never used. (totalt 146 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #32: hotjar-587560.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: hotjar-587560.j, antal fel: 1649 ( 1.00 betyg )
- X is defined but never used. (totalt 1436 st)
- X is assigned a value but never used. (totalt 146 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #33: 129384203062948, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: 129384203062948, antal fel: 1799 ( 1.00 betyg )
- X is defined but never used. (totalt 1564 st)
- X is assigned a value but never used. (totalt 150 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 34 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: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1085 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 807 st)
- Expected X and instead saw X. (totalt 251 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 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)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #17: gtm.js, antal fel: 1303 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 896 st)
- Expected X and instead saw X. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 49 st)
- X is not modified in this loop. (totalt 7 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: #28: cb66d2e7.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #28: cb66d2e7.js, antal fel: 1991 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1096 st)
- Expected X and instead saw X. (totalt 698 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- Unnecessary escape character: \/. (totalt 54 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \". (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Comparing to itself is potentially pointless. (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)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #29: js, antal fel: 3602 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2365 st)
- Expected X and instead saw X. (totalt 930 st)
- Do not access Object.prototype method X from target object. (totalt 203 st)
- Unnecessary escape character: \/. (totalt 57 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: analytics.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: analytics.js, antal fel: 4032 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2599 st)
- Expected X and instead saw X. (totalt 1108 st)
- Do not access Object.prototype method X from target object. (totalt 215 st)
- Unnecessary escape character: \/. (totalt 59 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \$. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: fbevents.js, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #31: fbevents.js, antal fel: 5421 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3215 st)
- Expected X and instead saw X. (totalt 1711 st)
- Do not access Object.prototype method X from target object. (totalt 218 st)
- Unnecessary escape character: \/. (totalt 68 st)
- Unnecessary escape character: \-. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- X is assigned to itself. (totalt 14 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary escape character: \}. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \^. (totalt 10 st)
- Unnecessary escape character: \|. (totalt 9 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 8 st)
- Unnecessary escape character: \". (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 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)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: hotjar-587560.j, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #32: hotjar-587560.j, antal fel: 5464 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3237 st)
- Expected X and instead saw X. (totalt 1732 st)
- Do not access Object.prototype method X from target object. (totalt 218 st)
- Unnecessary escape character: \/. (totalt 68 st)
- Unnecessary escape character: \-. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- X is assigned to itself. (totalt 14 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary escape character: \}. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \^. (totalt 10 st)
- Unnecessary escape character: \|. (totalt 9 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 8 st)
- Unnecessary escape character: \". (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 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)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #33: 129384203062948, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #33: 129384203062948, antal fel: 5862 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3464 st)
- Expected X and instead saw X. (totalt 1898 st)
- Do not access Object.prototype method X from target object. (totalt 218 st)
- Unnecessary escape character: \/. (totalt 68 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 17 st)
- X is assigned to itself. (totalt 15 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary escape character: \}. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \^. (totalt 10 st)
- Unnecessary escape character: \". (totalt 10 st)
- Unnecessary escape character: \|. (totalt 9 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 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)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)