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.23 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 8 ( 3.40 betyg )
- X is not defined. (totalt 5 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1343 ( 1.00 betyg )
- X is not defined. (totalt 947 st)
- X is defined but never used. (totalt 327 st)
- Unexpected console statement. (totalt 54 st)
- X is assigned a value but never used. (totalt 15 st)
- `< script>` in: #42: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #42: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #10: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #10: api.js, antal fel: 138 ( 1.00 betyg )
- X is defined but never used. (totalt 120 st)
- Unexpected console statement. (totalt 10 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: 646.477e55051bf, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: 646.477e55051bf, antal fel: 138 ( 1.00 betyg )
- X is defined but never used. (totalt 120 st)
- Unexpected console statement. (totalt 10 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: container-PXXE2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: container-PXXE2, antal fel: 177 ( 1.00 betyg )
- X is defined but never used. (totalt 147 st)
- Unexpected console statement. (totalt 14 st)
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #20: yao0vfi.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: yao0vfi.js, antal fel: 189 ( 1.00 betyg )
- X is defined but never used. (totalt 157 st)
- Unexpected console statement. (totalt 16 st)
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #21: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: gtm.js, antal fel: 656 ( 1.00 betyg )
- X is defined but never used. (totalt 519 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #22: ai.2.gbl.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: ai.2.gbl.min.js, antal fel: 745 ( 1.00 betyg )
- X is defined but never used. (totalt 605 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #33: json, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: json, antal fel: 746 ( 1.00 betyg )
- X is defined but never used. (totalt 605 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 29 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #34: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: destination, antal fel: 1299 ( 1.00 betyg )
- X is defined but never used. (totalt 1037 st)
- X is assigned a value but never used. (totalt 194 st)
- X is not defined. (totalt 52 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #35: uwt.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: uwt.js, antal fel: 1319 ( 1.00 betyg )
- X is defined but never used. (totalt 1053 st)
- X is assigned a value but never used. (totalt 194 st)
- X is not defined. (totalt 56 st)
- Unexpected console statement. (totalt 16 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script>` in: #1: Webbsida , antal fel: 23 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 40 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4913 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3530 st)
- Expected X and instead saw X. (totalt 928 st)
- Unnecessary escape character: \-. (totalt 93 st)
- Do not access Object.prototype method X from target object. (totalt 54 st)
- Unnecessary escape character: \/. (totalt 54 st)
- Unnecessary escape character: \.. (totalt 39 st)
- Unnecessary escape character: \'. (totalt 24 st)
- Unnecessary escape character: \". (totalt 23 st)
- Unnecessary escape character: \[. (totalt 20 st)
- Unnecessary X. (totalt 20 st)
- Unnecessary escape character: \ . (totalt 11 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 9 st)
- The Function constructor is eval. (totalt 8 st)
- Unnecessary escape character: \:. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 6 st)
- Unnecessary escape character: \&. (totalt 5 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)
- Static async method X has no X expression. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `< script>` in: #42: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #42: 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: #10: api.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #10: api.js, antal fel: 1372 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 852 st)
- Expected X and instead saw X. (totalt 484 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: 646.477e55051bf, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #18: 646.477e55051bf, antal fel: 1385 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 862 st)
- Expected X and instead saw X. (totalt 487 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: container-PXXE2, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #19: container-PXXE2, antal fel: 1518 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 862 st)
- Expected X and instead saw X. (totalt 491 st)
- Unnecessary escape character: \/. (totalt 129 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: yao0vfi.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #20: yao0vfi.js, antal fel: 1581 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 904 st)
- Expected X and instead saw X. (totalt 503 st)
- Unnecessary escape character: \/. (totalt 129 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Redundant use of `await` on a return value. (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: #21: gtm.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #21: gtm.js, antal fel: 3146 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2006 st)
- Expected X and instead saw X. (totalt 730 st)
- Unnecessary escape character: \/. (totalt 255 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: ai.2.gbl.min.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #22: ai.2.gbl.min.js, antal fel: 3615 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2419 st)
- Expected X and instead saw X. (totalt 766 st)
- Unnecessary escape character: \/. (totalt 259 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 10 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- eval can be harmful. (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: #33: json, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #33: json, antal fel: 3615 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2419 st)
- Expected X and instead saw X. (totalt 766 st)
- Unnecessary escape character: \/. (totalt 259 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 10 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- eval can be harmful. (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: #34: destination, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #34: destination, antal fel: 4786 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3299 st)
- Expected X and instead saw X. (totalt 971 st)
- Unnecessary escape character: \/. (totalt 262 st)
- Do not access Object.prototype method X from target object. (totalt 185 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary escape character: \.. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- The Function constructor is eval. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 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)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: uwt.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #35: uwt.js, antal fel: 5038 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3473 st)
- Expected X and instead saw X. (totalt 1042 st)
- Unnecessary escape character: \/. (totalt 262 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary escape character: \.. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- The Function constructor is eval. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 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)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)