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.53 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 )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 288 ( 1.00 betyg )
- X is defined but never used. (totalt 120 st)
- X is not defined. (totalt 117 st)
- Unexpected console statement. (totalt 40 st)
- X is assigned a value but never used. (totalt 11 st)
- `< script>` in: #39: Enter-20folder-, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #39: Enter-20folder-, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #39: Enter-20folder-, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #39: Enter-20folder-, antal fel: 288 ( 1.00 betyg )
- X is defined but never used. (totalt 120 st)
- X is not defined. (totalt 117 st)
- Unexpected console statement. (totalt 40 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #10: container-may6A, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #10: container-may6A, antal fel: 180 ( 1.00 betyg )
- X is not defined. (totalt 104 st)
- X is defined but never used. (totalt 48 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #11: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #11: gtm.js, antal fel: 721 ( 1.00 betyg )
- X is defined but never used. (totalt 486 st)
- X is not defined. (totalt 125 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #12: main.min.1820e6, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: main.min.1820e6, antal fel: 913 ( 1.00 betyg )
- X is defined but never used. (totalt 635 st)
- X is not defined. (totalt 147 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 37 st)
- `content-type=".*javascript.*"` in: #13: engage.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #13: engage.js, antal fel: 914 ( 1.00 betyg )
- X is defined but never used. (totalt 635 st)
- X is not defined. (totalt 147 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 37 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: m-el-main, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #26: m-el-main, antal fel: 957 ( 1.00 betyg )
- X is defined but never used. (totalt 674 st)
- X is not defined. (totalt 149 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 37 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: analytics.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #29: analytics.js, antal fel: 987 ( 1.00 betyg )
- X is defined but never used. (totalt 701 st)
- X is not defined. (totalt 152 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 37 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: hotjar-1090845., antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #30: hotjar-1090845., antal fel: 1011 ( 1.00 betyg )
- X is defined but never used. (totalt 709 st)
- X is not defined. (totalt 163 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 42 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: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1090 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 475 st)
- Expected an assignment or function call and instead saw an expression. (totalt 474 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `< script>` in: #39: Enter-20folder-, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #39: Enter-20folder-, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #39: Enter-20folder-, antal grupperade fel: 17 ( 1.60 betyg )
- `< script src="...">` in: #39: Enter-20folder-, antal fel: 1090 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 475 st)
- Expected an assignment or function call and instead saw an expression. (totalt 474 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: container-may6A, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #10: container-may6A, antal fel: 28 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #11: gtm.js, antal fel: 1234 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 849 st)
- Expected X and instead saw X. (totalt 253 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: main.min.1820e6, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #12: main.min.1820e6, antal fel: 2387 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1522 st)
- Expected X and instead saw X. (totalt 692 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- X is not modified in this loop. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: engage.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #13: engage.js, antal fel: 2388 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1522 st)
- Expected X and instead saw X. (totalt 692 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- X is not modified in this loop. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (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: #26: m-el-main, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #26: m-el-main, antal fel: 3767 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2294 st)
- Expected X and instead saw X. (totalt 1266 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 29 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- X is not modified in this loop. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary X. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 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)
- `content-type=".*javascript.*"` in: #29: analytics.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #29: analytics.js, antal fel: 4197 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2528 st)
- Expected X and instead saw X. (totalt 1444 st)
- Do not access Object.prototype method X from target object. (totalt 123 st)
- Unnecessary escape character: \/. (totalt 31 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary X. (totalt 8 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 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)
- `content-type=".*javascript.*"` in: #30: hotjar-1090845., antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #30: hotjar-1090845., antal fel: 4240 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2550 st)
- Expected X and instead saw X. (totalt 1465 st)
- Do not access Object.prototype method X from target object. (totalt 123 st)
- Unnecessary escape character: \/. (totalt 31 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary X. (totalt 8 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 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)