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.61 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 )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 596 ( 1.00 betyg )
- X is not defined. (totalt 570 st)
- X is defined but never used. (totalt 16 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #11: main.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #11: main.js, antal fel: 304 ( 1.00 betyg )
- X is not defined. (totalt 267 st)
- X is defined but never used. (totalt 28 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #12: container-pXxdj, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: container-pXxdj, antal fel: 412 ( 1.00 betyg )
- X is not defined. (totalt 308 st)
- X is defined but never used. (totalt 69 st)
- X is assigned a value but never used. (totalt 21 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #23: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: configs.php, antal fel: 413 ( 1.00 betyg )
- X is not defined. (totalt 309 st)
- X is defined but never used. (totalt 69 st)
- X is assigned a value but never used. (totalt 21 st)
- Unexpected console statement. (totalt 14 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 287 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 197 st)
- Expected X and instead saw X. (totalt 64 st)
- Do not access Object.prototype method X from target object. (totalt 19 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: main.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #11: main.js, antal fel: 1471 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 921 st)
- Expected X and instead saw X. (totalt 414 st)
- Unnecessary escape character: \/. (totalt 71 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \%. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: container-pXxdj, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #12: container-pXxdj, antal fel: 1536 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 921 st)
- Expected X and instead saw X. (totalt 457 st)
- Unnecessary escape character: \/. (totalt 79 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 14 st)
- Unnecessary escape character: \%. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: configs.php, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #23: configs.php, antal fel: 1536 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 921 st)
- Expected X and instead saw X. (totalt 457 st)
- Unnecessary escape character: \/. (totalt 79 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 14 st)
- Unnecessary escape character: \%. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)