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.68 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 )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 378 ( 1.00 betyg )
- X is defined but never used. (totalt 269 st)
- Unexpected console statement. (totalt 59 st)
- X is assigned a value but never used. (totalt 32 st)
- X is not defined. (totalt 17 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #52: index.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #52: index.html, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: index.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #30: index.js, antal fel: 85 ( 1.00 betyg )
- X is not defined. (totalt 42 st)
- X is defined but never used. (totalt 40 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #31: wrapperMessagin, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #31: wrapperMessagin, antal fel: 168 ( 1.00 betyg )
- X is defined but never used. (totalt 107 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #34: 113-0a01077c8f4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #34: 113-0a01077c8f4, antal fel: 183 ( 1.00 betyg )
- X is defined but never used. (totalt 121 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #35: 231-f000fba7403, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: 231-f000fba7403, antal fel: 186 ( 1.00 betyg )
- X is defined but never used. (totalt 124 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #36: 817-7ab218dd744, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: 817-7ab218dd744, antal fel: 199 ( 1.00 betyg )
- X is defined but never used. (totalt 129 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 26 st)
- `content-type=".*javascript.*"` in: #37: 423-8f5a8cf3916, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: 423-8f5a8cf3916, antal fel: 220 ( 1.00 betyg )
- X is defined but never used. (totalt 135 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 40 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: application-5a4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: application-5a4, antal fel: 258 ( 1.00 betyg )
- X is defined but never used. (totalt 142 st)
- Unexpected console statement. (totalt 71 st)
- X is not defined. (totalt 44 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: custom.ca802a38, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: custom.ca802a38, antal fel: 260 ( 1.00 betyg )
- X is defined but never used. (totalt 144 st)
- Unexpected console statement. (totalt 71 st)
- X is not defined. (totalt 44 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: gdpr-tcf.fd8d93, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: gdpr-tcf.fd8d93, antal fel: 300 ( 1.00 betyg )
- X is defined but never used. (totalt 184 st)
- Unexpected console statement. (totalt 71 st)
- X is not defined. (totalt 44 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: polyfills.355e5, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: polyfills.355e5, antal fel: 302 ( 1.00 betyg )
- X is defined but never used. (totalt 185 st)
- Unexpected console statement. (totalt 72 st)
- X is not defined. (totalt 44 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: Notice.64e5a.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: Notice.64e5a.js, antal fel: 329 ( 1.00 betyg )
- X is defined but never used. (totalt 202 st)
- Unexpected console statement. (totalt 77 st)
- X is not defined. (totalt 49 st)
- X is assigned a value but never used. (totalt 1 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 )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3013 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1874 st)
- Expected X and instead saw X. (totalt 964 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- The Function constructor is eval. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Async method X has no X expression. (totalt 7 st)
- eval can be harmful. (totalt 5 st)
- Async arrow function has no X expression. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Async function X has no X expression. (totalt 3 st)
- Async function has no X expression. (totalt 3 st)
- X is not modified in this loop. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #52: index.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #52: index.html, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: index.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #30: index.js, antal fel: 231 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 156 st)
- Expected X and instead saw X. (totalt 66 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #31: wrapperMessagin, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #31: wrapperMessagin, antal fel: 761 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 446 st)
- Expected X and instead saw X. (totalt 284 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: 113-0a01077c8f4, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #34: 113-0a01077c8f4, antal fel: 825 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 455 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: 231-f000fba7403, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #35: 231-f000fba7403, antal fel: 877 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 488 st)
- Expected X and instead saw X. (totalt 356 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: 817-7ab218dd744, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #36: 817-7ab218dd744, antal fel: 996 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 540 st)
- Expected X and instead saw X. (totalt 420 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 423-8f5a8cf3916, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #37: 423-8f5a8cf3916, antal fel: 1259 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 724 st)
- Expected X and instead saw X. (totalt 492 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Async method X has no X expression. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: application-5a4, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #39: application-5a4, antal fel: 1537 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 942 st)
- Expected X and instead saw X. (totalt 550 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Async method X has no X expression. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: custom.ca802a38, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #43: custom.ca802a38, antal fel: 1576 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 957 st)
- Expected X and instead saw X. (totalt 573 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- The Function constructor is eval. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Async method X has no X expression. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: gdpr-tcf.fd8d93, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #44: gdpr-tcf.fd8d93, antal fel: 2306 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1239 st)
- Expected X and instead saw X. (totalt 1013 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- The Function constructor is eval. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Async method X has no X expression. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: polyfills.355e5, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #54: polyfills.355e5, antal fel: 2348 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1261 st)
- Expected X and instead saw X. (totalt 1032 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- The Function constructor is eval. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Async method X has no X expression. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: Notice.64e5a.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #55: Notice.64e5a.js, antal fel: 3034 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1709 st)
- Expected X and instead saw X. (totalt 1248 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- The Function constructor is eval. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \< . (totalt 6 st)
- Unnecessary escape character: \>. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Async method X has no X expression. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)