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.27 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.a7f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: client-main.a7f, 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: 1039 ( 1.00 betyg )
- X is defined but never used. (totalt 865 st)
- X is assigned a value but never used. (totalt 83 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 26 st)
- `content-type=".*javascript.*"` in: #17: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: sv.js, antal fel: 1040 ( 1.00 betyg )
- X is defined but never used. (totalt 865 st)
- X is assigned a value but never used. (totalt 83 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 27 st)
- `content-type=".*javascript.*"` in: #18: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: js, antal fel: 1535 ( 1.00 betyg )
- X is defined but never used. (totalt 1255 st)
- X is assigned a value but never used. (totalt 172 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 43 st)
- `content-type=".*javascript.*"` in: #19: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: js, antal fel: 2038 ( 1.00 betyg )
- X is defined but never used. (totalt 1652 st)
- X is assigned a value but never used. (totalt 262 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 59 st)
- `content-type=".*javascript.*"` in: #20: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: js, antal fel: 2543 ( 1.00 betyg )
- X is defined but never used. (totalt 2051 st)
- X is assigned a value but never used. (totalt 352 st)
- X is not defined. (totalt 75 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.a7f, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #8: client-main.a7f, 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: 5743 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4298 st)
- Expected X and instead saw X. (totalt 883 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: #17: sv.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #17: sv.js, antal fel: 5743 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4298 st)
- Expected X and instead saw X. (totalt 883 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: #18: js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #18: js, antal fel: 7105 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5348 st)
- Expected X and instead saw X. (totalt 1099 st)
- Unnecessary escape character: \/. (totalt 257 st)
- Do not access Object.prototype method X from target object. (totalt 241 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)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary X. (totalt 5 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: #19: js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #19: js, antal fel: 8457 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6392 st)
- Expected X and instead saw X. (totalt 1315 st)
- Do not access Object.prototype method X from target object. (totalt 320 st)
- Unnecessary escape character: \/. (totalt 260 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 9 st)
- The Function constructor is eval. (totalt 7 st)
- Script URL is a form of eval. (totalt 6 st)
- Unnecessary escape character: \.. (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)
- `content-type=".*javascript.*"` in: #20: js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #20: js, antal fel: 9810 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7435 st)
- Expected X and instead saw X. (totalt 1531 st)
- Do not access Object.prototype method X from target object. (totalt 401 st)
- Unnecessary escape character: \/. (totalt 263 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)
- Unnecessary escape character: \-. (totalt 12 st)
- X is assigned to itself. (totalt 12 st)
- Script URL is a form of eval. (totalt 7 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \}. (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)
- eval can be harmful. (totalt 1 st)