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.51 av 5
- JS är ok.
Webbstandard
- `< script>` in: #30: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #30: , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #30: , antal fel: 1145 ( 1.00 betyg )
- X is not defined. (totalt 870 st)
- X is defined but never used. (totalt 193 st)
- Unexpected console statement. (totalt 42 st)
- X is assigned a value but never used. (totalt 39 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #172: sdk.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #172: sdk.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #184: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #184: slides.c0029640, antal fel: 4 ( 4.20 betyg )
- X is not defined. (totalt 3 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #185: toggle.a6177e2e, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #185: toggle.a6177e2e, antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 9 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #186: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #186: load-more.8b46f, antal fel: 15 ( 2.00 betyg )
- X is not defined. (totalt 14 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #187: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #187: posts.aec592653, antal fel: 25 ( 1.00 betyg )
- X is not defined. (totalt 24 st)
- Parsing error: X in strict mode (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #30: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #30: , antal grupperade fel: 28 ( 1.00 betyg )
- `< script src="...">` in: #30: , antal fel: 2950 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1847 st)
- Expected X and instead saw X. (totalt 966 st)
- Unexpected string concatenation of literals. (totalt 34 st)
- Do not access Object.prototype method X from target object. (totalt 24 st)
- Async method X has no X expression. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Async arrow function has no X expression. (totalt 8 st)
- The Function constructor is eval. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unexpected negating the left operand of X operator. (totalt 2 st)
- Unnecessary X. (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 not modified in this loop. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #170: sdk.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #170: sdk.js, antal fel: 7 ( 3.60 betyg )
- Unnecessary escape character: \/. (totalt 4 st)
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `content-type=".*javascript.*"` in: #172: sdk.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #172: sdk.js, antal fel: 8 ( 3.40 betyg )
- Unnecessary escape character: \/. (totalt 4 st)
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #184: slides.c0029640, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #184: slides.c0029640, antal fel: 18 ( 1.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #185: toggle.a6177e2e, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #185: toggle.a6177e2e, antal fel: 30 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 25 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #186: load-more.8b46f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #186: load-more.8b46f, antal fel: 44 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 39 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #187: posts.aec592653, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #187: posts.aec592653, antal fel: 53 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 48 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Parsing error: X in strict mode (totalt 1 st)