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.94 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 )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1080 ( 1.00 betyg )
- X is defined but never used. (totalt 515 st)
- X is not defined. (totalt 441 st)
- X is assigned a value but never used. (totalt 119 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #29: choice.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #29: choice.js, antal fel: 3 ( 4.40 betyg )
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #151: gpt.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #151: gpt.js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #167: adsm.macro.rmb., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #167: adsm.macro.rmb., antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #168: lw.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #168: lw.js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #169: prebid.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #169: prebid.js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #170: cmp2.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #170: cmp2.js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #173: cmp2ui-sv.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #173: cmp2ui-sv.js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #178: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #178: js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #179: pubads-impl.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #179: pubads-impl.js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #184: gpt.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #184: gpt.js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #186: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #186: js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #187: analytics.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #187: analytics.js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 3 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 )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3431 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2293 st)
- Expected X and instead saw X. (totalt 942 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary X. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- The Function constructor is eval. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: choice.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #29: choice.js, antal fel: 6 ( 3.80 betyg )
- Unnecessary escape character: \/. (totalt 6 st)
- `content-type=".*javascript.*"` in: #151: gpt.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #151: gpt.js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #167: adsm.macro.rmb., antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #167: adsm.macro.rmb., antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #168: lw.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #168: lw.js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #169: prebid.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #169: prebid.js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #170: cmp2.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #170: cmp2.js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #173: cmp2ui-sv.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #173: cmp2ui-sv.js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #178: js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #178: js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #179: pubads-impl.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #179: pubads-impl.js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #184: gpt.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #184: gpt.js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #186: js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #186: js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #187: analytics.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #187: analytics.js, antal fel: 526 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 255 st)
- Expected an assignment or function call and instead saw an expression. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 1 st)