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.07 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: 602 ( 1.00 betyg )
- X is defined but never used. (totalt 476 st)
- X is not defined. (totalt 66 st)
- X is assigned a value but never used. (totalt 56 st)
- Unexpected console statement. (totalt 4 st)
- `< script>` in: #38: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #38: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #38: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #38: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #39: zrt-lookup.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #39: zrt-lookup.html, antal fel: 16 ( 1.80 betyg )
- X is defined but never used. (totalt 16 st)
- `< script>` in: #50: bframe, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #50: bframe, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #50: bframe, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #50: bframe, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #51: runner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #51: runner.html, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 3 st)
- `< script>` in: #52: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #52: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #27: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: gtm.js, antal fel: 599 ( 1.00 betyg )
- X is defined but never used. (totalt 492 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #37: show-ads-impl-w, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: show-ads-impl-w, antal fel: 767 ( 1.00 betyg )
- X is defined but never used. (totalt 654 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: sodar2.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: sodar2.js, antal fel: 770 ( 1.00 betyg )
- X is defined but never used. (totalt 657 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: MOCvCt03myXfwI-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: MOCvCt03myXfwI-, antal fel: 770 ( 1.00 betyg )
- X is defined but never used. (totalt 657 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (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: 28 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3804 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2277 st)
- Expected X and instead saw X. (totalt 1283 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Unnecessary escape character: \/. (totalt 46 st)
- Comparing to itself is potentially pointless. (totalt 25 st)
- Unnecessary X. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `< script src="...">` in: #38: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #38: anchor, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `< script>` in: #39: zrt-lookup.html, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #39: zrt-lookup.html, antal fel: 73 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 42 st)
- Expected X and instead saw X. (totalt 30 st)
- Unnecessary X. (totalt 1 st)
- `< script src="...">` in: #50: bframe, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #50: bframe, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `< script>` in: #51: runner.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #51: runner.html, antal fel: 68 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 38 st)
- Expected X and instead saw X. (totalt 30 st)
- `< script>` in: #52: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #52: sw-iframe.html, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #27: gtm.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #27: gtm.js, antal fel: 997 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 716 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 72 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: show-ads-impl-w, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #37: show-ads-impl-w, antal fel: 3274 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1927 st)
- Expected X and instead saw X. (totalt 1225 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary X. (totalt 8 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: sodar2.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #49: sodar2.js, antal fel: 3362 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1970 st)
- Expected X and instead saw X. (totalt 1269 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary X. (totalt 8 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: MOCvCt03myXfwI-, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #53: MOCvCt03myXfwI-, antal fel: 3379 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1975 st)
- Expected X and instead saw X. (totalt 1280 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary X. (totalt 8 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- eval can be harmful. (totalt 1 st)