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.63 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 718 ( 1.00 betyg )
- X is defined but never used. (totalt 453 st)
- X is assigned a value but never used. (totalt 143 st)
- Unexpected console statement. (totalt 71 st)
- X is not defined. (totalt 51 st)
- `content-type=".*javascript.*"` in: #7: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #7: gtm.js, antal fel: 565 ( 1.00 betyg )
- X is defined but never used. (totalt 461 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: js, antal fel: 1030 ( 1.00 betyg )
- X is defined but never used. (totalt 832 st)
- X is assigned a value but never used. (totalt 164 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: otSDKStub.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #9: otSDKStub.js, antal fel: 1036 ( 1.00 betyg )
- X is defined but never used. (totalt 836 st)
- X is assigned a value but never used. (totalt 165 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #35: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: otBannerSdk.js, antal fel: 1099 ( 1.00 betyg )
- X is defined but never used. (totalt 862 st)
- X is assigned a value but never used. (totalt 165 st)
- Unexpected console statement. (totalt 39 st)
- X is not defined. (totalt 33 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 37 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 14127 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8977 st)
- Expected X and instead saw X. (totalt 4723 st)
- Redundant use of `await` on a return value. (totalt 83 st)
- Do not access Object.prototype method X from target object. (totalt 71 st)
- Unnecessary escape character: \.. (totalt 40 st)
- Unnecessary escape character: \/. (totalt 32 st)
- Comparing to itself is potentially pointless. (totalt 25 st)
- X is not modified in this loop. (totalt 24 st)
- Unnecessary X. (totalt 20 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 9 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \}. (totalt 7 st)
- Async arrow function has no X expression. (totalt 7 st)
- Unnecessary escape character: \{. (totalt 6 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Async method X has no X expression. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \^. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \|. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \!. (totalt 4 st)
- Unnecessary escape character: \'. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Async function X has no X expression. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \ . (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #7: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #7: gtm.js, antal fel: 1058 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 754 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 74 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #8: js, antal fel: 2479 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1855 st)
- Expected X and instead saw X. (totalt 417 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 26 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: otSDKStub.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #9: otSDKStub.js, antal fel: 2549 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1913 st)
- Expected X and instead saw X. (totalt 429 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 26 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: otBannerSdk.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #35: otBannerSdk.js, antal fel: 3626 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2832 st)
- Expected X and instead saw X. (totalt 579 st)
- Do not access Object.prototype method X from target object. (totalt 164 st)
- Unnecessary escape character: \/. (totalt 26 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (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)