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.43 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 window (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 68 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #4: index.49a6c71c., antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #4: index.49a6c71c., antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #5: BlocksRender.26, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #5: BlocksRender.26, antal fel: 62 ( 1.00 betyg )
- X is defined but never used. (totalt 58 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: -...slug-.4dfdd, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: -...slug-.4dfdd, antal fel: 65 ( 1.00 betyg )
- X is defined but never used. (totalt 61 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (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 window (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 9 ( 3.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 962 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 547 st)
- Expected X and instead saw X. (totalt 315 st)
- Unnecessary escape character: \-. (totalt 92 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #4: index.49a6c71c., antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #4: index.49a6c71c., antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #5: BlocksRender.26, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #5: BlocksRender.26, antal fel: 53 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 32 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: -...slug-.4dfdd, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: -...slug-.4dfdd, antal fel: 58 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 32 st)
- Expected X and instead saw X. (totalt 25 st)
- Unnecessary escape character: \+. (totalt 1 st)