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: 3.05 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 64 ( 1.00 betyg )
- X is not defined. (totalt 33 st)
- X is defined but never used. (totalt 23 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #30: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: engage.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #19: engage.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: container-vl0wP, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #20: container-vl0wP, antal fel: 185 ( 1.00 betyg )
- X is not defined. (totalt 105 st)
- X is defined but never used. (totalt 51 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 12 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: ai.2.min.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #27: ai.2.min.js, antal fel: 276 ( 1.00 betyg )
- X is defined but never used. (totalt 137 st)
- X is not defined. (totalt 110 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 12 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: uc.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #28: uc.js, antal fel: 323 ( 1.00 betyg )
- X is defined but never used. (totalt 157 st)
- X is not defined. (totalt 111 st)
- Unexpected console statement. (totalt 27 st)
- X is assigned a value but never used. (totalt 27 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: cc.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #31: cc.js, antal fel: 351 ( 1.00 betyg )
- X is defined but never used. (totalt 169 st)
- X is not defined. (totalt 120 st)
- X is assigned a value but never used. (totalt 33 st)
- Unexpected console statement. (totalt 28 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 18 ( 1.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 533 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 369 st)
- Expected X and instead saw X. (totalt 159 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `< script>` in: #30: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #30: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: engage.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #19: engage.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: container-vl0wP, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #20: container-vl0wP, antal fel: 46 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 24 st)
- Expected X and instead saw X. (totalt 14 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: ai.2.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #27: ai.2.min.js, antal fel: 519 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 413 st)
- Expected X and instead saw X. (totalt 54 st)
- Unnecessary escape character: \/. (totalt 28 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: uc.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #28: uc.js, antal fel: 871 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 654 st)
- Expected X and instead saw X. (totalt 156 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 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)
- `content-type=".*javascript.*"` in: #31: cc.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #31: cc.js, antal fel: 1218 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 960 st)
- Expected X and instead saw X. (totalt 192 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 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)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)