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: 174 ( 1.00 betyg )
- X is defined but never used. (totalt 74 st)
- X is not defined. (totalt 58 st)
- Unexpected console statement. (totalt 35 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: #35: pro-v4-shims.mi, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #35: 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: #36: pro.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: 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: #37: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: gtm.js, antal fel: 595 ( 1.00 betyg )
- X is defined but never used. (totalt 480 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 24 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #47: app.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: app.js, antal fel: 690 ( 1.00 betyg )
- X is defined but never used. (totalt 526 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #48: web-components., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: web-components., antal fel: 690 ( 1.00 betyg )
- X is defined but never used. (totalt 526 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #73: p-43f79dfb.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: p-43f79dfb.js, antal fel: 709 ( 1.00 betyg )
- X is defined but never used. (totalt 540 st)
- X is assigned a value but never used. (totalt 95 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #74: p-e1255160.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: p-e1255160.js, antal fel: 709 ( 1.00 betyg )
- X is defined but never used. (totalt 540 st)
- X is assigned a value but never used. (totalt 95 st)
- X is not defined. (totalt 51 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: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 620 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 344 st)
- Expected X and instead saw X. (totalt 246 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)
- Unnecessary escape character: \:. (totalt 2 st)
- Async method X 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: #35: pro-v4-shims.mi, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #35: 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: #36: pro.min.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: 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: #37: gtm.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #37: gtm.js, antal fel: 1147 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 815 st)
- Expected X and instead saw X. (totalt 244 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: #47: app.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: app.js, antal fel: 2426 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1743 st)
- Expected X and instead saw X. (totalt 477 st)
- Do not access Object.prototype method X from target object. (totalt 75 st)
- Async method X has no X expression. (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)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 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: #48: web-components., antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: web-components., antal fel: 2426 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1743 st)
- Expected X and instead saw X. (totalt 477 st)
- Do not access Object.prototype method X from target object. (totalt 75 st)
- Async method X has no X expression. (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)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 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: #73: p-43f79dfb.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #73: p-43f79dfb.js, antal fel: 2562 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1823 st)
- Expected X and instead saw X. (totalt 526 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Async method X has no X expression. (totalt 75 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (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)
- 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: #74: p-e1255160.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #74: p-e1255160.js, antal fel: 2562 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1823 st)
- Expected X and instead saw X. (totalt 526 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Async method X has no X expression. (totalt 75 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (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)
- 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)