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.63 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 9 ( 3.20 betyg )
- X is not defined. (totalt 9 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 490 ( 1.00 betyg )
- X is defined but never used. (totalt 338 st)
- X is not defined. (totalt 81 st)
- X is assigned a value but never used. (totalt 42 st)
- Unexpected console statement. (totalt 29 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 )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2290 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1532 st)
- Expected X and instead saw X. (totalt 708 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \=. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (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)
- Async function X has no X expression. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #5: integration, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #5: integration, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #14: js, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: sormlandstrafik, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #21: sormlandstrafik, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: browsealoud.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #23: browsealoud.js, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: 155.4755a93fc50, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #24: 155.4755a93fc50, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: 143.4755a93fc50, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #25: 143.4755a93fc50, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: 115.4755a93fc50, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #26: 115.4755a93fc50, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: common.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #27: common.js, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: util.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #28: util.js, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)