Javascript
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.46 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 31 ( 1.00 betyg )
- X is not defined. (totalt 23 st)
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2035 ( 1.00 betyg )
- X is not defined. (totalt 1303 st)
- X is defined but never used. (totalt 523 st)
- X is assigned a value but never used. (totalt 168 st)
- Unexpected console statement. (totalt 40 st)
- Parsing error: Unexpected token (totalt 1 st)
- `< script>` in: #73: CookieInformati, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #73: CookieInformati, antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 8 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #68: ba.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #68: ba.js, antal fel: 5 ( 4.00 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: www.botkyrkabyg, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: www.botkyrkabyg, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #81: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #81: browsealoud.js, antal fel: 16 ( 1.80 betyg )
- X is defined but never used. (totalt 10 st)
- X is not defined. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #82: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: 155.4755a93fc50, antal fel: 32 ( 1.00 betyg )
- X is defined but never used. (totalt 25 st)
- X is not defined. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #83: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #83: 143.4755a93fc50, antal fel: 57 ( 1.00 betyg )
- X is defined but never used. (totalt 35 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #84: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #84: 115.4755a93fc50, antal fel: 57 ( 1.00 betyg )
- X is defined but never used. (totalt 35 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #85: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #85: 135.4755a93fc50, antal fel: 112 ( 1.00 betyg )
- X is defined but never used. (totalt 80 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #86: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #86: 144.4755a93fc50, antal fel: 132 ( 1.00 betyg )
- X is defined but never used. (totalt 91 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #87: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #87: 3.4755a93fc5065, antal fel: 391 ( 1.00 betyg )
- X is defined but never used. (totalt 219 st)
- X is not defined. (totalt 124 st)
- Unexpected console statement. (totalt 42 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #88: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #88: 2.4755a93fc5065, antal fel: 431 ( 1.00 betyg )
- X is defined but never used. (totalt 241 st)
- X is not defined. (totalt 138 st)
- Unexpected console statement. (totalt 46 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #89: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #89: 157.4755a93fc50, antal fel: 439 ( 1.00 betyg )
- X is defined but never used. (totalt 249 st)
- X is not defined. (totalt 138 st)
- Unexpected console statement. (totalt 46 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #90: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #90: 139.4755a93fc50, antal fel: 446 ( 1.00 betyg )
- X is defined but never used. (totalt 256 st)
- X is not defined. (totalt 138 st)
- Unexpected console statement. (totalt 46 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: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 26 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4892 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3264 st)
- Expected X and instead saw X. (totalt 1353 st)
- Unnecessary escape character: \/. (totalt 111 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Async method X has no X expression. (totalt 3 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 X. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: ba.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #68: ba.js, antal fel: 46 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 24 st)
- Expected an assignment or function call and instead saw an expression. (totalt 22 st)
- `content-type=".*javascript.*"` in: #78: www.botkyrkabyg, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #78: www.botkyrkabyg, antal fel: 46 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 24 st)
- Expected an assignment or function call and instead saw an expression. (totalt 22 st)
- `content-type=".*javascript.*"` in: #81: browsealoud.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #81: browsealoud.js, antal fel: 122 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 70 st)
- Expected an assignment or function call and instead saw an expression. (totalt 52 st)
- `content-type=".*javascript.*"` in: #82: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: 155.4755a93fc50, antal fel: 144 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 76 st)
- Expected an assignment or function call and instead saw an expression. (totalt 65 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #83: 143.4755a93fc50, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #83: 143.4755a93fc50, antal fel: 208 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 102 st)
- Expected an assignment or function call and instead saw an expression. (totalt 90 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)
- Unnecessary escape character: \|. (totalt 1 st)
- `content-type=".*javascript.*"` in: #84: 115.4755a93fc50, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #84: 115.4755a93fc50, antal fel: 209 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 102 st)
- Expected an assignment or function call and instead saw an expression. (totalt 91 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)
- Unnecessary escape character: \|. (totalt 1 st)
- `content-type=".*javascript.*"` in: #85: 135.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #85: 135.4755a93fc50, antal fel: 1029 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 547 st)
- Expected X and instead saw X. (totalt 421 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)
- 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: #86: 144.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #86: 144.4755a93fc50, antal fel: 1079 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 578 st)
- Expected X and instead saw X. (totalt 440 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)
- 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: #87: 3.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #87: 3.4755a93fc5065, antal fel: 3980 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2601 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1300 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)
- 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: #88: 2.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #88: 2.4755a93fc5065, antal fel: 4371 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2788 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1489 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)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #89: 157.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #89: 157.4755a93fc50, antal fel: 4451 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2848 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1509 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)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #90: 139.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #90: 139.4755a93fc50, antal fel: 4472 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2856 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1522 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)
- The Function constructor is eval. (totalt 1 st)