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.39 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 325 ( 1.00 betyg )
- X is not defined. (totalt 281 st)
- X is defined but never used. (totalt 27 st)
- X is assigned a value but never used. (totalt 13 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #14: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: matomo.js, antal fel: 49 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 7 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #33: container-cwAz7, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: container-cwAz7, antal fel: 122 ( 1.00 betyg )
- X is defined but never used. (totalt 56 st)
- X is not defined. (totalt 34 st)
- X is assigned a value but never used. (totalt 16 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #35: www.skolfi.se.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: www.skolfi.se.j, antal fel: 123 ( 1.00 betyg )
- X is defined but never used. (totalt 56 st)
- X is not defined. (totalt 34 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #39: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: browsealoud.js, antal fel: 133 ( 1.00 betyg )
- X is defined but never used. (totalt 64 st)
- X is not defined. (totalt 35 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #40: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: 155.4755a93fc50, antal fel: 149 ( 1.00 betyg )
- X is defined but never used. (totalt 79 st)
- X is not defined. (totalt 35 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #41: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: 143.4755a93fc50, antal fel: 174 ( 1.00 betyg )
- X is defined but never used. (totalt 89 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #42: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: 115.4755a93fc50, antal fel: 174 ( 1.00 betyg )
- X is defined but never used. (totalt 89 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #43: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: 135.4755a93fc50, antal fel: 229 ( 1.00 betyg )
- X is defined but never used. (totalt 134 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #44: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: 144.4755a93fc50, antal fel: 249 ( 1.00 betyg )
- X is defined but never used. (totalt 145 st)
- X is not defined. (totalt 60 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #45: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: 3.4755a93fc5065, antal fel: 508 ( 1.00 betyg )
- X is defined but never used. (totalt 273 st)
- X is not defined. (totalt 156 st)
- Unexpected console statement. (totalt 57 st)
- X is assigned a value but never used. (totalt 22 st)
- `content-type=".*javascript.*"` in: #46: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: 2.4755a93fc5065, antal fel: 548 ( 1.00 betyg )
- X is defined but never used. (totalt 295 st)
- X is not defined. (totalt 170 st)
- Unexpected console statement. (totalt 61 st)
- X is assigned a value but never used. (totalt 22 st)
- `content-type=".*javascript.*"` in: #47: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: 157.4755a93fc50, antal fel: 556 ( 1.00 betyg )
- X is defined but never used. (totalt 303 st)
- X is not defined. (totalt 170 st)
- Unexpected console statement. (totalt 61 st)
- X is assigned a value but never used. (totalt 22 st)
- `content-type=".*javascript.*"` in: #48: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: 139.4755a93fc50, antal fel: 563 ( 1.00 betyg )
- X is defined but never used. (totalt 310 st)
- X is not defined. (totalt 170 st)
- Unexpected console statement. (totalt 61 st)
- X is assigned a value but never used. (totalt 22 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 816 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 442 st)
- Expected X and instead saw X. (totalt 347 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: matomo.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #14: matomo.js, antal fel: 3 ( 4.40 betyg )
- Do not access Object.prototype method X from target object. (totalt 3 st)
- `content-type=".*javascript.*"` in: #33: container-cwAz7, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #33: container-cwAz7, antal fel: 22 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #35: www.skolfi.se.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: www.skolfi.se.j, antal fel: 22 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #39: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: browsealoud.js, antal fel: 98 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 50 st)
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- `content-type=".*javascript.*"` in: #40: 155.4755a93fc50, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #40: 155.4755a93fc50, antal fel: 120 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 56 st)
- Expected an assignment or function call and instead saw an expression. (totalt 43 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: 143.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #41: 143.4755a93fc50, antal fel: 184 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 82 st)
- Expected an assignment or function call and instead saw an expression. (totalt 68 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary X. (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)
- 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: #42: 115.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #42: 115.4755a93fc50, antal fel: 185 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 82 st)
- Expected an assignment or function call and instead saw an expression. (totalt 69 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary X. (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)
- 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: #43: 135.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #43: 135.4755a93fc50, antal fel: 1005 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 525 st)
- Expected X and instead saw X. (totalt 401 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (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)
- 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: #44: 144.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: 144.4755a93fc50, antal fel: 1055 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 556 st)
- Expected X and instead saw X. (totalt 420 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (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)
- 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: #45: 3.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: 3.4755a93fc5065, antal fel: 3956 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2581 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1278 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 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)
- 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: #46: 2.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: 2.4755a93fc5065, antal fel: 4347 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2768 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1467 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 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)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: 157.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: 157.4755a93fc50, antal fel: 4427 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2828 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1487 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 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)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: 139.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: 139.4755a93fc50, antal fel: 4448 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2836 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1500 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 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)
- The Function constructor is eval. (totalt 1 st)