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: 2.89 av 5
- JS är dålig.
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: 2200 ( 1.00 betyg )
- X is defined but never used. (totalt 1199 st)
- X is assigned a value but never used. (totalt 507 st)
- X is not defined. (totalt 342 st)
- Unexpected console statement. (totalt 152 st)
- `content-type=".*javascript.*"` in: #24: 66368-895fe5696, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #24: 66368-895fe5696, antal fel: 7 ( 3.60 betyg )
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #25: 90615-1afff015c, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #25: 90615-1afff015c, antal fel: 10 ( 3.00 betyg )
- X is assigned a value but never used. (totalt 7 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #26: 97108-f2e336826, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #26: 97108-f2e336826, antal fel: 20 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 17 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #28: async-gdpr-cook, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #28: async-gdpr-cook, antal fel: 21 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 18 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #41: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #41: js, antal fel: 457 ( 1.00 betyg )
- X is defined but never used. (totalt 348 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #42: analytics.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #42: analytics.js, antal fel: 487 ( 1.00 betyg )
- X is defined but never used. (totalt 375 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 21 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: 32 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 10162 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6697 st)
- Expected X and instead saw X. (totalt 2994 st)
- Do not access Object.prototype method X from target object. (totalt 222 st)
- Comparing to itself is potentially pointless. (totalt 58 st)
- X is not modified in this loop. (totalt 26 st)
- Unnecessary X. (totalt 25 st)
- The Function constructor is eval. (totalt 21 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Unnecessary escape character: \%. (totalt 8 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \:. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 4 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)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 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)
- `content-type=".*javascript.*"` in: #24: 66368-895fe5696, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #24: 66368-895fe5696, antal fel: 17 ( 1.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9 st)
- Expected X and instead saw X. (totalt 8 st)
- `content-type=".*javascript.*"` in: #25: 90615-1afff015c, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #25: 90615-1afff015c, antal fel: 44 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 23 st)
- Expected X and instead saw X. (totalt 21 st)
- `content-type=".*javascript.*"` in: #26: 97108-f2e336826, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #26: 97108-f2e336826, antal fel: 64 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 40 st)
- Expected X and instead saw X. (totalt 24 st)
- `content-type=".*javascript.*"` in: #28: async-gdpr-cook, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #28: async-gdpr-cook, antal fel: 128 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 77 st)
- Expected X and instead saw X. (totalt 48 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #41: js, antal fel: 1686 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1297 st)
- Expected X and instead saw X. (totalt 279 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: analytics.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #42: analytics.js, antal fel: 2116 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1531 st)
- Expected X and instead saw X. (totalt 457 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary X. (totalt 1 st)