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.53 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: 564 ( 1.00 betyg )
- X is defined but never used. (totalt 267 st)
- X is not defined. (totalt 156 st)
- Unexpected console statement. (totalt 130 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #16: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: gtm.js, antal fel: 516 ( 1.00 betyg )
- X is defined but never used. (totalt 416 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: cse-element--sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: cse-element--sv, antal fel: 572 ( 1.00 betyg )
- X is defined but never used. (totalt 458 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #36: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: js, antal fel: 1029 ( 1.00 betyg )
- X is defined but never used. (totalt 819 st)
- X is assigned a value but never used. (totalt 172 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #41: async-ads.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: async-ads.js, antal fel: 1106 ( 1.00 betyg )
- X is defined but never used. (totalt 877 st)
- X is assigned a value but never used. (totalt 172 st)
- X is not defined. (totalt 38 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: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2487 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1486 st)
- Expected X and instead saw X. (totalt 828 st)
- Unnecessary escape character: \-. (totalt 56 st)
- Do not access Object.prototype method X from target object. (totalt 46 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unexpected string concatenation of literals. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary X. (totalt 9 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \,. (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)
- `content-type=".*javascript.*"` in: #16: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #16: gtm.js, antal fel: 1159 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 836 st)
- Expected X and instead saw X. (totalt 203 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 19 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: #33: cse-element--sv, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #33: cse-element--sv, antal fel: 2778 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1909 st)
- Expected X and instead saw X. (totalt 714 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \/. (totalt 19 st)
- X is assigned to itself. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #36: js, antal fel: 4206 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3004 st)
- Expected X and instead saw X. (totalt 933 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Unnecessary escape character: \/. (totalt 37 st)
- X is assigned to itself. (totalt 14 st)
- X is not modified in this loop. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: async-ads.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #41: async-ads.js, antal fel: 5017 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3426 st)
- Expected X and instead saw X. (totalt 1263 st)
- Do not access Object.prototype method X from target object. (totalt 222 st)
- Unnecessary escape character: \/. (totalt 45 st)
- X is assigned to itself. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- eval can be harmful. (totalt 2 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)