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.17 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: 869 ( 1.00 betyg )
- X is not defined. (totalt 571 st)
- X is defined but never used. (totalt 250 st)
- X is assigned a value but never used. (totalt 25 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #55: sdk.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #55: sdk.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: fbevents.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #56: fbevents.js, antal fel: 648 ( 1.00 betyg )
- X is defined but never used. (totalt 629 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 6 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: 613550902562118, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #58: 613550902562118, antal fel: 796 ( 1.00 betyg )
- X is defined but never used. (totalt 755 st)
- Unexpected console statement. (totalt 28 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 5 st)
- Parsing error: X in strict mode (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: 26 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2530 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1238 st)
- Expected X and instead saw X. (totalt 906 st)
- Unnecessary escape character: \". (totalt 124 st)
- Unnecessary escape character: \/. (totalt 51 st)
- Unnecessary escape character: \< . (totalt 50 st)
- Unnecessary escape character: \>. (totalt 50 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Comparing to itself is potentially pointless. (totalt 27 st)
- The Function constructor is eval. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \'. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: sdk.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #49: 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: #55: sdk.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #55: 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: #56: fbevents.js, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #56: fbevents.js, antal fel: 1391 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 616 st)
- Expected X and instead saw X. (totalt 600 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: 613550902562118, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #58: 613550902562118, antal fel: 1753 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 828 st)
- Expected X and instead saw X. (totalt 745 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)