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.53 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: 1002 ( 1.00 betyg )
- X is not defined. (totalt 431 st)
- X is defined but never used. (totalt 323 st)
- X is assigned a value but never used. (totalt 165 st)
- Unexpected console statement. (totalt 83 st)
- `content-type=".*javascript.*"` in: #32: p.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #32: p.js, antal fel: 2 ( 4.60 betyg )
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: 9146.4c99421877, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #33: 9146.4c99421877, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: about-f9199a2ff, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: about-f9199a2ff, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: 3109-5525a01280, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: 3109-5525a01280, antal fel: 12 ( 2.60 betyg )
- X is defined but never used. (totalt 6 st)
- X is assigned a value but never used. (totalt 4 st)
- Unexpected console statement. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: search-dd479a3f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: search-dd479a3f, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 6 st)
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 2 st)
- Unexpected console statement. (totalt 1 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: 29 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 10452 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5444 st)
- Expected X and instead saw X. (totalt 4790 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Comparing to itself is potentially pointless. (totalt 25 st)
- X is not modified in this loop. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary X. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Redundant use of `await` on a return value. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Async method X has no X expression. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unsafe usage of ReturnStatement. (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)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: p.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #32: p.js, antal fel: 8 ( 3.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- `content-type=".*javascript.*"` in: #33: 9146.4c99421877, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #33: 9146.4c99421877, antal fel: 11 ( 2.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #43: about-f9199a2ff, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #43: about-f9199a2ff, antal fel: 13 ( 2.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #54: 3109-5525a01280, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #54: 3109-5525a01280, antal fel: 41 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- Expected X and instead saw X. (totalt 13 st)
- `content-type=".*javascript.*"` in: #55: search-dd479a3f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #55: search-dd479a3f, antal fel: 43 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- Expected X and instead saw X. (totalt 13 st)