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.82 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- X is not defined. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1514 ( 1.00 betyg )
- X is not defined. (totalt 1287 st)
- X is defined but never used. (totalt 151 st)
- Unexpected console statement. (totalt 72 st)
- X is assigned a value but never used. (totalt 4 st)
- `< script>` in: #34: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #34: crossdomain.htm, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #20: cmp.php, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #20: cmp.php, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #21: cmp-final.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: cmp-final.min.j, antal fel: 661 ( 1.00 betyg )
- X is not defined. (totalt 557 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #22: container-eEbvn, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: container-eEbvn, antal fel: 875 ( 1.00 betyg )
- X is not defined. (totalt 684 st)
- X is defined but never used. (totalt 143 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #23: index.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: index.js, antal fel: 875 ( 1.00 betyg )
- X is not defined. (totalt 684 st)
- X is defined but never used. (totalt 143 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #31: cmp.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: cmp.php, antal fel: 878 ( 1.00 betyg )
- X is not defined. (totalt 686 st)
- X is defined but never used. (totalt 143 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #32: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: configs.php, antal fel: 879 ( 1.00 betyg )
- X is not defined. (totalt 687 st)
- X is defined but never used. (totalt 143 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #33: bV8xLndfNjcwNDE, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: bV8xLndfNjcwNDE, antal fel: 894 ( 1.00 betyg )
- X is not defined. (totalt 702 st)
- X is defined but never used. (totalt 143 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #35: lit-element.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: lit-element.js, antal fel: 894 ( 1.00 betyg )
- X is not defined. (totalt 702 st)
- X is defined but never used. (totalt 143 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #36: reactive-elemen, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: reactive-elemen, antal fel: 901 ( 1.00 betyg )
- X is not defined. (totalt 702 st)
- X is defined but never used. (totalt 150 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #39: ps.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #39: ps.js, antal fel: 902 ( 1.00 betyg )
- X is not defined. (totalt 702 st)
- X is defined but never used. (totalt 150 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 23 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: css-tag.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #40: css-tag.js, antal fel: 902 ( 1.00 betyg )
- X is not defined. (totalt 702 st)
- X is defined but never used. (totalt 150 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 23 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: reactive-elemen, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #41: reactive-elemen, antal fel: 909 ( 1.00 betyg )
- X is not defined. (totalt 702 st)
- X is defined but never used. (totalt 157 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 23 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: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2847 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1582 st)
- Expected X and instead saw X. (totalt 963 st)
- Unnecessary escape character: \/. (totalt 192 st)
- Unnecessary escape character: \-. (totalt 34 st)
- Unnecessary escape character: \". (totalt 13 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 10 st)
- Unnecessary X. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \%. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `< script>` in: #34: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #34: crossdomain.htm, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #20: cmp.php, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #20: cmp.php, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #21: cmp-final.min.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #21: cmp-final.min.j, antal fel: 2058 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2054 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: container-eEbvn, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #22: container-eEbvn, antal fel: 2134 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2107 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: index.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #23: index.js, antal fel: 2134 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2107 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: cmp.php, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #31: cmp.php, antal fel: 2150 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2108 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: configs.php, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #32: configs.php, antal fel: 2150 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2108 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: bV8xLndfNjcwNDE, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #33: bV8xLndfNjcwNDE, antal fel: 2424 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2110 st)
- Unnecessary escape character: \/. (totalt 298 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: lit-element.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #35: lit-element.js, antal fel: 2431 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2111 st)
- Unnecessary escape character: \/. (totalt 298 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Expected an assignment or function call and instead saw an expression. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: reactive-elemen, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #36: reactive-elemen, antal fel: 2469 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2121 st)
- Unnecessary escape character: \/. (totalt 298 st)
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: ps.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #39: ps.js, antal fel: 2470 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2121 st)
- Unnecessary escape character: \/. (totalt 298 st)
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (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: #40: css-tag.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #40: css-tag.js, antal fel: 2476 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2123 st)
- Unnecessary escape character: \/. (totalt 298 st)
- Expected an assignment or function call and instead saw an expression. (totalt 32 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (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: #41: reactive-elemen, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #41: reactive-elemen, antal fel: 2514 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2133 st)
- Unnecessary escape character: \/. (totalt 298 st)
- Expected an assignment or function call and instead saw an expression. (totalt 54 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)