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.72 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: se, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: se, antal fel: 69 ( 1.00 betyg )
- X is not defined. (totalt 53 st)
- X is defined but never used. (totalt 16 st)
- `< script src="...">` in: #1: se, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: se, antal fel: 648 ( 1.00 betyg )
- X is defined but never used. (totalt 541 st)
- Unexpected console statement. (totalt 50 st)
- X is not defined. (totalt 42 st)
- X is assigned a value but never used. (totalt 15 st)
- `< script>` in: #30: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: crossdomain.htm, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #11: C6XT5-C8QK8-S8S, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #11: C6XT5-C8QK8-S8S, antal fel: 1 ( 4.80 betyg )
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: common.js, antal fel: 67 ( 1.00 betyg )
- X is defined but never used. (totalt 61 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: 7357.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: 7357.js, antal fel: 67 ( 1.00 betyg )
- X is defined but never used. (totalt 61 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: 490.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: 490.js, antal fel: 81 ( 1.00 betyg )
- X is defined but never used. (totalt 75 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: cmp.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: cmp.php, antal fel: 84 ( 1.00 betyg )
- X is defined but never used. (totalt 75 st)
- X is not defined. (totalt 4 st)
- Unexpected console statement. (totalt 4 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: cmp-final.min.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #28: cmp-final.min.j, antal fel: 743 ( 1.00 betyg )
- X is not defined. (totalt 561 st)
- X is defined but never used. (totalt 164 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: bV8xLndfNDYwNDg, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #29: bV8xLndfNDYwNDg, antal fel: 751 ( 1.00 betyg )
- X is not defined. (totalt 569 st)
- X is defined but never used. (totalt 164 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: 1240.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #35: 1240.js, antal fel: 751 ( 1.00 betyg )
- X is not defined. (totalt 569 st)
- X is defined but never used. (totalt 164 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: 4212.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: 4212.js, antal fel: 751 ( 1.00 betyg )
- X is not defined. (totalt 569 st)
- X is defined but never used. (totalt 164 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 3084.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #37: 3084.js, antal fel: 751 ( 1.00 betyg )
- X is not defined. (totalt 569 st)
- X is defined but never used. (totalt 164 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: 4076.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #39: 4076.js, antal fel: 753 ( 1.00 betyg )
- X is not defined. (totalt 569 st)
- X is defined but never used. (totalt 166 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: 953.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #40: 953.js, antal fel: 766 ( 1.00 betyg )
- X is not defined. (totalt 569 st)
- X is defined but never used. (totalt 179 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: se, antal grupperade fel: 5 ( 4.00 betyg )
- `< script>` in: #1: se, antal fel: 135 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 71 st)
- Expected an assignment or function call and instead saw an expression. (totalt 61 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `< script src="...">` in: #1: se, antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: se, antal fel: 5367 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4268 st)
- Expected X and instead saw X. (totalt 892 st)
- Do not access Object.prototype method X from target object. (totalt 119 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary escape character: \.. (totalt 13 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Script URL is a form of eval. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary X. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \|. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \@. (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)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `< script>` in: #30: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: crossdomain.htm, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #11: C6XT5-C8QK8-S8S, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #11: C6XT5-C8QK8-S8S, antal fel: 1 ( 4.80 betyg )
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: common.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #21: common.js, antal fel: 202 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 169 st)
- Expected X and instead saw X. (totalt 28 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: 7357.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #22: 7357.js, antal fel: 203 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 170 st)
- Expected X and instead saw X. (totalt 28 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: 490.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #23: 490.js, antal fel: 229 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 194 st)
- Expected X and instead saw X. (totalt 30 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: cmp.php, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #27: cmp.php, antal fel: 384 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 154 st)
- Expected X and instead saw X. (totalt 31 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: cmp-final.min.j, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #28: cmp-final.min.j, antal fel: 2440 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2083 st)
- Expected an assignment or function call and instead saw an expression. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 157 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: bV8xLndfNDYwNDg, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #29: bV8xLndfNDYwNDg, antal fel: 2748 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2085 st)
- Unnecessary escape character: \/. (totalt 463 st)
- Expected an assignment or function call and instead saw an expression. (totalt 194 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: 1240.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #35: 1240.js, antal fel: 2749 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2085 st)
- Unnecessary escape character: \/. (totalt 463 st)
- Expected an assignment or function call and instead saw an expression. (totalt 195 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: 4212.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #36: 4212.js, antal fel: 2750 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2085 st)
- Unnecessary escape character: \/. (totalt 463 st)
- Expected an assignment or function call and instead saw an expression. (totalt 196 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 3084.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #37: 3084.js, antal fel: 2751 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2085 st)
- Unnecessary escape character: \/. (totalt 463 st)
- Expected an assignment or function call and instead saw an expression. (totalt 197 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: 4076.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #39: 4076.js, antal fel: 2758 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2085 st)
- Unnecessary escape character: \/. (totalt 463 st)
- Expected an assignment or function call and instead saw an expression. (totalt 204 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: 953.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #40: 953.js, antal fel: 2785 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2086 st)
- Unnecessary escape character: \/. (totalt 463 st)
- Expected an assignment or function call and instead saw an expression. (totalt 230 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)