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.12 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 cookieImage (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 486 ( 1.00 betyg )
- X is defined but never used. (totalt 295 st)
- X is not defined. (totalt 162 st)
- Unexpected console statement. (totalt 24 st)
- Parsing error: X in strict mode (totalt 5 st)
- `content-type=".*javascript.*"` in: #28: 52f94c2d-80c7-4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #28: 52f94c2d-80c7-4, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #33: www.onh.se.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: www.onh.se.js, antal fel: 43 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: 140.33e4a25fbd2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: 140.33e4a25fbd2, antal fel: 59 ( 1.00 betyg )
- X is defined but never used. (totalt 34 st)
- Unexpected console statement. (totalt 12 st)
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: 114.33e4a25fbd2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: 114.33e4a25fbd2, antal fel: 59 ( 1.00 betyg )
- X is defined but never used. (totalt 34 st)
- Unexpected console statement. (totalt 12 st)
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: 133.33e4a25fbd2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: 133.33e4a25fbd2, antal fel: 116 ( 1.00 betyg )
- X is defined but never used. (totalt 81 st)
- Unexpected console statement. (totalt 17 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 141.33e4a25fbd2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: 141.33e4a25fbd2, antal fel: 133 ( 1.00 betyg )
- X is defined but never used. (totalt 90 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: 3.33e4a25fbd250, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: 3.33e4a25fbd250, antal fel: 365 ( 1.00 betyg )
- X is defined but never used. (totalt 204 st)
- X is not defined. (totalt 116 st)
- Unexpected console statement. (totalt 42 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #48: 2.33e4a25fbd250, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: 2.33e4a25fbd250, antal fel: 388 ( 1.00 betyg )
- X is defined but never used. (totalt 212 st)
- X is not defined. (totalt 130 st)
- Unexpected console statement. (totalt 43 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #49: 153.33e4a25fbd2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: 153.33e4a25fbd2, antal fel: 396 ( 1.00 betyg )
- X is defined but never used. (totalt 220 st)
- X is not defined. (totalt 130 st)
- Unexpected console statement. (totalt 43 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #50: 136.33e4a25fbd2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: 136.33e4a25fbd2, antal fel: 403 ( 1.00 betyg )
- X is defined but never used. (totalt 227 st)
- X is not defined. (totalt 130 st)
- Unexpected console statement. (totalt 43 st)
- X is assigned a value but never used. (totalt 3 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 cookieImage (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3781 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2434 st)
- Expected X and instead saw X. (totalt 1163 st)
- Do not access Object.prototype method X from target object. (totalt 43 st)
- Comparing to itself is potentially pointless. (totalt 24 st)
- Unnecessary X. (totalt 19 st)
- The Function constructor is eval. (totalt 19 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Async arrow function has no X expression. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- Parsing error: X in strict mode (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- `content-type=".*javascript.*"` in: #28: 52f94c2d-80c7-4, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #28: 52f94c2d-80c7-4, antal fel: 946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 586 st)
- Expected X and instead saw X. (totalt 327 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: www.onh.se.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #33: www.onh.se.js, antal fel: 946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 586 st)
- Expected X and instead saw X. (totalt 327 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: 140.33e4a25fbd2, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #41: 140.33e4a25fbd2, antal fel: 1005 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 610 st)
- Expected X and instead saw X. (totalt 349 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (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: 114.33e4a25fbd2, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #42: 114.33e4a25fbd2, antal fel: 1006 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 611 st)
- Expected X and instead saw X. (totalt 349 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (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: #45: 133.33e4a25fbd2, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: 133.33e4a25fbd2, antal fel: 1829 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1068 st)
- Expected X and instead saw X. (totalt 669 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \*. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- eval can be harmful. (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: 141.33e4a25fbd2, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: 141.33e4a25fbd2, antal fel: 1879 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1103 st)
- Expected X and instead saw X. (totalt 684 st)
- Do not access Object.prototype method X from target object. (totalt 44 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \*. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- eval can be harmful. (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: #47: 3.33e4a25fbd250, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: 3.33e4a25fbd250, antal fel: 4542 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2665 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1767 st)
- Do not access Object.prototype method X from target object. (totalt 53 st)
- Unnecessary escape character: \-. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \*. (totalt 2 st)
- The Function constructor is eval. (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)
- Unnecessary escape character: \:. (totalt 1 st)
- eval can be harmful. (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: #48: 2.33e4a25fbd250, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: 2.33e4a25fbd250, antal fel: 4890 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2828 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1937 st)
- Do not access Object.prototype method X from target object. (totalt 53 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary X. (totalt 4 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)
- The Function constructor is eval. (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)
- Unnecessary escape character: \:. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: 153.33e4a25fbd2, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: 153.33e4a25fbd2, antal fel: 4970 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2876 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1969 st)
- Do not access Object.prototype method X from target object. (totalt 53 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary X. (totalt 4 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)
- The Function constructor is eval. (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)
- Unnecessary escape character: \:. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: 136.33e4a25fbd2, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #50: 136.33e4a25fbd2, antal fel: 4991 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2884 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1982 st)
- Do not access Object.prototype method X from target object. (totalt 53 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary X. (totalt 4 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)
- The Function constructor is eval. (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)
- Unnecessary escape character: \:. (totalt 1 st)
- eval can be harmful. (totalt 1 st)