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.16 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: 1171 ( 1.00 betyg )
- X is defined but never used. (totalt 880 st)
- X is assigned a value but never used. (totalt 168 st)
- X is not defined. (totalt 114 st)
- Unexpected console statement. (totalt 9 st)
- `< script>` in: #60: favicon.png, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #60: favicon.png, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #60: favicon.png, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #60: favicon.png, antal fel: 1140 ( 1.00 betyg )
- X is defined but never used. (totalt 872 st)
- X is assigned a value but never used. (totalt 168 st)
- X is not defined. (totalt 91 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #52: banner.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #52: banner.js, antal fel: 78 ( 1.00 betyg )
- X is defined but never used. (totalt 44 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #57: core.gfvbdf8m.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: core.gfvbdf8m.j, antal fel: 102 ( 1.00 betyg )
- X is defined but never used. (totalt 62 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 2 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: 22 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4587 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3058 st)
- Expected X and instead saw X. (totalt 1257 st)
- Do not access Object.prototype method X from target object. (totalt 198 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unexpected negating the left operand of X operator. (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)
- Unnecessary escape character: \+. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script>` in: #56: sm.25.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #56: sm.25.html, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- Expected X and instead saw X. (totalt 3 st)
- `< script>` in: #60: favicon.png, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #60: favicon.png, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #60: favicon.png, antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #60: favicon.png, antal fel: 4372 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2979 st)
- Expected X and instead saw X. (totalt 1131 st)
- Do not access Object.prototype method X from target object. (totalt 197 st)
- X is assigned to itself. (totalt 12 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Script URL is a form of 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)
- Unnecessary escape character: \+. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: banner.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #52: banner.js, antal fel: 289 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 210 st)
- Expected X and instead saw X. (totalt 61 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: core.gfvbdf8m.j, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #57: core.gfvbdf8m.j, antal fel: 606 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 371 st)
- Expected X and instead saw X. (totalt 202 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)