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.70 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: 469 ( 1.00 betyg )
- X is defined but never used. (totalt 357 st)
- X is not defined. (totalt 73 st)
- Unexpected console statement. (totalt 33 st)
- X is assigned a value but never used. (totalt 6 st)
- `< script>` in: #51: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #51: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #64: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #64: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #24: 198.1a1313ad127, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #24: 198.1a1313ad127, antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: 280.af057d2a17b, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #25: 280.af057d2a17b, antal fel: 57 ( 1.00 betyg )
- X is defined but never used. (totalt 37 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #26: 144.1648afef45c, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: 144.1648afef45c, antal fel: 68 ( 1.00 betyg )
- X is defined but never used. (totalt 48 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #27: 768.82cab07b512, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: 768.82cab07b512, antal fel: 72 ( 1.00 betyg )
- X is defined but never used. (totalt 52 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #28: common.70f9d21a, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #28: common.70f9d21a, antal fel: 76 ( 1.00 betyg )
- X is defined but never used. (totalt 56 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #29: 500.4639167b28e, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #29: 500.4639167b28e, antal fel: 104 ( 1.00 betyg )
- X is defined but never used. (totalt 84 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #30: gpt.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #30: gpt.js, antal fel: 148 ( 1.00 betyg )
- X is defined but never used. (totalt 125 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #31: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: gtm.js, antal fel: 637 ( 1.00 betyg )
- X is defined but never used. (totalt 511 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #47: pubads-impl.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: pubads-impl.js, antal fel: 755 ( 1.00 betyg )
- X is defined but never used. (totalt 622 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #48: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: uc.js, antal fel: 802 ( 1.00 betyg )
- X is defined but never used. (totalt 642 st)
- X is assigned a value but never used. (totalt 107 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #49: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: js, antal fel: 1182 ( 1.00 betyg )
- X is defined but never used. (totalt 957 st)
- X is assigned a value but never used. (totalt 159 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #52: consent-sdk-2.2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: consent-sdk-2.2, antal fel: 1870 ( 1.00 betyg )
- X is defined but never used. (totalt 1508 st)
- X is assigned a value but never used. (totalt 191 st)
- X is not defined. (totalt 149 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #53: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: cc.js, antal fel: 1873 ( 1.00 betyg )
- X is defined but never used. (totalt 1508 st)
- X is assigned a value but never used. (totalt 191 st)
- X is not defined. (totalt 149 st)
- Unexpected console statement. (totalt 25 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: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3309 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2425 st)
- Expected X and instead saw X. (totalt 781 st)
- Do not access Object.prototype method X from target object. (totalt 70 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 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)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #51: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #51: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script>` in: #64: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #64: 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: #24: 198.1a1313ad127, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #24: 198.1a1313ad127, antal fel: 69 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 46 st)
- Expected an assignment or function call and instead saw an expression. (totalt 21 st)
- Unnecessary escape character: \ . (totalt 2 st)
- `content-type=".*javascript.*"` in: #25: 280.af057d2a17b, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #25: 280.af057d2a17b, antal fel: 605 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 438 st)
- Expected X and instead saw X. (totalt 158 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: 144.1648afef45c, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #26: 144.1648afef45c, antal fel: 677 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 495 st)
- Expected X and instead saw X. (totalt 172 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: 768.82cab07b512, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #27: 768.82cab07b512, antal fel: 761 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 515 st)
- Expected X and instead saw X. (totalt 236 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: common.70f9d21a, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #28: common.70f9d21a, antal fel: 821 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 552 st)
- Expected X and instead saw X. (totalt 259 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: 500.4639167b28e, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #29: 500.4639167b28e, antal fel: 902 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 597 st)
- Expected X and instead saw X. (totalt 295 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: gpt.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #30: gpt.js, antal fel: 1422 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 803 st)
- Expected X and instead saw X. (totalt 550 st)
- Unnecessary escape character: \/. (totalt 51 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #31: gtm.js, antal fel: 2789 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1832 st)
- Expected X and instead saw X. (totalt 771 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary escape character: \/. (totalt 64 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 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)
- `content-type=".*javascript.*"` in: #47: pubads-impl.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #47: pubads-impl.js, antal fel: 5338 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3041 st)
- Expected X and instead saw X. (totalt 2075 st)
- Do not access Object.prototype method X from target object. (totalt 122 st)
- Unnecessary escape character: \/. (totalt 64 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary X. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 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: #48: uc.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #48: uc.js, antal fel: 5690 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3282 st)
- Expected X and instead saw X. (totalt 2177 st)
- Do not access Object.prototype method X from target object. (totalt 122 st)
- Unnecessary escape character: \/. (totalt 66 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 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)
- `content-type=".*javascript.*"` in: #49: js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #49: js, antal fel: 7367 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4599 st)
- Expected X and instead saw X. (totalt 2416 st)
- Do not access Object.prototype method X from target object. (totalt 227 st)
- Unnecessary escape character: \/. (totalt 69 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary X. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: consent-sdk-2.2, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #52: consent-sdk-2.2, antal fel: 8143 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5040 st)
- Expected X and instead saw X. (totalt 2711 st)
- Do not access Object.prototype method X from target object. (totalt 232 st)
- Unnecessary escape character: \/. (totalt 70 st)
- Comparing to itself is potentially pointless. (totalt 26 st)
- Unnecessary X. (totalt 12 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: cc.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #53: cc.js, antal fel: 8143 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5040 st)
- Expected X and instead saw X. (totalt 2711 st)
- Do not access Object.prototype method X from target object. (totalt 232 st)
- Unnecessary escape character: \/. (totalt 70 st)
- Comparing to itself is potentially pointless. (totalt 26 st)
- Unnecessary X. (totalt 12 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \ . (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)