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.69 av 5
- JS är ok.
Webbstandard
- `< script src="...">` in: #26: hub.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #26: hub.html, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #24: widget.a101de8f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: widget.a101de8f, antal fel: 364 ( 1.00 betyg )
- X is defined but never used. (totalt 162 st)
- X is not defined. (totalt 159 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #34: display-rules, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: display-rules, antal fel: 364 ( 1.00 betyg )
- X is defined but never used. (totalt 162 st)
- X is not defined. (totalt 159 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #38: status, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: status, antal fel: 364 ( 1.00 betyg )
- X is defined but never used. (totalt 162 st)
- X is not defined. (totalt 159 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 2 st)
Integritet & säkerhet
- `< script src="...">` in: #26: hub.html, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #26: hub.html, antal fel: 131 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 79 st)
- Expected X and instead saw X. (totalt 47 st)
- The Function constructor is eval. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: widget.a101de8f, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #24: widget.a101de8f, antal fel: 2193 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1309 st)
- Expected X and instead saw X. (totalt 815 st)
- Do not access Object.prototype method X from target object. (totalt 45 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: display-rules, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #34: display-rules, antal fel: 2193 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1309 st)
- Expected X and instead saw X. (totalt 815 st)
- Do not access Object.prototype method X from target object. (totalt 45 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: status, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #38: status, antal fel: 2193 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1309 st)
- Expected X and instead saw X. (totalt 815 st)
- Do not access Object.prototype method X from target object. (totalt 45 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)