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.60 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: 604 ( 1.00 betyg )
- X is defined but never used. (totalt 433 st)
- X is not defined. (totalt 73 st)
- X is assigned a value but never used. (totalt 73 st)
- Unexpected console statement. (totalt 25 st)
- `< script>` in: #44: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #44: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #44: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #44: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 79 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: fbevents.js, antal fel: 656 ( 1.00 betyg )
- X is defined but never used. (totalt 638 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: js, antal fel: 1251 ( 1.00 betyg )
- X is defined but never used. (totalt 1122 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #46: recaptcha--sv.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: recaptcha--sv.j, antal fel: 1351 ( 1.00 betyg )
- X is defined but never used. (totalt 1201 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #52: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: analytics.js, antal fel: 1381 ( 1.00 betyg )
- X is defined but never used. (totalt 1228 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 14 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: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2504 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1819 st)
- Expected X and instead saw X. (totalt 550 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `< script src="...">` in: #44: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #44: anchor, antal fel: 2431 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1769 st)
- Expected an assignment or function call and instead saw an expression. (totalt 612 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: fbevents.js, antal grupperade fel: 31 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: fbevents.js, antal fel: 1409 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 621 st)
- Expected an assignment or function call and instead saw an expression. (totalt 619 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unsafe usage of ThrowStatement. (totalt 15 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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)
- `content-type=".*javascript.*"` in: #43: js, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #43: js, antal fel: 2559 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1435 st)
- Expected X and instead saw X. (totalt 852 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unsafe usage of ThrowStatement. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: recaptcha--sv.j, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: recaptcha--sv.j, antal fel: 4990 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2621 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2047 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Unnecessary escape character: \-. (totalt 19 st)
- X is assigned to itself. (totalt 16 st)
- Unsafe usage of ThrowStatement. (totalt 15 st)
- Unnecessary escape character: \?. (totalt 13 st)
- Unnecessary escape character: \^. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 9 st)
- X is not modified in this loop. (totalt 9 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 escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- `content-type=".*javascript.*"` in: #52: analytics.js, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #52: analytics.js, antal fel: 5420 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2799 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2281 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 23 st)
- Unnecessary escape character: \-. (totalt 19 st)
- X is assigned to itself. (totalt 16 st)
- Unsafe usage of ThrowStatement. (totalt 15 st)
- Unnecessary escape character: \?. (totalt 13 st)
- Unnecessary escape character: \^. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 9 st)
- X is not modified in this loop. (totalt 9 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 escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- eval can be harmful. (totalt 2 st)