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.40 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 54 ( 1.00 betyg )
- X is defined but never used. (totalt 36 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 5 st)
- `< script>` in: #75: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #75: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #45: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: gtm.js, antal fel: 510 ( 1.00 betyg )
- X is defined but never used. (totalt 410 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: gtm.js, antal fel: 1022 ( 1.00 betyg )
- X is defined but never used. (totalt 810 st)
- X is assigned a value but never used. (totalt 179 st)
- X is not defined. (totalt 32 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: accessibility.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: accessibility.j, antal fel: 1036 ( 1.00 betyg )
- X is defined but never used. (totalt 818 st)
- X is assigned a value but never used. (totalt 179 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #63: locale.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: locale.js, antal fel: 1038 ( 1.00 betyg )
- X is defined but never used. (totalt 818 st)
- X is assigned a value but never used. (totalt 179 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #65: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: js, antal fel: 1413 ( 1.00 betyg )
- X is defined but never used. (totalt 1135 st)
- X is assigned a value but never used. (totalt 228 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #66: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: analytics.js, antal fel: 1443 ( 1.00 betyg )
- X is defined but never used. (totalt 1162 st)
- X is assigned a value but never used. (totalt 228 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #67: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: fbevents.js, antal fel: 2090 ( 1.00 betyg )
- X is defined but never used. (totalt 1791 st)
- X is assigned a value but never used. (totalt 229 st)
- X is not defined. (totalt 55 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #68: 859375729731343, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: 859375729731343, antal fel: 2125 ( 1.00 betyg )
- X is defined but never used. (totalt 1816 st)
- X is assigned a value but never used. (totalt 230 st)
- X is not defined. (totalt 56 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #69: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: destination, antal fel: 2595 ( 1.00 betyg )
- X is defined but never used. (totalt 2194 st)
- X is assigned a value but never used. (totalt 302 st)
- X is not defined. (totalt 76 st)
- Unexpected console statement. (totalt 23 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 2 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 838 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 573 st)
- Expected X and instead saw X. (totalt 250 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- `< script>` in: #75: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #75: sw-iframe.html, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #45: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #45: gtm.js, antal fel: 1306 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 906 st)
- Expected X and instead saw X. (totalt 240 st)
- Do not access Object.prototype method X from target object. (totalt 112 st)
- Unnecessary escape character: \/. (totalt 34 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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: #46: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #46: gtm.js, antal fel: 2616 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1894 st)
- Expected X and instead saw X. (totalt 462 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \/. (totalt 40 st)
- X is not modified in this loop. (totalt 10 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)
- eval can be harmful. (totalt 1 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)
- `content-type=".*javascript.*"` in: #47: accessibility.j, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #47: accessibility.j, antal fel: 2823 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1950 st)
- Expected X and instead saw X. (totalt 515 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \-. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 40 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- eval can be harmful. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected negating the left operand of X operator. (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)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: locale.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #63: locale.js, antal fel: 2823 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1950 st)
- Expected X and instead saw X. (totalt 515 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \-. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 40 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- eval can be harmful. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected negating the left operand of X operator. (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)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #65: js, antal fel: 4493 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3259 st)
- Expected X and instead saw X. (totalt 752 st)
- Do not access Object.prototype method X from target object. (totalt 299 st)
- Unnecessary escape character: \-. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 47 st)
- X is not modified in this loop. (totalt 14 st)
- X is assigned to itself. (totalt 9 st)
- eval can be harmful. (totalt 3 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)
- Unexpected negating the left operand of X operator. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: analytics.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #66: analytics.js, antal fel: 4923 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3493 st)
- Expected X and instead saw X. (totalt 930 st)
- Do not access Object.prototype method X from target object. (totalt 311 st)
- Unnecessary escape character: \-. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 49 st)
- X is not modified in this loop. (totalt 14 st)
- X is assigned to itself. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unexpected negating the left operand of X operator. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: fbevents.js, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #67: fbevents.js, antal fel: 6306 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4106 st)
- Expected X and instead saw X. (totalt 1530 st)
- Do not access Object.prototype method X from target object. (totalt 314 st)
- Unnecessary escape character: \-. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 58 st)
- X is assigned to itself. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \}. (totalt 11 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)
- Unnecessary escape character: \|. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unexpected negating the left operand of X operator. (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)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: 859375729731343, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: 859375729731343, antal fel: 6368 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4155 st)
- Expected X and instead saw X. (totalt 1543 st)
- Do not access Object.prototype method X from target object. (totalt 314 st)
- Unnecessary escape character: \-. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 58 st)
- X is assigned to itself. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \}. (totalt 11 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)
- Unnecessary escape character: \|. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unexpected negating the left operand of X operator. (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)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: destination, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #69: destination, antal fel: 7709 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5172 st)
- Expected X and instead saw X. (totalt 1763 st)
- Do not access Object.prototype method X from target object. (totalt 404 st)
- Unnecessary escape character: \-. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 61 st)
- X is assigned to itself. (totalt 20 st)
- X is not modified in this loop. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 12 st)
- Unnecessary escape character: \}. (totalt 11 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 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)
- Unexpected string concatenation of literals. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unexpected negating the left operand of X operator. (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)
- Redundant use of `await` on a return value. (totalt 1 st)