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.46 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: #58: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #58: 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: #42: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: 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: #43: wp-emoji-releas, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: 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: #51: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: js, antal fel: 943 ( 1.00 betyg )
- X is defined but never used. (totalt 773 st)
- X is assigned a value but never used. (totalt 141 st)
- X is not defined. (totalt 28 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: 973 ( 1.00 betyg )
- X is defined but never used. (totalt 800 st)
- X is assigned a value but never used. (totalt 141 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: partial.sticky-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: partial.sticky-, antal fel: 973 ( 1.00 betyg )
- X is defined but never used. (totalt 800 st)
- X is assigned a value but never used. (totalt 141 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: partial.mobile-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: partial.mobile-, antal fel: 973 ( 1.00 betyg )
- X is defined but never used. (totalt 800 st)
- X is assigned a value but never used. (totalt 141 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: uc.js, antal fel: 1040 ( 1.00 betyg )
- X is defined but never used. (totalt 828 st)
- X is assigned a value but never used. (totalt 141 st)
- X is not defined. (totalt 52 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #59: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: sv.js, antal fel: 1041 ( 1.00 betyg )
- X is defined but never used. (totalt 828 st)
- X is assigned a value but never used. (totalt 141 st)
- X is not defined. (totalt 53 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: #58: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #58: 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: #42: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #42: 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: #43: wp-emoji-releas, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #43: 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: #51: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #51: js, antal fel: 2775 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2088 st)
- Expected X and instead saw X. (totalt 444 st)
- Do not access Object.prototype method X from target object. (totalt 183 st)
- Unnecessary escape character: \/. (totalt 37 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: 3205 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2322 st)
- Expected X and instead saw X. (totalt 622 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \/. (totalt 39 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: partial.sticky-, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #53: partial.sticky-, antal fel: 3230 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2331 st)
- Expected X and instead saw X. (totalt 638 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \/. (totalt 39 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: #54: partial.mobile-, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #54: partial.mobile-, antal fel: 3244 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2339 st)
- Expected X and instead saw X. (totalt 644 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \/. (totalt 39 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: #55: uc.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #55: uc.js, antal fel: 3408 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2442 st)
- Expected X and instead saw X. (totalt 695 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 39 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: #59: sv.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #59: sv.js, antal fel: 3408 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2442 st)
- Expected X and instead saw X. (totalt 695 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 39 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)