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.83 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 218 ( 1.00 betyg )
- X is defined but never used. (totalt 90 st)
- X is not defined. (totalt 75 st)
- X is assigned a value but never used. (totalt 33 st)
- Unexpected console statement. (totalt 20 st)
- `< script>` in: #125: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #125: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #103: app.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #103: app.js, antal fel: 95 ( 1.00 betyg )
- X is defined but never used. (totalt 46 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #104: santa.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #104: santa.js, antal fel: 603 ( 1.00 betyg )
- X is defined but never used. (totalt 456 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #122: clarity.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #122: clarity.js, antal fel: 624 ( 1.00 betyg )
- X is defined but never used. (totalt 476 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #123: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #123: uc.js, antal fel: 671 ( 1.00 betyg )
- X is defined but never used. (totalt 496 st)
- X is assigned a value but never used. (totalt 101 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 30 st)
- `content-type=".*javascript.*"` in: #126: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #126: cc.js, antal fel: 699 ( 1.00 betyg )
- X is defined but never used. (totalt 508 st)
- X is assigned a value but never used. (totalt 107 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 31 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: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1477 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 877 st)
- Expected X and instead saw X. (totalt 564 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Unnecessary X. (totalt 7 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `< script>` in: #125: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #125: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #102: mfz3ypdpoz, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #102: mfz3ypdpoz, 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: #103: app.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #103: app.js, antal fel: 1285 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 933 st)
- Expected X and instead saw X. (totalt 234 st)
- Async method X has no X expression. (totalt 75 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Do not access Object.prototype method X from target object. (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)
- 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)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #104: santa.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #104: santa.js, antal fel: 2691 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1867 st)
- Expected X and instead saw X. (totalt 475 st)
- Do not access Object.prototype method X from target object. (totalt 116 st)
- Unnecessary escape character: \/. (totalt 103 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 10 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)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary X. (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)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #122: clarity.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #122: clarity.js, antal fel: 3039 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2169 st)
- Expected X and instead saw X. (totalt 519 st)
- Do not access Object.prototype method X from target object. (totalt 116 st)
- Unnecessary escape character: \/. (totalt 103 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 11 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary X. (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)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #123: uc.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #123: uc.js, antal fel: 3391 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2410 st)
- Expected X and instead saw X. (totalt 621 st)
- Do not access Object.prototype method X from target object. (totalt 116 st)
- Unnecessary escape character: \/. (totalt 105 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 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Script URL is a form of eval. (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)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #126: cc.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #126: cc.js, antal fel: 3738 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2716 st)
- Expected X and instead saw X. (totalt 657 st)
- Do not access Object.prototype method X from target object. (totalt 116 st)
- Unnecessary escape character: \/. (totalt 105 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 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Static async method X has no X expression. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- X is assigned to itself. (totalt 3 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)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)