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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 771 ( 1.00 betyg )
- X is defined but never used. (totalt 545 st)
- X is not defined. (totalt 121 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 11 st)
- `< script>` in: #56: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #56: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #40: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: gtm.js, antal fel: 556 ( 1.00 betyg )
- X is defined but never used. (totalt 454 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: #41: wp-emoji-releas, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: wp-emoji-releas, antal fel: 557 ( 1.00 betyg )
- X is defined but never used. (totalt 454 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: #49: partial.sticky-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: partial.sticky-, antal fel: 557 ( 1.00 betyg )
- X is defined but never used. (totalt 454 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: #50: partial.mobile-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: partial.mobile-, antal fel: 557 ( 1.00 betyg )
- X is defined but never used. (totalt 454 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: #51: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: js, antal fel: 940 ( 1.00 betyg )
- X is defined but never used. (totalt 774 st)
- X is assigned a value but never used. (totalt 138 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: analytics.js, antal fel: 970 ( 1.00 betyg )
- X is defined but never used. (totalt 801 st)
- X is assigned a value but never used. (totalt 138 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: uc.js, antal fel: 1037 ( 1.00 betyg )
- X is defined but never used. (totalt 829 st)
- X is assigned a value but never used. (totalt 138 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #57: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: sv.js, antal fel: 1038 ( 1.00 betyg )
- X is defined but never used. (totalt 829 st)
- X is assigned a value but never used. (totalt 138 st)
- X is not defined. (totalt 52 st)
- Unexpected console statement. (totalt 19 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: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2296 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1595 st)
- Expected X and instead saw X. (totalt 569 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 4 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)
- Unnecessary escape character: \.. (totalt 1 st)
- `< script>` in: #56: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #56: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `content-type=".*javascript.*"` in: #40: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #40: gtm.js, antal fel: 1063 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 767 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 76 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 3 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: wp-emoji-releas, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #41: wp-emoji-releas, antal fel: 1089 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 782 st)
- Expected X and instead saw X. (totalt 207 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 3 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: #49: partial.sticky-, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #49: partial.sticky-, antal fel: 1114 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 791 st)
- Expected X and instead saw X. (totalt 223 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 3 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: #50: partial.mobile-, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #50: partial.mobile-, antal fel: 1128 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 799 st)
- Expected X and instead saw X. (totalt 229 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 3 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: #51: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #51: js, antal fel: 2805 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2113 st)
- Expected X and instead saw X. (totalt 468 st)
- Do not access Object.prototype method X from target object. (totalt 183 st)
- Unnecessary escape character: \/. (totalt 18 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)
- 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)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: analytics.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #52: analytics.js, antal fel: 3235 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2347 st)
- Expected X and instead saw X. (totalt 646 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \/. (totalt 20 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 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (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)
- `content-type=".*javascript.*"` in: #53: uc.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #53: uc.js, antal fel: 3399 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2450 st)
- Expected X and instead saw X. (totalt 697 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: sv.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #57: sv.js, antal fel: 3399 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2450 st)
- Expected X and instead saw X. (totalt 697 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)