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.58 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #34: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #34: , antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #34: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #34: , antal fel: 691 ( 1.00 betyg )
- X is defined but never used. (totalt 561 st)
- X is assigned a value but never used. (totalt 83 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #37: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #37: loader.js, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #39: main.e7c5fec477, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #39: main.e7c5fec477, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: sdk.6728622f873, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #47: sdk.6728622f873, antal fel: 116 ( 1.00 betyg )
- Unexpected console statement. (totalt 70 st)
- X is defined but never used. (totalt 42 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: 812.8e37984daff, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #48: 812.8e37984daff, antal fel: 117 ( 1.00 betyg )
- Unexpected console statement. (totalt 70 st)
- X is defined but never used. (totalt 43 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: 146.038a584017c, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #49: 146.038a584017c, antal fel: 118 ( 1.00 betyg )
- Unexpected console statement. (totalt 70 st)
- X is defined but never used. (totalt 44 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #50: bad.js, antal fel: 201 ( 1.00 betyg )
- Unexpected console statement. (totalt 82 st)
- X is defined but never used. (totalt 55 st)
- X is not defined. (totalt 53 st)
- X is assigned a value but never used. (totalt 10 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #51: bad.js, antal fel: 284 ( 1.00 betyg )
- X is not defined. (totalt 105 st)
- Unexpected console statement. (totalt 94 st)
- X is defined but never used. (totalt 66 st)
- X is assigned a value but never used. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: 403.3e1d3923524, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #52: 403.3e1d3923524, antal fel: 285 ( 1.00 betyg )
- X is not defined. (totalt 105 st)
- Unexpected console statement. (totalt 94 st)
- X is defined but never used. (totalt 67 st)
- X is assigned a value but never used. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: 6e02064da508447, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #55: 6e02064da508447, antal fel: 300 ( 1.00 betyg )
- X is not defined. (totalt 105 st)
- Unexpected console statement. (totalt 100 st)
- X is defined but never used. (totalt 76 st)
- X is assigned a value but never used. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: OiPnl, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #59: OiPnl, antal fel: 301 ( 1.00 betyg )
- X is not defined. (totalt 106 st)
- Unexpected console statement. (totalt 100 st)
- X is defined but never used. (totalt 76 st)
- X is assigned a value but never used. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: pubads-impl.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #61: pubads-impl.js, antal fel: 419 ( 1.00 betyg )
- X is defined but never used. (totalt 187 st)
- X is not defined. (totalt 106 st)
- Unexpected console statement. (totalt 102 st)
- X is assigned a value but never used. (totalt 23 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: bn-tracking-uti, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #64: bn-tracking-uti, antal fel: 420 ( 1.00 betyg )
- X is defined but never used. (totalt 188 st)
- X is not defined. (totalt 106 st)
- Unexpected console statement. (totalt 102 st)
- X is assigned a value but never used. (totalt 23 st)
- Parsing error: Unexpected token (totalt 1 st)
Integritet & säkerhet
- `< script src="...">` in: #34: , antal grupperade fel: 14 ( 2.20 betyg )
- `< script src="...">` in: #34: , antal fel: 3783 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1941 st)
- Expected X and instead saw X. (totalt 1089 st)
- Unnecessary escape character: \/. (totalt 543 st)
- Do not access Object.prototype method X from target object. (totalt 178 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #37: loader.js, antal fel: 24 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 17 st)
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- `content-type=".*javascript.*"` in: #39: main.e7c5fec477, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #39: main.e7c5fec477, antal fel: 25 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 17 st)
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: sdk.6728622f873, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #47: sdk.6728622f873, antal fel: 1530 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 906 st)
- Expected an assignment or function call and instead saw an expression. (totalt 595 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: 812.8e37984daff, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #48: 812.8e37984daff, antal fel: 1547 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 914 st)
- Expected an assignment or function call and instead saw an expression. (totalt 604 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: 146.038a584017c, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #49: 146.038a584017c, antal fel: 1567 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 922 st)
- Expected an assignment or function call and instead saw an expression. (totalt 616 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: bad.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #50: bad.js, antal fel: 1844 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1021 st)
- Expected an assignment or function call and instead saw an expression. (totalt 785 st)
- Do not access Object.prototype method X from target object. (totalt 22 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: bad.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #51: bad.js, antal fel: 2121 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1120 st)
- Expected an assignment or function call and instead saw an expression. (totalt 954 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: 403.3e1d3923524, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #52: 403.3e1d3923524, antal fel: 2154 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1128 st)
- Expected an assignment or function call and instead saw an expression. (totalt 979 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: 6e02064da508447, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #55: 6e02064da508447, antal fel: 2207 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1153 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1007 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: OiPnl, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #59: OiPnl, antal fel: 2207 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1153 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1007 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: pubads-impl.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #61: pubads-impl.js, antal fel: 4756 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2457 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2216 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- Async function X has no X expression. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: bn-tracking-uti, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #64: bn-tracking-uti, antal fel: 4756 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2457 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2216 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- Async function X has no X expression. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)