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.35 av 5
- JS är ok.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: places.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: places.js, antal fel: 19 ( 1.20 betyg )
- Unexpected console statement. (totalt 11 st)
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: main.js, antal fel: 87 ( 1.00 betyg )
- X is defined but never used. (totalt 46 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #31: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: common.js, antal fel: 96 ( 1.00 betyg )
- X is defined but never used. (totalt 54 st)
- Unexpected console statement. (totalt 34 st)
- X is not defined. (totalt 4 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #32: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: util.js, antal fel: 115 ( 1.00 betyg )
- X is defined but never used. (totalt 69 st)
- Unexpected console statement. (totalt 35 st)
- X is assigned a value but never used. (totalt 6 st)
- X is not defined. (totalt 5 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 28 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 12 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: places.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #28: places.js, antal fel: 319 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 162 st)
- Expected X and instead saw X. (totalt 86 st)
- X is assigned to itself. (totalt 59 st)
- Async function has no X expression. (totalt 5 st)
- Async method X has no X expression. (totalt 5 st)
- Async arrow function has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: main.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #29: main.js, antal fel: 1472 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 823 st)
- Expected X and instead saw X. (totalt 320 st)
- X is assigned to itself. (totalt 278 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Async function has no X expression. (totalt 6 st)
- Async method X has no X expression. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: common.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #31: common.js, antal fel: 1879 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1115 st)
- Expected X and instead saw X. (totalt 424 st)
- X is assigned to itself. (totalt 278 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Async function has no X expression. (totalt 6 st)
- Async method X has no X expression. (totalt 6 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: util.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #32: util.js, antal fel: 3164 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1681 st)
- Expected X and instead saw X. (totalt 1118 st)
- X is assigned to itself. (totalt 284 st)
- Do not access Object.prototype method X from target object. (totalt 29 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary X. (totalt 8 st)
- Async function has no X expression. (totalt 6 st)
- Async method X has no X expression. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)