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.28 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: 6 ( 3.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 399 ( 1.00 betyg )
- X is defined but never used. (totalt 237 st)
- X is not defined. (totalt 135 st)
- Unexpected console statement. (totalt 21 st)
- Rule "no-param-reassign" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 4 st)
- X is assigned a value but never used. (totalt 1 st)
- Rule "func-names" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 356.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #37: 356.js, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #39: slideshow-plugi, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #39: slideshow-plugi, antal fel: 26 ( 1.00 betyg )
- X is defined but never used. (totalt 18 st)
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #40: www.storfors.se, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #40: www.storfors.se, antal fel: 27 ( 1.00 betyg )
- X is defined but never used. (totalt 18 st)
- X is not defined. (totalt 8 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: browsealoud.js, antal fel: 37 ( 1.00 betyg )
- X is defined but never used. (totalt 26 st)
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: 155.4755a93fc50, antal fel: 53 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: 143.4755a93fc50, antal fel: 78 ( 1.00 betyg )
- X is defined but never used. (totalt 51 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #48: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: 115.4755a93fc50, antal fel: 78 ( 1.00 betyg )
- X is defined but never used. (totalt 51 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #49: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: 135.4755a93fc50, antal fel: 133 ( 1.00 betyg )
- X is defined but never used. (totalt 96 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #50: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: 144.4755a93fc50, antal fel: 153 ( 1.00 betyg )
- X is defined but never used. (totalt 107 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #51: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: 3.4755a93fc5065, antal fel: 412 ( 1.00 betyg )
- X is defined but never used. (totalt 235 st)
- X is not defined. (totalt 130 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #52: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: 2.4755a93fc5065, antal fel: 452 ( 1.00 betyg )
- X is defined but never used. (totalt 257 st)
- X is not defined. (totalt 144 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #53: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: 157.4755a93fc50, antal fel: 460 ( 1.00 betyg )
- X is defined but never used. (totalt 265 st)
- X is not defined. (totalt 144 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #54: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: 139.4755a93fc50, antal fel: 467 ( 1.00 betyg )
- X is defined but never used. (totalt 272 st)
- X is not defined. (totalt 144 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 6 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: 22 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2456 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1627 st)
- Expected X and instead saw X. (totalt 701 st)
- Unnecessary X. (totalt 17 st)
- Unnecessary escape character: \-. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- The Function constructor is eval. (totalt 9 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unnecessary escape character: \+. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Rule "no-param-reassign" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Rule "func-names" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 356.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #37: 356.js, antal fel: 44 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 20 st)
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: slideshow-plugi, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #39: slideshow-plugi, antal fel: 154 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 110 st)
- Expected X and instead saw X. (totalt 36 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: www.storfors.se, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #40: www.storfors.se, antal fel: 154 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 110 st)
- Expected X and instead saw X. (totalt 36 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: browsealoud.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #45: browsealoud.js, antal fel: 230 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 140 st)
- Expected X and instead saw X. (totalt 82 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 155.4755a93fc50, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #46: 155.4755a93fc50, antal fel: 252 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 153 st)
- Expected X and instead saw X. (totalt 88 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #47: 143.4755a93fc50, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: 143.4755a93fc50, antal fel: 316 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 178 st)
- Expected X and instead saw X. (totalt 114 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 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: #48: 115.4755a93fc50, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: 115.4755a93fc50, antal fel: 317 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 179 st)
- Expected X and instead saw X. (totalt 114 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 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: #49: 135.4755a93fc50, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: 135.4755a93fc50, antal fel: 1137 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 635 st)
- Expected X and instead saw X. (totalt 433 st)
- Do not access Object.prototype method X from target object. (totalt 35 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 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: #50: 144.4755a93fc50, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #50: 144.4755a93fc50, antal fel: 1187 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 666 st)
- Expected X and instead saw X. (totalt 452 st)
- Do not access Object.prototype method X from target object. (totalt 35 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 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: #51: 3.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #51: 3.4755a93fc5065, antal fel: 4088 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2613 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1388 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (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)
- 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: #52: 2.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #52: 2.4755a93fc5065, antal fel: 4479 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2800 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1577 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 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)
- The Function constructor is eval. (totalt 2 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)
- Async method X has no X expression. (totalt 2 st)
- `content-type=".*javascript.*"` in: #53: 157.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #53: 157.4755a93fc50, antal fel: 4559 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2860 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1597 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 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)
- The Function constructor is eval. (totalt 2 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)
- Async method X has no X expression. (totalt 2 st)
- `content-type=".*javascript.*"` in: #54: 139.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #54: 139.4755a93fc50, antal fel: 4580 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2868 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1610 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 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)
- The Function constructor is eval. (totalt 2 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)
- Async method X has no X expression. (totalt 2 st)