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.21 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: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 179 ( 1.00 betyg )
- X is defined but never used. (totalt 126 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #10: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #10: gtm.js, antal fel: 530 ( 1.00 betyg )
- X is defined but never used. (totalt 428 st)
- X is assigned a value but never used. (totalt 83 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: wp-emoji-releas, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: wp-emoji-releas, antal fel: 531 ( 1.00 betyg )
- X is defined but never used. (totalt 428 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: mapbox.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: mapbox.js, antal fel: 726 ( 1.00 betyg )
- X is defined but never used. (totalt 463 st)
- X is not defined. (totalt 172 st)
- X is assigned a value but never used. (totalt 84 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #49: otSDKStub.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: otSDKStub.js, antal fel: 732 ( 1.00 betyg )
- X is defined but never used. (totalt 467 st)
- X is not defined. (totalt 172 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #50: 2760a086-e54a-4, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #50: 2760a086-e54a-4, antal fel: 733 ( 1.00 betyg )
- X is defined but never used. (totalt 467 st)
- X is not defined. (totalt 172 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 8 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: otBannerSdk.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #52: otBannerSdk.js, antal fel: 798 ( 1.00 betyg )
- X is defined but never used. (totalt 494 st)
- X is not defined. (totalt 173 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 45 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: sv.json, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #53: sv.json, antal fel: 799 ( 1.00 betyg )
- X is defined but never used. (totalt 494 st)
- X is not defined. (totalt 173 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 45 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #85: L.Control.Locat, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #85: L.Control.Locat, antal fel: 803 ( 1.00 betyg )
- X is defined but never used. (totalt 494 st)
- X is not defined. (totalt 177 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 45 st)
- Parsing error: Unexpected token : (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: 18 ( 1.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1444 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1008 st)
- Expected X and instead saw X. (totalt 384 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Do not access Object.prototype method X from target object. (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)
- X is not modified in this loop. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: gtm.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #10: gtm.js, antal fel: 1374 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 893 st)
- Expected X and instead saw X. (totalt 208 st)
- Unnecessary escape character: \/. (totalt 163 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 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: #37: wp-emoji-releas, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #37: wp-emoji-releas, antal fel: 1400 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 908 st)
- Expected X and instead saw X. (totalt 217 st)
- Unnecessary escape character: \/. (totalt 163 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 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: #41: mapbox.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #41: mapbox.js, antal fel: 2055 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1443 st)
- Expected X and instead saw X. (totalt 301 st)
- Unnecessary escape character: \/. (totalt 166 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \". (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #49: otSDKStub.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #49: otSDKStub.js, antal fel: 2125 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1501 st)
- Expected X and instead saw X. (totalt 313 st)
- Unnecessary escape character: \/. (totalt 166 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \". (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #50: 2760a086-e54a-4, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #50: 2760a086-e54a-4, antal fel: 2126 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1501 st)
- Expected X and instead saw X. (totalt 313 st)
- Unnecessary escape character: \/. (totalt 166 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \". (totalt 2 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)
- 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)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: otBannerSdk.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #52: otBannerSdk.js, antal fel: 3203 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2407 st)
- Expected X and instead saw X. (totalt 474 st)
- Unnecessary escape character: \/. (totalt 166 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 5 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 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (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)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: sv.json, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #53: sv.json, antal fel: 3204 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2407 st)
- Expected X and instead saw X. (totalt 474 st)
- Unnecessary escape character: \/. (totalt 166 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 5 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 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (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)
- `content-type=".*javascript.*"` in: #85: L.Control.Locat, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #85: L.Control.Locat, antal fel: 3241 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2435 st)
- Expected X and instead saw X. (totalt 483 st)
- Unnecessary escape character: \/. (totalt 166 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 5 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 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (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)