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.10 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 10 ( 3.00 betyg )
- X is assigned a value but never used. (totalt 6 st)
- X is not defined. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 612 ( 1.00 betyg )
- X is defined but never used. (totalt 404 st)
- X is not defined. (totalt 122 st)
- X is assigned a value but never used. (totalt 84 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #37: m-el-main, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #37: m-el-main, antal fel: 43 ( 1.00 betyg )
- X is defined but never used. (totalt 39 st)
- X is not defined. (totalt 2 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #39: mellerud.se.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #39: mellerud.se.js, antal fel: 44 ( 1.00 betyg )
- X is defined but never used. (totalt 39 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #41: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: browsealoud.js, antal fel: 54 ( 1.00 betyg )
- X is defined but never used. (totalt 47 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: 155.4755a93fc50, antal fel: 70 ( 1.00 betyg )
- X is defined but never used. (totalt 62 st)
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: 143.4755a93fc50, antal fel: 95 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #44: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: 115.4755a93fc50, antal fel: 95 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #45: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: 135.4755a93fc50, antal fel: 150 ( 1.00 betyg )
- X is defined but never used. (totalt 117 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #46: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: 144.4755a93fc50, antal fel: 170 ( 1.00 betyg )
- X is defined but never used. (totalt 128 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #47: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: 3.4755a93fc5065, antal fel: 429 ( 1.00 betyg )
- X is defined but never used. (totalt 256 st)
- X is not defined. (totalt 124 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #48: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: 2.4755a93fc5065, antal fel: 469 ( 1.00 betyg )
- X is defined but never used. (totalt 278 st)
- X is not defined. (totalt 138 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #49: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: 157.4755a93fc50, antal fel: 477 ( 1.00 betyg )
- X is defined but never used. (totalt 286 st)
- X is not defined. (totalt 138 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #50: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: 139.4755a93fc50, antal fel: 484 ( 1.00 betyg )
- X is defined but never used. (totalt 293 st)
- X is not defined. (totalt 138 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 8 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2211 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1572 st)
- Expected X and instead saw X. (totalt 484 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Unnecessary X. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: m-el-main, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #37: m-el-main, antal fel: 1379 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 772 st)
- Expected X and instead saw X. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: mellerud.se.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #39: mellerud.se.js, antal fel: 1379 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 772 st)
- Expected X and instead saw X. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: browsealoud.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #41: browsealoud.js, antal fel: 1455 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 802 st)
- Expected X and instead saw X. (totalt 620 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: 155.4755a93fc50, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #42: 155.4755a93fc50, antal fel: 1477 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 815 st)
- Expected X and instead saw X. (totalt 626 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: 143.4755a93fc50, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #43: 143.4755a93fc50, antal fel: 1541 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 840 st)
- Expected X and instead saw X. (totalt 652 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #44: 115.4755a93fc50, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: 115.4755a93fc50, antal fel: 1542 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 841 st)
- Expected X and instead saw X. (totalt 652 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #45: 135.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: 135.4755a93fc50, antal fel: 2362 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1297 st)
- Expected X and instead saw X. (totalt 971 st)
- Do not access Object.prototype method X from target object. (totalt 35 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary X. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 2 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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 144.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: 144.4755a93fc50, antal fel: 2412 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1328 st)
- Expected X and instead saw X. (totalt 990 st)
- Do not access Object.prototype method X from target object. (totalt 35 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary X. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 2 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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: 3.4755a93fc5065, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: 3.4755a93fc5065, antal fel: 5313 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 3151 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2050 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (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)
- Async method X has no X expression. (totalt 2 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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: 2.4755a93fc5065, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: 2.4755a93fc5065, antal fel: 5704 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 3338 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2239 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary X. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (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)
- Async method X has no X expression. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: 157.4755a93fc50, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: 157.4755a93fc50, antal fel: 5784 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 3398 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2259 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary X. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (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)
- Async method X has no X expression. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: 139.4755a93fc50, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #50: 139.4755a93fc50, antal fel: 5805 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 3406 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2272 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary X. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (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)
- Async method X has no X expression. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)