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.41 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 )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 716 ( 1.00 betyg )
- X is not defined. (totalt 625 st)
- X is defined but never used. (totalt 70 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #50: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: 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: #61: www.regionkrono, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: www.regionkrono, antal fel: 50 ( 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 8 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #63: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: browsealoud.js, antal fel: 60 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 8 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #65: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: 155.4755a93fc50, antal fel: 76 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 9 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #66: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: 143.4755a93fc50, antal fel: 101 ( 1.00 betyg )
- X is defined but never used. (totalt 53 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #67: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: 115.4755a93fc50, antal fel: 101 ( 1.00 betyg )
- X is defined but never used. (totalt 53 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #68: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: 135.4755a93fc50, antal fel: 156 ( 1.00 betyg )
- X is defined but never used. (totalt 98 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #69: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: 144.4755a93fc50, antal fel: 176 ( 1.00 betyg )
- X is defined but never used. (totalt 109 st)
- X is not defined. (totalt 42 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #70: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: 3.4755a93fc5065, antal fel: 435 ( 1.00 betyg )
- X is defined but never used. (totalt 237 st)
- X is not defined. (totalt 138 st)
- Unexpected console statement. (totalt 47 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #71: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: 2.4755a93fc5065, antal fel: 475 ( 1.00 betyg )
- X is defined but never used. (totalt 259 st)
- X is not defined. (totalt 152 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #72: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: 157.4755a93fc50, antal fel: 483 ( 1.00 betyg )
- X is defined but never used. (totalt 267 st)
- X is not defined. (totalt 152 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #73: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: 139.4755a93fc50, antal fel: 490 ( 1.00 betyg )
- X is defined but never used. (totalt 274 st)
- X is not defined. (totalt 152 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 13 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Unnecessary escape character: \/. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1888 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1164 st)
- Expected X and instead saw X. (totalt 641 st)
- Unnecessary escape character: \-. (totalt 21 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- eval can be harmful. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: matomo.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #50: 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: #61: www.regionkrono, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #61: www.regionkrono, antal fel: 3 ( 4.40 betyg )
- Do not access Object.prototype method X from target object. (totalt 3 st)
- `content-type=".*javascript.*"` in: #63: browsealoud.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #63: browsealoud.js, antal fel: 79 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 46 st)
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- `content-type=".*javascript.*"` in: #65: 155.4755a93fc50, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #65: 155.4755a93fc50, antal fel: 101 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 52 st)
- Expected an assignment or function call and instead saw an expression. (totalt 43 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: 143.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #66: 143.4755a93fc50, antal fel: 165 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 78 st)
- Expected an assignment or function call and instead saw an expression. (totalt 68 st)
- Do not access Object.prototype method X from target object. (totalt 3 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: #67: 115.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #67: 115.4755a93fc50, antal fel: 166 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 78 st)
- Expected an assignment or function call and instead saw an expression. (totalt 69 st)
- Do not access Object.prototype method X from target object. (totalt 3 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: #68: 135.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: 135.4755a93fc50, antal fel: 986 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 525 st)
- Expected X and instead saw X. (totalt 397 st)
- Do not access Object.prototype method X from target object. (totalt 36 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: #69: 144.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #69: 144.4755a93fc50, antal fel: 1036 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 556 st)
- Expected X and instead saw X. (totalt 416 st)
- Do not access Object.prototype method X from target object. (totalt 36 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: #70: 3.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #70: 3.4755a93fc5065, antal fel: 3937 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2577 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 45 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: #71: 2.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #71: 2.4755a93fc5065, antal fel: 4328 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2764 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 45 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: #72: 157.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #72: 157.4755a93fc50, antal fel: 4408 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2824 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 45 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: #73: 139.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #73: 139.4755a93fc50, antal fel: 4429 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2832 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 45 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)