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.14 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: borger, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: borger, antal fel: 15 ( 2.00 betyg )
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 1 st)
- `< script src="...">` in: #1: borger, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: borger, antal fel: 1008 ( 1.00 betyg )
- X is not defined. (totalt 712 st)
- X is defined but never used. (totalt 197 st)
- Unexpected console statement. (totalt 91 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #34: index.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: index.js, antal fel: 146 ( 1.00 betyg )
- X is defined but never used. (totalt 85 st)
- Unexpected console statement. (totalt 47 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #35: cookie-banner-m, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: cookie-banner-m, antal fel: 184 ( 1.00 betyg )
- X is defined but never used. (totalt 118 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 8 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #46: heatmaps.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: heatmaps.js, antal fel: 195 ( 1.00 betyg )
- X is defined but never used. (totalt 127 st)
- Unexpected console statement. (totalt 53 st)
- X is assigned a value but never used. (totalt 8 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #47: page-correct.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: page-correct.js, antal fel: 200 ( 1.00 betyg )
- X is defined but never used. (totalt 131 st)
- Unexpected console statement. (totalt 54 st)
- X is assigned a value but never used. (totalt 8 st)
- X is not defined. (totalt 7 st)
Integritet & säkerhet
- `< script>` in: #1: borger, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: borger, antal fel: 5 ( 4.00 betyg )
- Expected X and instead saw X. (totalt 5 st)
- `< script src="...">` in: #1: borger, antal grupperade fel: 28 ( 1.00 betyg )
- `< script src="...">` in: #1: borger, antal fel: 6944 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4640 st)
- Expected X and instead saw X. (totalt 2124 st)
- Do not access Object.prototype method X from target object. (totalt 48 st)
- Comparing to itself is potentially pointless. (totalt 27 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Unnecessary X. (totalt 10 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- The Function constructor is eval. (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)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Redundant use of `await` on a return value. (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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: index.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #34: index.js, antal fel: 1415 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 707 st)
- Expected X and instead saw X. (totalt 495 st)
- Unnecessary escape character: \.. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 33 st)
- Unnecessary escape character: \). (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 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)
- 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: #35: cookie-banner-m, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #35: cookie-banner-m, antal fel: 2538 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1184 st)
- Expected X and instead saw X. (totalt 1002 st)
- Do not access Object.prototype method X from target object. (totalt 116 st)
- Unnecessary escape character: \.. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 35 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \). (totalt 14 st)
- Async arrow function has no X expression. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary X. (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 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 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: heatmaps.js, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: heatmaps.js, antal fel: 2575 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1207 st)
- Expected X and instead saw X. (totalt 1016 st)
- Do not access Object.prototype method X from target object. (totalt 116 st)
- Unnecessary escape character: \.. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 35 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \). (totalt 14 st)
- Async arrow function has no X expression. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary X. (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 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 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: page-correct.js, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: page-correct.js, antal fel: 2633 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1253 st)
- Expected X and instead saw X. (totalt 1027 st)
- Do not access Object.prototype method X from target object. (totalt 116 st)
- Unnecessary escape character: \.. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \). (totalt 14 st)
- Async arrow function has no X expression. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary X. (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 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 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- eval can be harmful. (totalt 1 st)