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.44 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 17 ( 1.60 betyg )
- X is assigned a value but never used. (totalt 9 st)
- X is not defined. (totalt 7 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 95 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- Unexpected console statement. (totalt 40 st)
- X is not defined. (totalt 10 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #7: polyfill.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #7: polyfill.min.js, antal fel: 3 ( 4.40 betyg )
- X is not defined. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: aspnet-validati, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #8: aspnet-validati, antal fel: 19 ( 1.20 betyg )
- X is defined but never used. (totalt 14 st)
- X is not defined. (totalt 4 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: chart.umd.min.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #9: chart.umd.min.j, antal fel: 55 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- Unexpected console statement. (totalt 8 st)
- X is not defined. (totalt 6 st)
- `content-type=".*javascript.*"` in: #26: markerclusterer, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: markerclusterer, antal fel: 94 ( 1.00 betyg )
- X is defined but never used. (totalt 48 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: DependencyHandl, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: DependencyHandl, antal fel: 823 ( 1.00 betyg )
- X is not defined. (totalt 531 st)
- X is defined but never used. (totalt 193 st)
- X is assigned a value but never used. (totalt 71 st)
- Unexpected console statement. (totalt 28 st)
- `content-type=".*javascript.*"` in: #40: recaptcha--sv.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: recaptcha--sv.j, antal fel: 923 ( 1.00 betyg )
- X is not defined. (totalt 548 st)
- X is defined but never used. (totalt 271 st)
- X is assigned a value but never used. (totalt 73 st)
- Unexpected console statement. (totalt 31 st)
- `content-type=".*javascript.*"` in: #43: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: common.js, antal fel: 935 ( 1.00 betyg )
- X is not defined. (totalt 549 st)
- X is defined but never used. (totalt 282 st)
- X is assigned a value but never used. (totalt 73 st)
- Unexpected console statement. (totalt 31 st)
- `content-type=".*javascript.*"` in: #44: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: util.js, antal fel: 954 ( 1.00 betyg )
- X is not defined. (totalt 550 st)
- X is defined but never used. (totalt 297 st)
- X is assigned a value but never used. (totalt 75 st)
- Unexpected console statement. (totalt 32 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1393 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 787 st)
- Expected X and instead saw X. (totalt 289 st)
- X is assigned to itself. (totalt 267 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Async method X has no X expression. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Async function has no X expression. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #7: polyfill.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #7: polyfill.min.js, antal fel: 44 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 26 st)
- Expected an assignment or function call and instead saw an expression. (totalt 18 st)
- `content-type=".*javascript.*"` in: #8: aspnet-validati, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: aspnet-validati, antal fel: 114 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 70 st)
- Expected X and instead saw X. (totalt 41 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: chart.umd.min.j, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #9: chart.umd.min.j, antal fel: 701 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 609 st)
- Expected X and instead saw X. (totalt 87 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: markerclusterer, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #26: markerclusterer, antal fel: 854 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 686 st)
- Expected X and instead saw X. (totalt 156 st)
- Unnecessary escape character: \-. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: DependencyHandl, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #28: DependencyHandl, antal fel: 3812 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2602 st)
- Expected X and instead saw X. (totalt 990 st)
- Unnecessary escape character: \-. (totalt 108 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unnecessary X. (totalt 21 st)
- Unexpected string concatenation of literals. (totalt 21 st)
- The Function constructor is eval. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \%. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: recaptcha--sv.j, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #40: recaptcha--sv.j, antal fel: 6077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3176 st)
- Expected X and instead saw X. (totalt 2631 st)
- Unnecessary escape character: \-. (totalt 111 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary X. (totalt 22 st)
- Unexpected string concatenation of literals. (totalt 21 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 10 st)
- The Function constructor is eval. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \^. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \). (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)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unsafe usage of ThrowStatement. (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: #43: common.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #43: common.js, antal fel: 6514 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3518 st)
- Expected X and instead saw X. (totalt 2715 st)
- Unnecessary escape character: \-. (totalt 111 st)
- Do not access Object.prototype method X from target object. (totalt 32 st)
- Unnecessary X. (totalt 23 st)
- Unexpected string concatenation of literals. (totalt 23 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is assigned to itself. (totalt 10 st)
- The Function constructor is eval. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \^. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: util.js, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: util.js, antal fel: 7880 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4147 st)
- Expected X and instead saw X. (totalt 3428 st)
- Unnecessary escape character: \-. (totalt 111 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- Unnecessary X. (totalt 25 st)
- Unexpected string concatenation of literals. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 16 st)
- The Function constructor is eval. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \^. (totalt 6 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)