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.51 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1134 ( 1.00 betyg )
- X is not defined. (totalt 893 st)
- X is defined but never used. (totalt 154 st)
- X is assigned a value but never used. (totalt 57 st)
- Unexpected console statement. (totalt 29 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #82: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: gtm.js, antal fel: 549 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #90: dialog.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #90: dialog.min.js, antal fel: 556 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #93: nav-menu.a23fbd, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #93: nav-menu.a23fbd, antal fel: 566 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #94: woocommerce-men, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #94: woocommerce-men, antal fel: 586 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 55 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #95: text-editor.c08, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #95: text-editor.c08, antal fel: 589 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 58 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #96: hotspot.fa04300, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #96: hotspot.fa04300, antal fel: 596 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #97: form.5fb35271b8, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #97: form.5fb35271b8, antal fel: 627 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is not defined. (totalt 96 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #98: popup.f7b15b2ca, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #98: popup.f7b15b2ca, antal fel: 630 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is not defined. (totalt 99 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #99: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #99: js, antal fel: 1068 ( 1.00 betyg )
- X is defined but never used. (totalt 802 st)
- X is assigned a value but never used. (totalt 155 st)
- X is not defined. (totalt 109 st)
- Unexpected console statement. (totalt 2 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: 34 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3475 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1925 st)
- Expected X and instead saw X. (totalt 1369 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Unnecessary escape character: \/. (totalt 23 st)
- The Function constructor is eval. (totalt 14 st)
- Unnecessary X. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary escape character: \%. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- Unnecessary escape character: \#. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unsafe usage of ReturnStatement. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Script URL is a form of eval. (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)
- 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)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #82: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #82: gtm.js, antal fel: 1092 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 784 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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: #90: dialog.min.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #90: dialog.min.js, antal fel: 1129 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 815 st)
- Expected X and instead saw X. (totalt 207 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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: #93: nav-menu.a23fbd, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #93: nav-menu.a23fbd, antal fel: 1145 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 830 st)
- Expected X and instead saw X. (totalt 208 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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: #94: woocommerce-men, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #94: woocommerce-men, antal fel: 1160 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 845 st)
- Expected X and instead saw X. (totalt 208 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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: #95: text-editor.c08, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #95: text-editor.c08, antal fel: 1164 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 849 st)
- Expected X and instead saw X. (totalt 208 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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: #96: hotspot.fa04300, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #96: hotspot.fa04300, antal fel: 1172 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 857 st)
- Expected X and instead saw X. (totalt 208 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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: #97: form.5fb35271b8, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #97: form.5fb35271b8, antal fel: 1220 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 904 st)
- Expected X and instead saw X. (totalt 209 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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: #98: popup.f7b15b2ca, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #98: popup.f7b15b2ca, antal fel: 1221 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 905 st)
- Expected X and instead saw X. (totalt 209 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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: #99: js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #99: js, antal fel: 2709 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2055 st)
- Expected X and instead saw X. (totalt 435 st)
- Do not access Object.prototype method X from target object. (totalt 189 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 7 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)