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.66 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 25 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #54: ppms.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #54: ppms.js, antal fel: 20 ( 1.00 betyg )
- X is defined but never used. (totalt 13 st)
- X is not defined. (totalt 4 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #59: browsealoud.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #59: browsealoud.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 21 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #60: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: 155.4755a93fc50, antal fel: 46 ( 1.00 betyg )
- X is defined but never used. (totalt 36 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: 143.4755a93fc50, antal fel: 71 ( 1.00 betyg )
- X is defined but never used. (totalt 46 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: 115.4755a93fc50, antal fel: 71 ( 1.00 betyg )
- X is defined but never used. (totalt 46 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: 135.4755a93fc50, antal fel: 126 ( 1.00 betyg )
- X is defined but never used. (totalt 91 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: 144.4755a93fc50, antal fel: 146 ( 1.00 betyg )
- X is defined but never used. (totalt 102 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: 3.4755a93fc5065, antal fel: 405 ( 1.00 betyg )
- X is defined but never used. (totalt 230 st)
- X is not defined. (totalt 126 st)
- Unexpected console statement. (totalt 44 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #66: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: 2.4755a93fc5065, antal fel: 445 ( 1.00 betyg )
- X is defined but never used. (totalt 252 st)
- X is not defined. (totalt 140 st)
- Unexpected console statement. (totalt 48 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #67: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: 157.4755a93fc50, antal fel: 453 ( 1.00 betyg )
- X is defined but never used. (totalt 260 st)
- X is not defined. (totalt 140 st)
- Unexpected console statement. (totalt 48 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #68: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: 139.4755a93fc50, antal fel: 460 ( 1.00 betyg )
- X is defined but never used. (totalt 267 st)
- X is not defined. (totalt 140 st)
- Unexpected console statement. (totalt 48 st)
- X is assigned a value but never used. (totalt 5 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 401 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 253 st)
- Expected X and instead saw X. (totalt 135 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: ppms.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #54: ppms.js, antal fel: 266 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 262 st)
- Expected X and instead saw X. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: browsealoud.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #59: browsealoud.js, antal fel: 342 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 292 st)
- Expected X and instead saw X. (totalt 49 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: 155.4755a93fc50, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #60: 155.4755a93fc50, antal fel: 364 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 305 st)
- Expected X and instead saw X. (totalt 55 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: 143.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #61: 143.4755a93fc50, antal fel: 428 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 330 st)
- Expected X and instead saw X. (totalt 81 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: 115.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #62: 115.4755a93fc50, antal fel: 429 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 331 st)
- Expected X and instead saw X. (totalt 81 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: 135.4755a93fc50, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #63: 135.4755a93fc50, antal fel: 1249 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 787 st)
- Expected X and instead saw X. (totalt 400 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: 144.4755a93fc50, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #64: 144.4755a93fc50, antal fel: 1299 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 818 st)
- Expected X and instead saw X. (totalt 419 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: 3.4755a93fc5065, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #65: 3.4755a93fc5065, antal fel: 4200 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2580 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1540 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: 2.4755a93fc5065, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #66: 2.4755a93fc5065, antal fel: 4591 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2767 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1729 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: 157.4755a93fc50, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #67: 157.4755a93fc50, antal fel: 4671 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2827 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1749 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: 139.4755a93fc50, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: 139.4755a93fc50, antal fel: 4692 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2835 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1762 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)