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: 3.13 av 5
- JS är ok.
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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 375 ( 1.00 betyg )
- X is defined but never used. (totalt 194 st)
- X is not defined. (totalt 109 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 27 st)
- `content-type=".*javascript.*"` in: #55: 9871.7ca99e081c, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #55: 9871.7ca99e081c, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: 1395.b4ea1899b4, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #56: 1395.b4ea1899b4, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #57: loader.js, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #64: sdk.c8a61c94c9a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: sdk.c8a61c94c9a, antal fel: 116 ( 1.00 betyg )
- Unexpected console statement. (totalt 70 st)
- X is defined but never used. (totalt 43 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: head.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: head.js, antal fel: 116 ( 1.00 betyg )
- Unexpected console statement. (totalt 70 st)
- X is defined but never used. (totalt 43 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: swogo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: swogo.js, antal fel: 250 ( 1.00 betyg )
- X is defined but never used. (totalt 166 st)
- Unexpected console statement. (totalt 72 st)
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #71: seller-reviews., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: seller-reviews., antal fel: 251 ( 1.00 betyg )
- X is defined but never used. (totalt 166 st)
- Unexpected console statement. (totalt 72 st)
- X is not defined. (totalt 10 st)
- X is assigned a value but never used. (totalt 3 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: 32 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4538 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2614 st)
- Expected X and instead saw X. (totalt 1778 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- Async arrow function has no X expression. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Unnecessary escape character: \&. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Redundant use of `await` on a return value. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Async function X has no X expression. (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)
- 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)
- 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)
- Unnecessary escape character: \|. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: 9871.7ca99e081c, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #55: 9871.7ca99e081c, antal fel: 4 ( 4.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: 1395.b4ea1899b4, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #56: 1395.b4ea1899b4, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #57: loader.js, antal fel: 30 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 18 st)
- Expected an assignment or function call and instead saw an expression. (totalt 12 st)
- `content-type=".*javascript.*"` in: #64: sdk.c8a61c94c9a, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #64: sdk.c8a61c94c9a, antal fel: 1537 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 909 st)
- Expected an assignment or function call and instead saw an expression. (totalt 600 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: head.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #67: head.js, antal fel: 1548 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 910 st)
- Expected an assignment or function call and instead saw an expression. (totalt 610 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: swogo.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #68: swogo.js, antal fel: 2334 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1239 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1043 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: seller-reviews., antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #71: seller-reviews., antal fel: 2334 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1239 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1043 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)