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.43 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: 128 ( 1.00 betyg )
- X is defined but never used. (totalt 82 st)
- Unexpected console statement. (totalt 23 st)
- X is assigned a value but never used. (totalt 15 st)
- X is not defined. (totalt 8 st)
- `< script>` in: #78: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #78: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: gtm.js, antal fel: 523 ( 1.00 betyg )
- X is defined but never used. (totalt 425 st)
- X is assigned a value but never used. (totalt 80 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: 8624.accaff2534, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: 8624.accaff2534, antal fel: 544 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 83 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: 7008.4e18329b5b, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: 7008.4e18329b5b, antal fel: 546 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: 1496.f17b1536c5, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: 1496.f17b1536c5, antal fel: 546 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: 711.605ee356f08, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: 711.605ee356f08, antal fel: 546 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: 4146.1af7c0b822, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: 4146.1af7c0b822, antal fel: 546 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: reactPlayerPrev, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: reactPlayerPrev, antal fel: 547 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: 295.65b1633af61, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: 295.65b1633af61, antal fel: 547 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: uc.js, antal fel: 594 ( 1.00 betyg )
- X is defined but never used. (totalt 464 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #75: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: js, antal fel: 996 ( 1.00 betyg )
- X is defined but never used. (totalt 789 st)
- X is assigned a value but never used. (totalt 166 st)
- X is not defined. (totalt 29 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #76: embed, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #76: embed, antal fel: 997 ( 1.00 betyg )
- X is defined but never used. (totalt 789 st)
- X is assigned a value but never used. (totalt 166 st)
- X is not defined. (totalt 29 st)
- Unexpected console statement. (totalt 12 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: cc.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #79: cc.js, antal fel: 1025 ( 1.00 betyg )
- X is defined but never used. (totalt 801 st)
- X is assigned a value but never used. (totalt 172 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 13 st)
- Parsing error: Unexpected token : (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: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2609 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1622 st)
- Expected X and instead saw X. (totalt 914 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Redundant use of `await` on a return value. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \ . (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `< script>` in: #78: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #78: 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)
- `content-type=".*javascript.*"` in: #54: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #54: gtm.js, antal fel: 1179 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 841 st)
- Expected X and instead saw X. (totalt 203 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- Unnecessary escape character: \/. (totalt 35 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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: #55: 8624.accaff2534, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #55: 8624.accaff2534, antal fel: 1598 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1178 st)
- Expected X and instead saw X. (totalt 271 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 37 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)
- Unnecessary escape character: \,. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: 7008.4e18329b5b, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #56: 7008.4e18329b5b, antal fel: 1607 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1184 st)
- Expected X and instead saw X. (totalt 274 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 37 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)
- Unnecessary escape character: \,. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: 1496.f17b1536c5, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #57: 1496.f17b1536c5, antal fel: 1612 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1189 st)
- Expected X and instead saw X. (totalt 274 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 37 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)
- Unnecessary escape character: \,. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: 711.605ee356f08, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #58: 711.605ee356f08, antal fel: 1629 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1195 st)
- Expected X and instead saw X. (totalt 285 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 37 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)
- Unnecessary escape character: \,. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: 4146.1af7c0b822, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #59: 4146.1af7c0b822, antal fel: 1639 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1202 st)
- Expected X and instead saw X. (totalt 288 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 37 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)
- Unnecessary escape character: \,. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: reactPlayerPrev, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #61: reactPlayerPrev, antal fel: 1662 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1214 st)
- Expected X and instead saw X. (totalt 299 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 37 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)
- Unnecessary escape character: \,. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: 295.65b1633af61, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #62: 295.65b1633af61, antal fel: 1663 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1215 st)
- Expected X and instead saw X. (totalt 299 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 37 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)
- Unnecessary escape character: \,. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: uc.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #74: uc.js, antal fel: 2015 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1456 st)
- Expected X and instead saw X. (totalt 401 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 39 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #75: js, antal fel: 3625 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2724 st)
- Expected X and instead saw X. (totalt 633 st)
- Do not access Object.prototype method X from target object. (totalt 186 st)
- Unnecessary escape character: \/. (totalt 42 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: embed, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #76: embed, antal fel: 3626 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2724 st)
- Expected X and instead saw X. (totalt 633 st)
- Do not access Object.prototype method X from target object. (totalt 186 st)
- Unnecessary escape character: \/. (totalt 42 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: cc.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #79: cc.js, antal fel: 3973 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3030 st)
- Expected X and instead saw X. (totalt 669 st)
- Do not access Object.prototype method X from target object. (totalt 186 st)
- Unnecessary escape character: \/. (totalt 42 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)