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.19 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 412 ( 1.00 betyg )
- X is defined but never used. (totalt 347 st)
- X is assigned a value but never used. (totalt 25 st)
- Unexpected console statement. (totalt 24 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #26: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: gtm.js, antal fel: 527 ( 1.00 betyg )
- X is defined but never used. (totalt 430 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #27: adsm.macro.rmb., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: adsm.macro.rmb., antal fel: 552 ( 1.00 betyg )
- X is defined but never used. (totalt 455 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #28: 9922.d2fb1648ca, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: 9922.d2fb1648ca, antal fel: 553 ( 1.00 betyg )
- X is defined but never used. (totalt 455 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: 8314.426ecce5ed, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: 8314.426ecce5ed, antal fel: 553 ( 1.00 betyg )
- X is defined but never used. (totalt 455 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: 3853.04c06c79ac, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: 3853.04c06c79ac, antal fel: 577 ( 1.00 betyg )
- X is defined but never used. (totalt 479 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: 7108.5d8b7b12bc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: 7108.5d8b7b12bc, antal fel: 604 ( 1.00 betyg )
- X is defined but never used. (totalt 506 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: lw.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #34: lw.js, antal fel: 720 ( 1.00 betyg )
- X is defined but never used. (totalt 561 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 26 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: prebid.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #35: prebid.js, antal fel: 828 ( 1.00 betyg )
- X is defined but never used. (totalt 651 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 61 st)
- Unexpected console statement. (totalt 33 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 6194cadf72aeac5, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #37: 6194cadf72aeac5, antal fel: 828 ( 1.00 betyg )
- X is defined but never used. (totalt 651 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 61 st)
- Unexpected console statement. (totalt 33 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: loader.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #38: loader.js, antal fel: 834 ( 1.00 betyg )
- X is defined but never used. (totalt 655 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 61 st)
- Unexpected console statement. (totalt 35 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: sdk.c8a61c94c9a, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #40: sdk.c8a61c94c9a, antal fel: 943 ( 1.00 betyg )
- X is defined but never used. (totalt 693 st)
- Unexpected console statement. (totalt 103 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 62 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: 6194cadf72aeac5, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #41: 6194cadf72aeac5, antal fel: 1027 ( 1.00 betyg )
- X is defined but never used. (totalt 716 st)
- Unexpected console statement. (totalt 142 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 82 st)
- Parsing error: Unexpected token (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: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 6656 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4120 st)
- Expected X and instead saw X. (totalt 2158 st)
- Unnecessary escape character: \.. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 54 st)
- Do not access Object.prototype method X from target object. (totalt 53 st)
- Comparing to itself is potentially pointless. (totalt 41 st)
- Unsafe usage of ThrowStatement. (totalt 34 st)
- Unsafe usage of ReturnStatement. (totalt 28 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary escape character: \). (totalt 8 st)
- The Function constructor is eval. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \ . (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unexpected string concatenation of literals. (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: #26: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #26: gtm.js, antal fel: 1282 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 813 st)
- Expected X and instead saw X. (totalt 207 st)
- Unnecessary escape character: \/. (totalt 173 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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: #27: adsm.macro.rmb., antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #27: adsm.macro.rmb., antal fel: 1524 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1008 st)
- Expected X and instead saw X. (totalt 248 st)
- Unnecessary escape character: \/. (totalt 173 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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)
- The Function constructor is eval. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: 9922.d2fb1648ca, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #28: 9922.d2fb1648ca, antal fel: 1525 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1008 st)
- Expected X and instead saw X. (totalt 248 st)
- Unnecessary escape character: \/. (totalt 173 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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)
- The Function constructor is eval. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: 8314.426ecce5ed, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #29: 8314.426ecce5ed, antal fel: 1576 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1054 st)
- Expected X and instead saw X. (totalt 253 st)
- Unnecessary escape character: \/. (totalt 173 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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)
- The Function constructor is eval. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: 3853.04c06c79ac, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #30: 3853.04c06c79ac, antal fel: 2289 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1302 st)
- Expected X and instead saw X. (totalt 681 st)
- Unnecessary escape character: \/. (totalt 176 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unsafe usage of ReturnStatement. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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)
- The Function constructor is eval. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: 7108.5d8b7b12bc, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #31: 7108.5d8b7b12bc, antal fel: 3683 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1784 st)
- Expected X and instead saw X. (totalt 1480 st)
- Unnecessary escape character: \/. (totalt 177 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unsafe usage of ReturnStatement. (totalt 73 st)
- Unsafe usage of ThrowStatement. (totalt 73 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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)
- The Function constructor is eval. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: lw.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #34: lw.js, antal fel: 4159 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2192 st)
- Expected X and instead saw X. (totalt 1527 st)
- Unnecessary escape character: \/. (totalt 182 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unsafe usage of ThrowStatement. (totalt 74 st)
- Unsafe usage of ReturnStatement. (totalt 73 st)
- The Function constructor is eval. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: prebid.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #35: prebid.js, antal fel: 5972 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3214 st)
- Expected X and instead saw X. (totalt 2171 st)
- Do not access Object.prototype method X from target object. (totalt 214 st)
- Unnecessary escape character: \/. (totalt 189 st)
- Unsafe usage of ThrowStatement. (totalt 85 st)
- Unsafe usage of ReturnStatement. (totalt 73 st)
- X is not modified in this loop. (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (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: #37: 6194cadf72aeac5, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #37: 6194cadf72aeac5, antal fel: 5972 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3214 st)
- Expected X and instead saw X. (totalt 2171 st)
- Do not access Object.prototype method X from target object. (totalt 214 st)
- Unnecessary escape character: \/. (totalt 189 st)
- Unsafe usage of ThrowStatement. (totalt 85 st)
- Unsafe usage of ReturnStatement. (totalt 73 st)
- X is not modified in this loop. (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (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: #38: loader.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #38: loader.js, antal fel: 5996 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3221 st)
- Expected X and instead saw X. (totalt 2188 st)
- Do not access Object.prototype method X from target object. (totalt 214 st)
- Unnecessary escape character: \/. (totalt 189 st)
- Unsafe usage of ThrowStatement. (totalt 85 st)
- Unsafe usage of ReturnStatement. (totalt 73 st)
- X is not modified in this loop. (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (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: #40: sdk.c8a61c94c9a, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #40: sdk.c8a61c94c9a, antal fel: 7503 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3809 st)
- Expected X and instead saw X. (totalt 3079 st)
- Do not access Object.prototype method X from target object. (totalt 231 st)
- Unnecessary escape character: \/. (totalt 194 st)
- Unsafe usage of ThrowStatement. (totalt 85 st)
- Unsafe usage of ReturnStatement. (totalt 73 st)
- The Function constructor is eval. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (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: 6194cadf72aeac5, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #41: 6194cadf72aeac5, antal fel: 7967 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4018 st)
- Expected X and instead saw X. (totalt 3319 st)
- Do not access Object.prototype method X from target object. (totalt 232 st)
- Unnecessary escape character: \/. (totalt 194 st)
- Unsafe usage of ThrowStatement. (totalt 85 st)
- Unsafe usage of ReturnStatement. (totalt 73 st)
- The Function constructor is eval. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \:. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \_. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Parsing error: Unexpected token (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)