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.23 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: afori, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: afori, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: afori, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: afori, antal fel: 67 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 18 st)
- `< script>` in: #11: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #11: 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: #4: react.productio, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #4: react.productio, antal fel: 24 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #5: react-dom.produ, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #5: react-dom.produ, antal fel: 72 ( 1.00 betyg )
- X is defined but never used. (totalt 61 st)
- X is not defined. (totalt 7 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #7: vendors-main.97, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #7: vendors-main.97, antal fel: 371 ( 1.00 betyg )
- X is defined but never used. (totalt 307 st)
- Unexpected console statement. (totalt 53 st)
- X is not defined. (totalt 10 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: client-main.ee7, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: client-main.ee7, antal fel: 525 ( 1.00 betyg )
- X is defined but never used. (totalt 448 st)
- Unexpected console statement. (totalt 63 st)
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #9: find.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #9: find.js, antal fel: 528 ( 1.00 betyg )
- X is defined but never used. (totalt 449 st)
- Unexpected console statement. (totalt 64 st)
- X is not defined. (totalt 13 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #12: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: gtm.js, antal fel: 1051 ( 1.00 betyg )
- X is defined but never used. (totalt 873 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 28 st)
- `content-type=".*javascript.*"` in: #13: ai.2.gbl.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #13: ai.2.gbl.min.js, antal fel: 1140 ( 1.00 betyg )
- X is defined but never used. (totalt 959 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 31 st)
- `content-type=".*javascript.*"` in: #17: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: sv.js, antal fel: 1141 ( 1.00 betyg )
- X is defined but never used. (totalt 959 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 32 st)
- `content-type=".*javascript.*"` in: #18: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: js, antal fel: 1635 ( 1.00 betyg )
- X is defined but never used. (totalt 1348 st)
- X is assigned a value but never used. (totalt 174 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 48 st)
- `content-type=".*javascript.*"` in: #19: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: js, antal fel: 2138 ( 1.00 betyg )
- X is defined but never used. (totalt 1745 st)
- X is assigned a value but never used. (totalt 264 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 64 st)
- `content-type=".*javascript.*"` in: #20: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: js, antal fel: 2648 ( 1.00 betyg )
- X is defined but never used. (totalt 2149 st)
- X is assigned a value but never used. (totalt 354 st)
- X is not defined. (totalt 80 st)
- Unexpected console statement. (totalt 65 st)
Integritet & säkerhet
- `< script>` in: #1: afori, antal grupperade fel: 5 ( 4.00 betyg )
- `< script>` in: #1: afori, antal fel: 20 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `< script src="...">` in: #1: afori, antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: afori, antal fel: 164 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 103 st)
- Expected X and instead saw X. (totalt 51 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Script URL is a form of eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `< script>` in: #11: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #11: 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: #4: react.productio, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #4: react.productio, antal fel: 47 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 35 st)
- Expected X and instead saw X. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #5: react-dom.produ, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #5: react-dom.produ, antal fel: 525 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 414 st)
- Expected X and instead saw X. (totalt 73 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #7: vendors-main.97, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #7: vendors-main.97, antal fel: 3987 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3132 st)
- Expected X and instead saw X. (totalt 645 st)
- Do not access Object.prototype method X from target object. (totalt 60 st)
- Unsafe usage of ThrowStatement. (totalt 55 st)
- Comparing to itself is potentially pointless. (totalt 32 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 12 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 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: #8: client-main.ee7, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #8: client-main.ee7, antal fel: 4291 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3415 st)
- Expected X and instead saw X. (totalt 666 st)
- Do not access Object.prototype method X from target object. (totalt 60 st)
- Unsafe usage of ThrowStatement. (totalt 55 st)
- Comparing to itself is potentially pointless. (totalt 32 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 12 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 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: #9: find.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #9: find.js, antal fel: 4319 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3430 st)
- Expected X and instead saw X. (totalt 678 st)
- Do not access Object.prototype method X from target object. (totalt 60 st)
- Unsafe usage of ThrowStatement. (totalt 55 st)
- Comparing to itself is potentially pointless. (totalt 32 st)
- X is not modified in this loop. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 12 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 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: #12: gtm.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #12: gtm.js, antal fel: 5766 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4316 st)
- Expected X and instead saw X. (totalt 888 st)
- Unnecessary escape character: \/. (totalt 254 st)
- Do not access Object.prototype method X from target object. (totalt 158 st)
- Unsafe usage of ThrowStatement. (totalt 55 st)
- Comparing to itself is potentially pointless. (totalt 33 st)
- X is not modified in this loop. (totalt 19 st)
- Unnecessary escape character: \-. (totalt 12 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: ai.2.gbl.min.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #13: ai.2.gbl.min.js, antal fel: 6235 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4729 st)
- Expected X and instead saw X. (totalt 924 st)
- Unnecessary escape character: \/. (totalt 258 st)
- Do not access Object.prototype method X from target object. (totalt 159 st)
- Unsafe usage of ThrowStatement. (totalt 55 st)
- Comparing to itself is potentially pointless. (totalt 33 st)
- X is not modified in this loop. (totalt 19 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 11 st)
- The Function constructor is eval. (totalt 7 st)
- Script URL is a form of eval. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: sv.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #17: sv.js, antal fel: 6235 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4729 st)
- Expected X and instead saw X. (totalt 924 st)
- Unnecessary escape character: \/. (totalt 258 st)
- Do not access Object.prototype method X from target object. (totalt 159 st)
- Unsafe usage of ThrowStatement. (totalt 55 st)
- Comparing to itself is potentially pointless. (totalt 33 st)
- X is not modified in this loop. (totalt 19 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 11 st)
- The Function constructor is eval. (totalt 7 st)
- Script URL is a form of eval. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #18: js, antal fel: 7647 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5814 st)
- Expected X and instead saw X. (totalt 1155 st)
- Unnecessary escape character: \/. (totalt 261 st)
- Do not access Object.prototype method X from target object. (totalt 242 st)
- Unsafe usage of ThrowStatement. (totalt 55 st)
- Comparing to itself is potentially pointless. (totalt 34 st)
- X is not modified in this loop. (totalt 22 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 11 st)
- X is assigned to itself. (totalt 9 st)
- Script URL is a form of eval. (totalt 7 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #19: js, antal fel: 9049 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6893 st)
- Expected X and instead saw X. (totalt 1386 st)
- Do not access Object.prototype method X from target object. (totalt 321 st)
- Unnecessary escape character: \/. (totalt 264 st)
- Unsafe usage of ThrowStatement. (totalt 55 st)
- Comparing to itself is potentially pointless. (totalt 35 st)
- X is not modified in this loop. (totalt 25 st)
- Unnecessary escape character: \-. (totalt 12 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 11 st)
- Script URL is a form of eval. (totalt 8 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary X. (totalt 5 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 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #20: js, antal fel: 10452 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7971 st)
- Expected X and instead saw X. (totalt 1617 st)
- Do not access Object.prototype method X from target object. (totalt 402 st)
- Unnecessary escape character: \/. (totalt 267 st)
- Unsafe usage of ThrowStatement. (totalt 55 st)
- Comparing to itself is potentially pointless. (totalt 36 st)
- X is not modified in this loop. (totalt 28 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 11 st)
- Script URL is a form of eval. (totalt 9 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary X. (totalt 5 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 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)