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.62 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 6 ( 3.80 betyg )
- X is assigned a value but never used. (totalt 4 st)
- X is defined but never used. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 876 ( 1.00 betyg )
- X is not defined. (totalt 823 st)
- X is defined but never used. (totalt 31 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #11: siteanalyze-753, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #11: siteanalyze-753, antal fel: 32 ( 1.00 betyg )
- X is not defined. (totalt 25 st)
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: engage.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #12: engage.js, antal fel: 33 ( 1.00 betyg )
- X is not defined. (totalt 25 st)
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: focus-trap.esm., antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #19: focus-trap.esm., antal fel: 34 ( 1.00 betyg )
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 4 st)
- X is defined but never used. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: -commonjsHelper, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #20: -commonjsHelper, antal fel: 34 ( 1.00 betyg )
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 4 st)
- X is defined but never used. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: Checkbox.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #21: Checkbox.js, antal fel: 103 ( 1.00 betyg )
- X is defined but never used. (totalt 58 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: puzzelbot.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #24: puzzelbot.js, antal fel: 204 ( 1.00 betyg )
- X is not defined. (totalt 112 st)
- X is defined but never used. (totalt 66 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 9 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 9 ( 3.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1362 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1050 st)
- Expected X and instead saw X. (totalt 278 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: siteanalyze-753, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #11: siteanalyze-753, antal fel: 153 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 78 st)
- Expected an assignment or function call and instead saw an expression. (totalt 60 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: engage.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #12: engage.js, antal fel: 154 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 78 st)
- Expected an assignment or function call and instead saw an expression. (totalt 60 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: focus-trap.esm., antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #19: focus-trap.esm., antal fel: 230 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 119 st)
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: -commonjsHelper, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #20: -commonjsHelper, antal fel: 230 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 119 st)
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: Checkbox.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #21: Checkbox.js, antal fel: 1639 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 915 st)
- Expected X and instead saw X. (totalt 661 st)
- Do not access Object.prototype method X from target object. (totalt 37 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: puzzelbot.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #24: puzzelbot.js, antal fel: 1642 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 915 st)
- Expected X and instead saw X. (totalt 664 st)
- Do not access Object.prototype method X from target object. (totalt 37 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)