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.26 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: 151 ( 1.00 betyg )
- X is defined but never used. (totalt 89 st)
- X is not defined. (totalt 48 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: matomo.js, antal fel: 85 ( 1.00 betyg )
- X is not defined. (totalt 39 st)
- X is defined but never used. (totalt 26 st)
- X is assigned a value but never used. (totalt 10 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #36: lu.se.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: lu.se.js, antal fel: 86 ( 1.00 betyg )
- X is not defined. (totalt 39 st)
- X is defined but never used. (totalt 26 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #38: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: browsealoud.js, antal fel: 96 ( 1.00 betyg )
- X is not defined. (totalt 40 st)
- X is defined but never used. (totalt 34 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #41: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: 155.4755a93fc50, antal fel: 112 ( 1.00 betyg )
- X is defined but never used. (totalt 49 st)
- X is not defined. (totalt 40 st)
- X is assigned a value but never used. (totalt 12 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #42: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: 143.4755a93fc50, antal fel: 137 ( 1.00 betyg )
- X is defined but never used. (totalt 59 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #43: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: 115.4755a93fc50, antal fel: 137 ( 1.00 betyg )
- X is defined but never used. (totalt 59 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #44: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: 135.4755a93fc50, antal fel: 192 ( 1.00 betyg )
- X is defined but never used. (totalt 104 st)
- X is not defined. (totalt 56 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #45: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: 144.4755a93fc50, antal fel: 212 ( 1.00 betyg )
- X is defined but never used. (totalt 115 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #46: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: 3.4755a93fc5065, antal fel: 471 ( 1.00 betyg )
- X is defined but never used. (totalt 243 st)
- X is not defined. (totalt 161 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #47: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: 2.4755a93fc5065, antal fel: 511 ( 1.00 betyg )
- X is defined but never used. (totalt 265 st)
- X is not defined. (totalt 175 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #48: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: 157.4755a93fc50, antal fel: 519 ( 1.00 betyg )
- X is defined but never used. (totalt 273 st)
- X is not defined. (totalt 175 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #49: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: 139.4755a93fc50, antal fel: 526 ( 1.00 betyg )
- X is defined but never used. (totalt 280 st)
- X is not defined. (totalt 175 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 16 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: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2090 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1002 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1000 st)
- Unsafe usage of ThrowStatement. (totalt 53 st)
- Unsafe usage of ReturnStatement. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: matomo.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #24: matomo.js, antal fel: 51 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 39 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: lu.se.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: lu.se.js, antal fel: 51 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 39 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: browsealoud.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #38: browsealoud.js, antal fel: 127 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 85 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 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: 155.4755a93fc50, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #41: 155.4755a93fc50, antal fel: 149 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 91 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 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: 143.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #42: 143.4755a93fc50, antal fel: 213 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 117 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 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 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)
- `content-type=".*javascript.*"` in: #43: 115.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #43: 115.4755a93fc50, antal fel: 214 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 117 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 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 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)
- `content-type=".*javascript.*"` in: #44: 135.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: 135.4755a93fc50, antal fel: 1034 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 525 st)
- Expected X and instead saw X. (totalt 436 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: 144.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: 144.4755a93fc50, antal fel: 1084 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 556 st)
- Expected X and instead saw X. (totalt 455 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 3.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: 3.4755a93fc5065, antal fel: 3985 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2616 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 49 st)
- Unnecessary escape character: \-. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: 2.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: 2.4755a93fc5065, antal fel: 4376 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2803 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 49 st)
- Unnecessary escape character: \-. (totalt 9 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)
- 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)
- 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: 157.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: 157.4755a93fc50, antal fel: 4456 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2863 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 49 st)
- Unnecessary escape character: \-. (totalt 9 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)
- 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)
- 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: #49: 139.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: 139.4755a93fc50, antal fel: 4477 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2871 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 49 st)
- Unnecessary escape character: \-. (totalt 9 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)
- 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)
- 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)