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: 3.09 av 5
- JS är ok.
Webbstandard
- `< script>` in: #24: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #24: , antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #24: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #24: , antal fel: 559 ( 1.00 betyg )
- X is defined but never used. (totalt 452 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: main.1086fb2d9c, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #27: main.1086fb2d9c, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: loader.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: loader.js, 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: #36: 812.8e37984daff, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: 812.8e37984daff, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 146.330cc9d47b1, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #37: 146.330cc9d47b1, antal fel: 9 ( 3.20 betyg )
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #38: bad.js, antal fel: 90 ( 1.00 betyg )
- X is not defined. (totalt 50 st)
- X is defined but never used. (totalt 17 st)
- Unexpected console statement. (totalt 14 st)
- X is assigned a value but never used. (totalt 8 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #39: bad.js, antal fel: 171 ( 1.00 betyg )
- X is not defined. (totalt 100 st)
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: 403.3e1d3923524, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #40: 403.3e1d3923524, antal fel: 172 ( 1.00 betyg )
- X is not defined. (totalt 100 st)
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: sdk.60508b89a5c, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #44: sdk.60508b89a5c, antal fel: 281 ( 1.00 betyg )
- X is not defined. (totalt 101 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: #46: ui-web-sv-web.6, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #46: ui-web-sv-web.6, antal fel: 297 ( 1.00 betyg )
- X is not defined. (totalt 101 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 19 st)
- Parsing error: Unexpected token (totalt 1 st)
Integritet & säkerhet
- `< script src="...">` in: #24: , antal grupperade fel: 9 ( 3.20 betyg )
- `< script src="...">` in: #24: , antal fel: 1610 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 815 st)
- Unnecessary escape character: \/. (totalt 489 st)
- Expected X and instead saw X. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 77 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: main.1086fb2d9c, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #27: main.1086fb2d9c, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: loader.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: loader.js, 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: #36: 812.8e37984daff, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: 812.8e37984daff, antal fel: 42 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 25 st)
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 146.330cc9d47b1, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #37: 146.330cc9d47b1, antal fel: 62 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 33 st)
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #38: bad.js, antal fel: 340 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 197 st)
- Expected X and instead saw X. (totalt 133 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #39: bad.js, antal fel: 618 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 366 st)
- Expected X and instead saw X. (totalt 233 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: 403.3e1d3923524, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #40: 403.3e1d3923524, antal fel: 651 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 391 st)
- Expected X and instead saw X. (totalt 241 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: sdk.60508b89a5c, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #44: sdk.60508b89a5c, antal fel: 2173 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1147 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: #46: ui-web-sv-web.6, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #46: ui-web-sv-web.6, antal fel: 2811 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1532 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1227 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)