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.19 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: ubuntu-help, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: ubuntu-help, antal fel: 5 ( 4.00 betyg )
- X is not defined. (totalt 3 st)
- X is defined but never used. (totalt 2 st)
- `< script src="...">` in: #1: ubuntu-help, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #1: ubuntu-help, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 9 st)
- X is not defined. (totalt 4 st)
- `content-type=".*javascript.*"` in: #3: highlight.pack., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #3: highlight.pack., antal fel: 14 ( 2.20 betyg )
- X is defined but never used. (totalt 10 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #4: yelp.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #4: yelp.js, antal fel: 28 ( 1.00 betyg )
- X is not defined. (totalt 12 st)
- X is defined but never used. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: ubuntu-help, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: ubuntu-help, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #1: ubuntu-help, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #1: ubuntu-help, antal fel: 199 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 189 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- `content-type=".*javascript.*"` in: #3: highlight.pack., antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #3: highlight.pack., antal fel: 119 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 68 st)
- Expected X and instead saw X. (totalt 31 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #4: yelp.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #4: yelp.js, antal fel: 150 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 68 st)
- Expected X and instead saw X. (totalt 62 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)