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.28 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: 508 ( 1.00 betyg )
- X is not defined. (totalt 371 st)
- X is defined but never used. (totalt 88 st)
- Unexpected console statement. (totalt 36 st)
- X is assigned a value but never used. (totalt 13 st)
- `< script>` in: #35: feedback.php, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #35: feedback.php, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: jquery-ui.min.j, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #27: jquery-ui.min.j, antal fel: 16 ( 1.80 betyg )
- X is defined but never used. (totalt 11 st)
- X is not defined. (totalt 5 st)
- `content-type=".*javascript.*"` in: #28: analytics.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #28: analytics.js, antal fel: 46 ( 1.00 betyg )
- X is defined but never used. (totalt 38 st)
- X is not defined. (totalt 8 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: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1214 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 812 st)
- Expected X and instead saw X. (totalt 329 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- X is assigned to itself. (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 not modified in this loop. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `< script>` in: #35: feedback.php, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #35: feedback.php, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: jquery-ui.min.j, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #27: jquery-ui.min.j, antal fel: 765 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 598 st)
- Expected X and instead saw X. (totalt 132 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: analytics.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #28: analytics.js, antal fel: 1195 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 832 st)
- Expected X and instead saw X. (totalt 310 st)
- Unnecessary X. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)