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.64 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: 633 ( 1.00 betyg )
- X is defined but never used. (totalt 339 st)
- X is not defined. (totalt 154 st)
- Unexpected console statement. (totalt 113 st)
- X is assigned a value but never used. (totalt 27 st)
- `< script>` in: #29: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #29: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #30: index.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: 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: #38: da.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: da.js, antal fel: 147 ( 1.00 betyg )
- X is defined but never used. (totalt 85 st)
- Unexpected console statement. (totalt 47 st)
- X is not defined. (totalt 8 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #44: runtime.c329fb5, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: runtime.c329fb5, antal fel: 148 ( 1.00 betyg )
- X is defined but never used. (totalt 86 st)
- Unexpected console statement. (totalt 47 st)
- X is not defined. (totalt 8 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #45: vendor.96de2bb9, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: vendor.96de2bb9, antal fel: 250 ( 1.00 betyg )
- X is defined but never used. (totalt 164 st)
- Unexpected console statement. (totalt 54 st)
- X is assigned a value but never used. (totalt 19 st)
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #46: core.dbf4b6e4ff, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: core.dbf4b6e4ff, antal fel: 280 ( 1.00 betyg )
- X is defined but never used. (totalt 191 st)
- Unexpected console statement. (totalt 54 st)
- X is assigned a value but never used. (totalt 19 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #47: common.09b23c9d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: common.09b23c9d, antal fel: 289 ( 1.00 betyg )
- X is defined but never used. (totalt 195 st)
- Unexpected console statement. (totalt 58 st)
- X is assigned a value but never used. (totalt 20 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #48: raffle.c7d053f3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: raffle.c7d053f3, antal fel: 294 ( 1.00 betyg )
- X is defined but never used. (totalt 196 st)
- Unexpected console statement. (totalt 60 st)
- X is assigned a value but never used. (totalt 20 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #49: Launcher.379721, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: Launcher.379721, antal fel: 295 ( 1.00 betyg )
- X is defined but never used. (totalt 197 st)
- Unexpected console statement. (totalt 60 st)
- X is assigned a value but never used. (totalt 20 st)
- X is not defined. (totalt 18 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 )
- Unnecessary escape character: \?. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 32 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3661 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2241 st)
- Expected X and instead saw X. (totalt 1114 st)
- Unnecessary escape character: \/. (totalt 93 st)
- Unnecessary escape character: \-. (totalt 76 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- The Function constructor is eval. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Script URL is a form of 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)
- Unsafe usage of ThrowStatement. (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)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script>` in: #29: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #29: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `content-type=".*javascript.*"` in: #30: index.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: index.js, antal fel: 1409 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 705 st)
- Expected X and instead saw X. (totalt 491 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: #38: da.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #38: da.js, antal fel: 1409 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 705 st)
- Expected X and instead saw X. (totalt 491 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: #44: runtime.c329fb5, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: runtime.c329fb5, antal fel: 1425 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 716 st)
- Expected X and instead saw X. (totalt 494 st)
- Unnecessary escape character: \.. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 34 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)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 4 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: #45: vendor.96de2bb9, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: vendor.96de2bb9, antal fel: 3269 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1811 st)
- Expected X and instead saw X. (totalt 1185 st)
- Unnecessary escape character: \.. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \). (totalt 14 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary X. (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 ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: core.dbf4b6e4ff, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: core.dbf4b6e4ff, antal fel: 3671 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1977 st)
- Expected X and instead saw X. (totalt 1408 st)
- Unnecessary escape character: \.. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Do not access Object.prototype method X from target object. (totalt 35 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary escape character: \). (totalt 14 st)
- Async arrow function has no X expression. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 7 st)
- The Function constructor is eval. (totalt 5 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 4 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 ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: common.09b23c9d, antal grupperade fel: 29 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: common.09b23c9d, antal fel: 3849 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2077 st)
- Expected X and instead saw X. (totalt 1474 st)
- Unnecessary escape character: \.. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Do not access Object.prototype method X from target object. (totalt 35 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Async arrow function has no X expression. (totalt 17 st)
- Unnecessary escape character: \). (totalt 14 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 8 st)
- The Function constructor is eval. (totalt 5 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 4 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)
- 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 ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: raffle.c7d053f3, antal grupperade fel: 29 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: raffle.c7d053f3, antal fel: 3924 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2112 st)
- Expected X and instead saw X. (totalt 1512 st)
- Unnecessary escape character: \.. (totalt 111 st)
- Do not access Object.prototype method X from target object. (totalt 37 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Async arrow function has no X expression. (totalt 17 st)
- Unnecessary escape character: \). (totalt 14 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 8 st)
- The Function constructor is eval. (totalt 5 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 4 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)
- 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 ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: Launcher.379721, antal grupperade fel: 29 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: Launcher.379721, antal fel: 3938 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2118 st)
- Expected X and instead saw X. (totalt 1520 st)
- Unnecessary escape character: \.. (totalt 111 st)
- Do not access Object.prototype method X from target object. (totalt 37 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Async arrow function has no X expression. (totalt 17 st)
- Unnecessary escape character: \). (totalt 14 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 8 st)
- The Function constructor is eval. (totalt 5 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 4 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)
- 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 ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)