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.59 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: 491 ( 1.00 betyg )
- X is not defined. (totalt 258 st)
- X is defined but never used. (totalt 157 st)
- Unexpected console statement. (totalt 58 st)
- X is assigned a value but never used. (totalt 18 st)
- `< script>` in: #73: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #73: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #73: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #73: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #58: 56fa5d71-593e-4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #58: 56fa5d71-593e-4, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #70: integration, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #70: integration, antal fel: 704 ( 1.00 betyg )
- X is not defined. (totalt 660 st)
- X is defined but never used. (totalt 31 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #76: recaptcha--sv.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: recaptcha--sv.j, antal fel: 804 ( 1.00 betyg )
- X is not defined. (totalt 677 st)
- X is defined but never used. (totalt 109 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #83: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #83: common.js, antal fel: 814 ( 1.00 betyg )
- X is not defined. (totalt 678 st)
- X is defined but never used. (totalt 118 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #84: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #84: util.js, antal fel: 833 ( 1.00 betyg )
- X is not defined. (totalt 679 st)
- X is defined but never used. (totalt 133 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 4 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: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2082 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1215 st)
- Expected X and instead saw X. (totalt 589 st)
- X is assigned to itself. (totalt 209 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `< script src="...">` in: #73: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #73: anchor, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: 56fa5d71-593e-4, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #58: 56fa5d71-593e-4, antal fel: 946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 586 st)
- Expected X and instead saw X. (totalt 327 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: integration, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #70: integration, antal fel: 1066 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 681 st)
- Expected X and instead saw X. (totalt 347 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: recaptcha--sv.j, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #76: recaptcha--sv.j, antal fel: 3331 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1988 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1255 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \). (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #83: common.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #83: common.js, antal fel: 3763 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2071 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1593 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #84: util.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #84: util.js, antal fel: 5184 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2784 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2278 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \). (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Async method X has no X expression. (totalt 1 st)