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.43 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: forside, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: forside, antal fel: 28 ( 1.00 betyg )
- X is not defined. (totalt 23 st)
- X is defined but never used. (totalt 5 st)
- `< script src="...">` in: #1: forside, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: forside, antal fel: 562 ( 1.00 betyg )
- X is not defined. (totalt 378 st)
- X is defined but never used. (totalt 122 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 13 st)
- `< script>` in: #71: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #71: 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: #56: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #56: gtm.js, antal fel: 617 ( 1.00 betyg )
- X is defined but never used. (totalt 497 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 31 st)
- `content-type=".*javascript.*"` in: #68: chatPanel.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: chatPanel.js, antal fel: 965 ( 1.00 betyg )
- X is defined but never used. (totalt 773 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 59 st)
- X is not defined. (totalt 42 st)
- `content-type=".*javascript.*"` in: #69: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: uc.js, antal fel: 1032 ( 1.00 betyg )
- X is defined but never used. (totalt 801 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 77 st)
- X is not defined. (totalt 63 st)
- `content-type=".*javascript.*"` in: #72: da.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: da.js, antal fel: 1033 ( 1.00 betyg )
- X is defined but never used. (totalt 801 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 77 st)
- X is not defined. (totalt 64 st)
- `content-type=".*javascript.*"` in: #75: rodovre.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: rodovre.js, antal fel: 1034 ( 1.00 betyg )
- X is defined but never used. (totalt 801 st)
- X is assigned a value but never used. (totalt 92 st)
- Unexpected console statement. (totalt 77 st)
- X is not defined. (totalt 64 st)
- `content-type=".*javascript.*"` in: #76: kari.install.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: kari.install.js, antal fel: 1071 ( 1.00 betyg )
- X is defined but never used. (totalt 803 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 93 st)
- Unexpected console statement. (totalt 77 st)
Integritet & säkerhet
- `< script>` in: #1: forside, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: forside, antal fel: 9 ( 3.20 betyg )
- Expected X and instead saw X. (totalt 9 st)
- `< script src="...">` in: #1: forside, antal grupperade fel: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: forside, antal fel: 1764 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 908 st)
- Expected X and instead saw X. (totalt 708 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Do not access Object.prototype method X from target object. (totalt 48 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- The Function constructor is eval. (totalt 1 st)
- Comparing to itself is potentially pointless. (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)
- `< script>` in: #71: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #71: 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: #56: gtm.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #56: gtm.js, antal fel: 1087 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 769 st)
- Expected X and instead saw X. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 18 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: chatPanel.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #68: chatPanel.js, antal fel: 5291 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2687 st)
- Expected X and instead saw X. (totalt 2365 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 12 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: uc.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #69: uc.js, antal fel: 5455 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2790 st)
- Expected X and instead saw X. (totalt 2416 st)
- Do not access Object.prototype method X from target object. (totalt 112 st)
- Unsafe usage of ThrowStatement. (totalt 40 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 13 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: da.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #72: da.js, antal fel: 5455 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2790 st)
- Expected X and instead saw X. (totalt 2416 st)
- Do not access Object.prototype method X from target object. (totalt 112 st)
- Unsafe usage of ThrowStatement. (totalt 40 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 13 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: rodovre.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #75: rodovre.js, antal fel: 5455 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2790 st)
- Expected X and instead saw X. (totalt 2416 st)
- Do not access Object.prototype method X from target object. (totalt 112 st)
- Unsafe usage of ThrowStatement. (totalt 40 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 13 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: kari.install.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #76: kari.install.js, antal fel: 5508 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2791 st)
- Expected X and instead saw X. (totalt 2421 st)
- Do not access Object.prototype method X from target object. (totalt 112 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unsafe usage of ThrowStatement. (totalt 40 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 13 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)