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.74 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: 611 ( 1.00 betyg )
- X is defined but never used. (totalt 483 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: embed.js, antal fel: 220 ( 1.00 betyg )
- X is not defined. (totalt 113 st)
- X is defined but never used. (totalt 102 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: js, antal fel: 720 ( 1.00 betyg )
- X is defined but never used. (totalt 496 st)
- X is not defined. (totalt 129 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #26: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: analytics.js, antal fel: 750 ( 1.00 betyg )
- X is defined but never used. (totalt 523 st)
- X is not defined. (totalt 132 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #30: popup.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: popup.js, antal fel: 800 ( 1.00 betyg )
- X is defined but never used. (totalt 539 st)
- X is not defined. (totalt 166 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 4 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: 12 ( 2.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2156 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1468 st)
- Expected X and instead saw X. (totalt 547 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- `content-type=".*javascript.*"` in: #24: embed.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #24: embed.js, antal fel: 1271 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 678 st)
- Expected X and instead saw X. (totalt 480 st)
- Do not access Object.prototype method X from target object. (totalt 21 st)
- Unnecessary escape character: \:. (totalt 9 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \(. (totalt 6 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \}. (totalt 5 st)
- eval can be harmful. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \!. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \'. (totalt 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #25: js, antal fel: 2635 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1729 st)
- Expected X and instead saw X. (totalt 698 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \:. (totalt 9 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \(. (totalt 6 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unnecessary escape character: \}. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- eval can be harmful. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \!. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \'. (totalt 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: analytics.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #26: analytics.js, antal fel: 3065 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1963 st)
- Expected X and instead saw X. (totalt 876 st)
- Do not access Object.prototype method X from target object. (totalt 115 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary escape character: \:. (totalt 9 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \(. (totalt 6 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unnecessary escape character: \}. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- eval can be harmful. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \!. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \'. (totalt 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: popup.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: popup.js, antal fel: 3529 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2234 st)
- Expected X and instead saw X. (totalt 1013 st)
- Do not access Object.prototype method X from target object. (totalt 123 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary escape character: \:. (totalt 12 st)
- The Function constructor is eval. (totalt 12 st)
- Unnecessary escape character: \). (totalt 12 st)
- Unnecessary escape character: \(. (totalt 11 st)
- Unnecessary escape character: \+. (totalt 11 st)
- Unnecessary escape character: \$. (totalt 10 st)
- Unnecessary escape character: \*. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- eval can be harmful. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \'. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \!. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)