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.81 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 152 ( 1.00 betyg )
- X is not defined. (totalt 91 st)
- X is defined but never used. (totalt 51 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 3 st)
- Definition for rule X was not found. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: curator.embed.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: curator.embed.j, antal fel: 72 ( 1.00 betyg )
- X is defined but never used. (totalt 50 st)
- Unexpected console statement. (totalt 20 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: sdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: sdk.js, antal fel: 72 ( 1.00 betyg )
- X is defined but never used. (totalt 50 st)
- Unexpected console statement. (totalt 20 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: lazysizes.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: lazysizes.min.j, antal fel: 73 ( 1.00 betyg )
- X is defined but never used. (totalt 51 st)
- Unexpected console statement. (totalt 20 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: sdk.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #80: sdk.js, antal fel: 74 ( 1.00 betyg )
- X is defined but never used. (totalt 51 st)
- Unexpected console statement. (totalt 20 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 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: 12 ( 2.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 718 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 342 st)
- Expected an assignment or function call and instead saw an expression. (totalt 335 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Definition for rule X was not found. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: 872d954d-0268-4, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #73: 872d954d-0268-4, antal fel: 5 ( 4.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- `content-type=".*javascript.*"` in: #77: curator.embed.j, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #77: curator.embed.j, antal fel: 1152 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 684 st)
- Expected X and instead saw X. (totalt 425 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: sdk.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #78: sdk.js, antal fel: 1159 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 687 st)
- Expected X and instead saw X. (totalt 425 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 9 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: lazysizes.min.j, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #79: lazysizes.min.j, antal fel: 1175 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 690 st)
- Expected X and instead saw X. (totalt 438 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 9 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: sdk.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #80: sdk.js, antal fel: 1176 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 690 st)
- Expected X and instead saw X. (totalt 438 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 9 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)