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.41 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: 55 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 13 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 6 st)
- `< script>` in: #19: TnpOaFpHOTJaVzg, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #19: TnpOaFpHOTJaVzg, antal fel: 67 ( 1.00 betyg )
- X is not defined. (totalt 46 st)
- X is defined but never used. (totalt 16 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #18: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 565 ( 1.00 betyg )
- X is defined but never used. (totalt 459 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: gsap.00541c46.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: gsap.00541c46.j, antal fel: 595 ( 1.00 betyg )
- X is defined but never used. (totalt 483 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #32: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: analytics.js, antal fel: 625 ( 1.00 betyg )
- X is defined but never used. (totalt 510 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #38: jquery-ui.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: jquery-ui.min.j, antal fel: 642 ( 1.00 betyg )
- X is defined but never used. (totalt 521 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #39: jquery.datetime, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: jquery.datetime, antal fel: 651 ( 1.00 betyg )
- X is defined but never used. (totalt 522 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #40: leaderboard.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: leaderboard.js, antal fel: 704 ( 1.00 betyg )
- X is defined but never used. (totalt 523 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 83 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #41: bootstrap.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: bootstrap.min.j, antal fel: 717 ( 1.00 betyg )
- X is defined but never used. (totalt 523 st)
- X is not defined. (totalt 95 st)
- X is assigned a value but never used. (totalt 90 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #42: theme.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: theme.js, antal fel: 729 ( 1.00 betyg )
- X is defined but never used. (totalt 523 st)
- X is not defined. (totalt 107 st)
- X is assigned a value but never used. (totalt 90 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #43: modernizr.custo, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: modernizr.custo, antal fel: 735 ( 1.00 betyg )
- X is defined but never used. (totalt 525 st)
- X is not defined. (totalt 110 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #44: require.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: require.js, antal fel: 737 ( 1.00 betyg )
- X is defined but never used. (totalt 527 st)
- X is not defined. (totalt 110 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #45: jquery.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: jquery.js, antal fel: 759 ( 1.00 betyg )
- X is defined but never used. (totalt 547 st)
- X is not defined. (totalt 112 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #48: amd-app.8fdf514, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: amd-app.8fdf514, antal fel: 5901 ( 1.00 betyg )
- X is not defined. (totalt 4718 st)
- X is defined but never used. (totalt 725 st)
- Unexpected console statement. (totalt 305 st)
- X is assigned a value but never used. (totalt 153 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 )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 483 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 343 st)
- Expected X and instead saw X. (totalt 129 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #19: TnpOaFpHOTJaVzg, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #19: TnpOaFpHOTJaVzg, antal fel: 14 ( 2.20 betyg )
- Expected X and instead saw X. (totalt 12 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 1180 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 831 st)
- Expected X and instead saw X. (totalt 236 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 7 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: gsap.00541c46.j, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #31: gsap.00541c46.j, antal fel: 1528 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1142 st)
- Expected X and instead saw X. (totalt 270 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: analytics.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #32: analytics.js, antal fel: 1958 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1376 st)
- Expected X and instead saw X. (totalt 448 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: jquery-ui.min.j, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #38: jquery-ui.min.j, antal fel: 2660 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1940 st)
- Expected X and instead saw X. (totalt 544 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary X. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 11 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: jquery.datetime, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #39: jquery.datetime, antal fel: 2800 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2040 st)
- Expected X and instead saw X. (totalt 565 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary X. (totalt 12 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- `content-type=".*javascript.*"` in: #40: leaderboard.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #40: leaderboard.js, antal fel: 2806 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2040 st)
- Expected X and instead saw X. (totalt 571 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary X. (totalt 12 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- `content-type=".*javascript.*"` in: #41: bootstrap.min.j, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #41: bootstrap.min.j, antal fel: 3007 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2163 st)
- Expected X and instead saw X. (totalt 647 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 13 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- `content-type=".*javascript.*"` in: #42: theme.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #42: theme.js, antal fel: 3008 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2163 st)
- Expected X and instead saw X. (totalt 648 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 13 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- `content-type=".*javascript.*"` in: #43: modernizr.custo, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #43: modernizr.custo, antal fel: 3072 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2197 st)
- Expected X and instead saw X. (totalt 674 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 13 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: require.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: require.js, antal fel: 3077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2197 st)
- Expected X and instead saw X. (totalt 674 st)
- Do not access Object.prototype method X from target object. (totalt 112 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (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)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: jquery.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: jquery.js, antal fel: 3166 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2204 st)
- Expected X and instead saw X. (totalt 745 st)
- Do not access Object.prototype method X from target object. (totalt 113 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Unnecessary X. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 14 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (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)
- `content-type=".*javascript.*"` in: #48: amd-app.8fdf514, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: amd-app.8fdf514, antal fel: 4644 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3120 st)
- Expected X and instead saw X. (totalt 1292 st)
- Do not access Object.prototype method X from target object. (totalt 113 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 17 st)
- Unnecessary X. (totalt 15 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \=. (totalt 3 st)
- eval can be harmful. (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)