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.03 av 5
- JS är ok.
Webbstandard
- `< script>` in: #3: felsida-404.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #3: felsida-404.htm, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token ! (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: jquery.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #11: jquery.js, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #12: envision.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #12: envision.js, antal fel: 20 ( 1.00 betyg )
- X is defined but never used. (totalt 16 st)
- X is not defined. (totalt 2 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #13: utils.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #13: utils.js, antal fel: 40 ( 1.00 betyg )
- X is defined but never used. (totalt 33 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #14: portlets.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #14: portlets.js, antal fel: 171 ( 1.00 betyg )
- X is not defined. (totalt 123 st)
- X is defined but never used. (totalt 46 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #15: sv-template-ass, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #15: sv-template-ass, antal fel: 199 ( 1.00 betyg )
- X is not defined. (totalt 142 st)
- X is defined but never used. (totalt 55 st)
- Unexpected console statement. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #3: felsida-404.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #3: felsida-404.htm, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token ! (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: jquery.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #11: jquery.js, antal fel: 402 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 229 st)
- Expected X and instead saw X. (totalt 164 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: envision.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #12: envision.js, antal fel: 705 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 474 st)
- Expected X and instead saw X. (totalt 202 st)
- Unnecessary X. (totalt 10 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is not modified in this loop. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: utils.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #13: utils.js, antal fel: 960 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 601 st)
- Expected X and instead saw X. (totalt 307 st)
- Unnecessary X. (totalt 10 st)
- Async arrow function has no X expression. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- The Function constructor is eval. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: portlets.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #14: portlets.js, antal fel: 1333 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 906 st)
- Expected X and instead saw X. (totalt 355 st)
- Unnecessary X. (totalt 12 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- The Function constructor is eval. (totalt 7 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: sv-template-ass, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #15: sv-template-ass, antal fel: 1388 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 955 st)
- Expected X and instead saw X. (totalt 361 st)
- Unnecessary X. (totalt 12 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- The Function constructor is eval. (totalt 7 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)