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.50 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #16: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #16: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #16: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #16: , antal fel: 412 ( 1.00 betyg )
- X is defined but never used. (totalt 379 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 6 st)
- `< script>` in: #34: 911144975, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #34: 911144975, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token const (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: gtm.js, antal fel: 568 ( 1.00 betyg )
- X is defined but never used. (totalt 460 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: d4d7309ea937480, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: d4d7309ea937480, antal fel: 636 ( 1.00 betyg )
- X is defined but never used. (totalt 489 st)
- X is assigned a value but never used. (totalt 109 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #40: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: js, antal fel: 1053 ( 1.00 betyg )
- X is defined but never used. (totalt 828 st)
- X is assigned a value but never used. (totalt 175 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #41: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: analytics.js, antal fel: 1083 ( 1.00 betyg )
- X is defined but never used. (totalt 855 st)
- X is assigned a value but never used. (totalt 175 st)
- X is not defined. (totalt 48 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #42: player.module.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: player.module.j, antal fel: 1171 ( 1.00 betyg )
- X is defined but never used. (totalt 937 st)
- X is assigned a value but never used. (totalt 178 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #43: vendor.module.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: vendor.module.j, antal fel: 1354 ( 1.00 betyg )
- X is defined but never used. (totalt 1036 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 122 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #46: vuid.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: vuid.min.js, antal fel: 1356 ( 1.00 betyg )
- X is defined but never used. (totalt 1038 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 122 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #48: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: cast-sender.js, antal fel: 1360 ( 1.00 betyg )
- X is defined but never used. (totalt 1042 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 122 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #53: cast-framework., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: cast-framework., antal fel: 1392 ( 1.00 betyg )
- X is defined but never used. (totalt 1054 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 142 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #54: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: cast-sender.js, antal fel: 1401 ( 1.00 betyg )
- X is defined but never used. (totalt 1062 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 142 st)
- Unexpected console statement. (totalt 17 st)
Integritet & säkerhet
- `< script>` in: #16: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #16: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #16: , antal grupperade fel: 17 ( 1.60 betyg )
- `< script src="...">` in: #16: , antal fel: 1824 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1163 st)
- Expected X and instead saw X. (totalt 610 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary X. (totalt 9 st)
- The Function constructor is eval. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `< script>` in: #34: 911144975, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #34: 911144975, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token const (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #33: gtm.js, antal fel: 1248 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 879 st)
- Expected X and instead saw X. (totalt 251 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: d4d7309ea937480, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #39: d4d7309ea937480, antal fel: 1645 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 889 st)
- Unnecessary escape character: \/. (totalt 394 st)
- Expected X and instead saw X. (totalt 253 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #40: js, antal fel: 3328 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2199 st)
- Expected X and instead saw X. (totalt 512 st)
- Unnecessary escape character: \/. (totalt 400 st)
- Do not access Object.prototype method X from target object. (totalt 189 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: analytics.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #41: analytics.js, antal fel: 3758 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2433 st)
- Expected X and instead saw X. (totalt 690 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: player.module.j, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #42: player.module.j, antal fel: 5564 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3421 st)
- Expected X and instead saw X. (totalt 1504 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 204 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: vendor.module.j, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #43: vendor.module.j, antal fel: 7332 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4469 st)
- Expected X and instead saw X. (totalt 2194 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- X is not modified in this loop. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: vuid.min.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #46: vuid.min.js, antal fel: 7332 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4469 st)
- Expected X and instead saw X. (totalt 2194 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- X is not modified in this loop. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: cast-sender.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #48: cast-sender.js, antal fel: 7354 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4480 st)
- Expected X and instead saw X. (totalt 2205 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- X is not modified in this loop. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: cast-framework., antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #53: cast-framework., antal fel: 7555 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4590 st)
- Expected X and instead saw X. (totalt 2276 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- X is assigned to itself. (totalt 23 st)
- X is not modified in this loop. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary X. (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: cast-sender.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #54: cast-sender.js, antal fel: 7735 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4673 st)
- Expected X and instead saw X. (totalt 2357 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 213 st)
- X is assigned to itself. (totalt 30 st)
- X is not modified in this loop. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary X. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)