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.48 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 9 ( 3.20 betyg )
- X is not defined. (totalt 9 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 115 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- Unexpected console statement. (totalt 24 st)
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #29: bootstrap.min.j, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #29: bootstrap.min.j, antal fel: 13 ( 2.40 betyg )
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: jquery.scrollTo, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #30: jquery.scrollTo, antal fel: 15 ( 2.00 betyg )
- X is not defined. (totalt 13 st)
- X is assigned a value but never used. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: jquery.nav.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #31: jquery.nav.js, antal fel: 17 ( 1.60 betyg )
- X is not defined. (totalt 14 st)
- X is defined but never used. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: jquery.knob.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: jquery.knob.js, antal fel: 25 ( 1.00 betyg )
- X is not defined. (totalt 16 st)
- X is defined but never used. (totalt 8 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: owl.carousel.mi, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #33: owl.carousel.mi, antal fel: 25 ( 1.00 betyg )
- X is not defined. (totalt 16 st)
- X is defined but never used. (totalt 8 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: smoothscroll.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #34: smoothscroll.js, antal fel: 29 ( 1.00 betyg )
- X is not defined. (totalt 19 st)
- X is defined but never used. (totalt 9 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: jquery.vegas.mi, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: jquery.vegas.mi, antal fel: 30 ( 1.00 betyg )
- X is not defined. (totalt 20 st)
- X is defined but never used. (totalt 9 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: zerif.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: zerif.js, antal fel: 61 ( 1.00 betyg )
- X is not defined. (totalt 50 st)
- X is defined but never used. (totalt 10 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: analytics.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #38: analytics.js, antal fel: 91 ( 1.00 betyg )
- X is not defined. (totalt 53 st)
- X is defined but never used. (totalt 37 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #54: js, antal fel: 594 ( 1.00 betyg )
- X is defined but never used. (totalt 434 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 69 st)
- `content-type=".*javascript.*"` in: #56: common.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #56: common.js, antal fel: 606 ( 1.00 betyg )
- X is defined but never used. (totalt 445 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 70 st)
- `content-type=".*javascript.*"` in: #57: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: util.js, antal fel: 625 ( 1.00 betyg )
- X is defined but never used. (totalt 460 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 71 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: map.js, antal fel: 638 ( 1.00 betyg )
- X is defined but never used. (totalt 467 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 72 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #59: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: marker.js, antal fel: 643 ( 1.00 betyg )
- X is defined but never used. (totalt 467 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 73 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #61: controls.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: controls.js, antal fel: 644 ( 1.00 betyg )
- X is defined but never used. (totalt 467 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 74 st)
- Unexpected console statement. (totalt 9 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1563 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 926 st)
- Expected X and instead saw X. (totalt 353 st)
- X is assigned to itself. (totalt 218 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (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)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: bootstrap.min.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #29: bootstrap.min.j, antal fel: 191 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 113 st)
- Expected X and instead saw X. (totalt 76 st)
- Unnecessary X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #30: jquery.scrollTo, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #30: jquery.scrollTo, antal fel: 203 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 113 st)
- Expected X and instead saw X. (totalt 88 st)
- Unnecessary X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #31: jquery.nav.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #31: jquery.nav.js, antal fel: 203 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 113 st)
- Expected X and instead saw X. (totalt 88 st)
- Unnecessary X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: jquery.knob.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: jquery.knob.js, antal fel: 225 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 127 st)
- Expected X and instead saw X. (totalt 95 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: owl.carousel.mi, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #33: owl.carousel.mi, antal fel: 226 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 127 st)
- Expected X and instead saw X. (totalt 95 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: smoothscroll.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #34: smoothscroll.js, antal fel: 230 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 128 st)
- Expected X and instead saw X. (totalt 98 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: jquery.vegas.mi, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #35: jquery.vegas.mi, antal fel: 252 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 137 st)
- Expected X and instead saw X. (totalt 111 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: zerif.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: zerif.js, antal fel: 252 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 137 st)
- Expected X and instead saw X. (totalt 111 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: analytics.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #38: analytics.js, antal fel: 682 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 371 st)
- Expected X and instead saw X. (totalt 289 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #54: js, antal fel: 2060 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1436 st)
- Expected X and instead saw X. (totalt 507 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: common.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #56: common.js, antal fel: 2497 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1778 st)
- Expected X and instead saw X. (totalt 591 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \?. (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)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: util.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #57: util.js, antal fel: 3863 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2407 st)
- Expected X and instead saw X. (totalt 1304 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- X is assigned to itself. (totalt 10 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: map.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #58: map.js, antal fel: 4175 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2665 st)
- Expected X and instead saw X. (totalt 1346 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary X. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: marker.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #59: marker.js, antal fel: 4504 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2948 st)
- Expected X and instead saw X. (totalt 1387 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- X is assigned to itself. (totalt 16 st)
- Unnecessary X. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: controls.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #61: controls.js, antal fel: 4838 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3223 st)
- Expected X and instead saw X. (totalt 1444 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- X is assigned to itself. (totalt 16 st)
- Unnecessary X. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Async function has no X expression. (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)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (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)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)