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.52 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: 6 ( 3.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 181 ( 1.00 betyg )
- X is defined but never used. (totalt 75 st)
- X is not defined. (totalt 63 st)
- Unexpected console statement. (totalt 36 st)
- X is assigned a value but never used. (totalt 5 st)
- Rule "no-unused-expressions" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: pro-v4-shims.mi, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #51: pro-v4-shims.mi, antal fel: 4 ( 4.20 betyg )
- X is not defined. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #52: pro.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: pro.min.js, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 4 st)
- X is not defined. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: gtm.js, antal fel: 602 ( 1.00 betyg )
- X is defined but never used. (totalt 486 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #61: app.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: app.js, antal fel: 695 ( 1.00 betyg )
- X is defined but never used. (totalt 530 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #62: web-components., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: web-components., antal fel: 695 ( 1.00 betyg )
- X is defined but never used. (totalt 530 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #83: p-43f79dfb.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #83: p-43f79dfb.js, antal fel: 714 ( 1.00 betyg )
- X is defined but never used. (totalt 544 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #84: p-e1255160.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #84: p-e1255160.js, antal fel: 714 ( 1.00 betyg )
- X is defined but never used. (totalt 544 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 23 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: 18 ( 1.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 637 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 353 st)
- Expected X and instead saw X. (totalt 251 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Async method X has no X expression. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Rule "no-unused-expressions" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: pro-v4-shims.mi, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #51: pro-v4-shims.mi, antal fel: 18 ( 1.40 betyg )
- Expected X and instead saw X. (totalt 11 st)
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- `content-type=".*javascript.*"` in: #52: pro.min.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #52: pro.min.js, antal fel: 126 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 77 st)
- Expected X and instead saw X. (totalt 46 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \ . (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: gtm.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #53: gtm.js, antal fel: 1165 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 830 st)
- Expected X and instead saw X. (totalt 247 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \ . (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: app.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #61: app.js, antal fel: 2428 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1752 st)
- Expected X and instead saw X. (totalt 452 st)
- Async method X has no X expression. (totalt 92 st)
- Do not access Object.prototype method X from target object. (totalt 75 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (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)
- Comparing to itself is potentially pointless. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: web-components., antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #62: web-components., antal fel: 2428 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1752 st)
- Expected X and instead saw X. (totalt 452 st)
- Async method X has no X expression. (totalt 92 st)
- Do not access Object.prototype method X from target object. (totalt 75 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (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)
- Comparing to itself is potentially pointless. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #83: p-43f79dfb.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #83: p-43f79dfb.js, antal fel: 2564 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1832 st)
- Expected X and instead saw X. (totalt 501 st)
- Async method X has no X expression. (totalt 92 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Static async method X has no X expression. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (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)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \ . (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #84: p-e1255160.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #84: p-e1255160.js, antal fel: 2564 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1832 st)
- Expected X and instead saw X. (totalt 501 st)
- Async method X has no X expression. (totalt 92 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Static async method X has no X expression. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (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)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \ . (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)