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.32 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: 67 ( 1.00 betyg )
- X is not defined. (totalt 54 st)
- X is defined but never used. (totalt 10 st)
- Unexpected console statement. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #26: wide, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #26: wide, antal fel: 16 ( 1.80 betyg )
- X is not defined. (totalt 15 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #26: wide, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #26: wide, antal fel: 99 ( 1.00 betyg )
- X is not defined. (totalt 55 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #29: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #29: js, antal fel: 460 ( 1.00 betyg )
- X is defined but never used. (totalt 371 st)
- X is assigned a value but never used. (totalt 77 st)
- X is not defined. (totalt 12 st)
- `content-type=".*javascript.*"` in: #41: browser.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #41: browser.js, antal fel: 950 ( 1.00 betyg )
- X is defined but never used. (totalt 858 st)
- X is assigned a value but never used. (totalt 77 st)
- X is not defined. (totalt 15 st)
- `content-type=".*javascript.*"` in: #42: Template.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #42: Template.js, antal fel: 951 ( 1.00 betyg )
- X is defined but never used. (totalt 859 st)
- X is assigned a value but never used. (totalt 77 st)
- X is not defined. (totalt 15 st)
- `content-type=".*javascript.*"` in: #43: l20n.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #43: l20n.js, antal fel: 951 ( 1.00 betyg )
- X is defined but never used. (totalt 859 st)
- X is assigned a value but never used. (totalt 77 st)
- X is not defined. (totalt 15 st)
- `content-type=".*javascript.*"` in: #48: packery.pkgd-1., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: packery.pkgd-1., antal fel: 955 ( 1.00 betyg )
- X is defined but never used. (totalt 861 st)
- X is assigned a value but never used. (totalt 78 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: jquery.maskedin, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: jquery.maskedin, antal fel: 958 ( 1.00 betyg )
- X is defined but never used. (totalt 861 st)
- X is assigned a value but never used. (totalt 78 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: utils.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: utils.js, antal fel: 1050 ( 1.00 betyg )
- X is defined but never used. (totalt 865 st)
- X is not defined. (totalt 103 st)
- X is assigned a value but never used. (totalt 81 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: embeddableModel, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: embeddableModel, antal fel: 1054 ( 1.00 betyg )
- X is defined but never used. (totalt 865 st)
- X is not defined. (totalt 107 st)
- X is assigned a value but never used. (totalt 81 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: embeddable-comp, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #59: embeddable-comp, antal fel: 1055 ( 1.00 betyg )
- X is defined but never used. (totalt 865 st)
- X is not defined. (totalt 107 st)
- X is assigned a value but never used. (totalt 81 st)
- Unexpected console statement. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: embeddablePage., antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #60: embeddablePage., antal fel: 1105 ( 1.00 betyg )
- X is defined but never used. (totalt 867 st)
- X is not defined. (totalt 146 st)
- X is assigned a value but never used. (totalt 87 st)
- Unexpected console statement. (totalt 4 st)
- Parsing error: X in strict mode (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: 9 ( 3.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 951 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 694 st)
- Expected X and instead saw X. (totalt 247 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `< script src="...">` in: #26: wide, antal grupperade fel: 24 ( 1.00 betyg )
- `< script src="...">` in: #26: wide, antal fel: 2132 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1271 st)
- Expected X and instead saw X. (totalt 730 st)
- Unnecessary escape character: \-. (totalt 28 st)
- Comparing to itself is potentially pointless. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Unnecessary escape character: \[. (totalt 14 st)
- Unnecessary X. (totalt 12 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \^. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (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 URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #29: js, antal fel: 1422 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1102 st)
- Expected X and instead saw X. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (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: #41: browser.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #41: browser.js, antal fel: 1829 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1281 st)
- Expected X and instead saw X. (totalt 421 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (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)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: Template.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #42: Template.js, antal fel: 1829 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1281 st)
- Expected X and instead saw X. (totalt 421 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (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)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: l20n.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #43: l20n.js, antal fel: 1839 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1281 st)
- Expected X and instead saw X. (totalt 421 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 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)
- `content-type=".*javascript.*"` in: #48: packery.pkgd-1., antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #48: packery.pkgd-1., antal fel: 1847 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1281 st)
- Expected X and instead saw X. (totalt 421 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 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)
- `content-type=".*javascript.*"` in: #49: jquery.maskedin, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #49: jquery.maskedin, antal fel: 1874 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1299 st)
- Expected X and instead saw X. (totalt 430 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 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)
- `content-type=".*javascript.*"` in: #57: utils.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #57: utils.js, antal fel: 2041 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1299 st)
- Expected X and instead saw X. (totalt 595 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 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)
- `content-type=".*javascript.*"` in: #58: embeddableModel, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #58: embeddableModel, antal fel: 2041 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1299 st)
- Expected X and instead saw X. (totalt 595 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 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)
- `content-type=".*javascript.*"` in: #59: embeddable-comp, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #59: embeddable-comp, antal fel: 2042 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1299 st)
- Expected X and instead saw X. (totalt 595 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 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)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: embeddablePage., antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #60: embeddablePage., antal fel: 2068 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1299 st)
- Expected X and instead saw X. (totalt 617 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 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)
- Parsing error: X in strict mode (totalt 1 st)