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.04 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 111 ( 1.00 betyg )
- Unexpected console statement. (totalt 44 st)
- X is not defined. (totalt 35 st)
- X is assigned a value but never used. (totalt 24 st)
- X is defined but never used. (totalt 8 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1911 ( 1.00 betyg )
- X is defined but never used. (totalt 846 st)
- X is not defined. (totalt 719 st)
- X is assigned a value but never used. (totalt 220 st)
- Unexpected console statement. (totalt 125 st)
- Parsing error: Unexpected token const (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: gtm.js, antal fel: 509 ( 1.00 betyg )
- X is defined but never used. (totalt 414 st)
- X is assigned a value but never used. (totalt 77 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #121: jquery.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #121: jquery.min.js, antal fel: 521 ( 1.00 betyg )
- X is defined but never used. (totalt 424 st)
- X is assigned a value but never used. (totalt 77 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #152: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #152: fbevents.js, antal fel: 1168 ( 1.00 betyg )
- X is defined but never used. (totalt 1053 st)
- X is assigned a value but never used. (totalt 78 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #153: 778409072358410, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #153: 778409072358410, antal fel: 1316 ( 1.00 betyg )
- X is defined but never used. (totalt 1179 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 29 st)
- X is not defined. (totalt 26 st)
- `content-type=".*javascript.*"` in: #158: webfont.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #158: webfont.js, antal fel: 1326 ( 1.00 betyg )
- X is defined but never used. (totalt 1187 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 29 st)
- X is not defined. (totalt 28 st)
- `content-type=".*javascript.*"` in: #166: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #166: js, antal fel: 1767 ( 1.00 betyg )
- X is defined but never used. (totalt 1546 st)
- X is assigned a value but never used. (totalt 153 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 29 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 307 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 305 st)
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 34 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 10685 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7231 st)
- Expected X and instead saw X. (totalt 2957 st)
- Do not access Object.prototype method X from target object. (totalt 237 st)
- Comparing to itself is potentially pointless. (totalt 38 st)
- Unnecessary escape character: \-. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 32 st)
- Unnecessary escape character: \.. (totalt 23 st)
- X is not modified in this loop. (totalt 21 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \[. (totalt 13 st)
- Unnecessary X. (totalt 11 st)
- The Function constructor is eval. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 8 st)
- Async method X has no X expression. (totalt 7 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Redundant use of `await` on a return value. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \}. (totalt 4 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 3 st)
- Unnecessary escape character: \(. (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 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Parsing error: Unexpected token const (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: #69: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #69: gtm.js, antal fel: 1321 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 939 st)
- Expected X and instead saw X. (totalt 242 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 13 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: #121: jquery.min.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #121: jquery.min.js, antal fel: 1701 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1155 st)
- Expected X and instead saw X. (totalt 400 st)
- Do not access Object.prototype method X from target object. (totalt 115 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #152: fbevents.js, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #152: fbevents.js, antal fel: 3084 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1768 st)
- Expected X and instead saw X. (totalt 1000 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 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)
- X is not modified in this loop. (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 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #153: 778409072358410, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #153: 778409072358410, antal fel: 3446 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1980 st)
- Expected X and instead saw X. (totalt 1145 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 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)
- X is not modified in this loop. (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)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #158: webfont.js, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #158: webfont.js, antal fel: 3524 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2026 st)
- Expected X and instead saw X. (totalt 1170 st)
- Do not access Object.prototype method X from target object. (totalt 122 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 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)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #166: js, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #166: js, antal fel: 4992 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3157 st)
- Expected X and instead saw X. (totalt 1394 st)
- Do not access Object.prototype method X from target object. (totalt 217 st)
- Unnecessary escape character: \/. (totalt 31 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- X is assigned to itself. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary escape character: \?. (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)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)