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.56 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 4 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 243 ( 1.00 betyg )
- X is not defined. (totalt 135 st)
- X is defined but never used. (totalt 100 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: oihasdr623sad.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: oihasdr623sad.j, antal fel: 75 ( 1.00 betyg )
- X is not defined. (totalt 45 st)
- X is defined but never used. (totalt 19 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #41: runtime-searchB, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: runtime-searchB, antal fel: 75 ( 1.00 betyg )
- X is not defined. (totalt 45 st)
- X is defined but never used. (totalt 19 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #42: vendor.3596b96b, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: vendor.3596b96b, antal fel: 194 ( 1.00 betyg )
- X is defined but never used. (totalt 101 st)
- X is not defined. (totalt 61 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #43: searchBoxWidget, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: searchBoxWidget, antal fel: 198 ( 1.00 betyg )
- X is defined but never used. (totalt 105 st)
- X is not defined. (totalt 61 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #45: extern2.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: extern2.min.js, antal fel: 235 ( 1.00 betyg )
- X is defined but never used. (totalt 128 st)
- X is not defined. (totalt 71 st)
- Unexpected console statement. (totalt 23 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #46: vfact2.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: vfact2.min.js, antal fel: 394 ( 1.00 betyg )
- X is not defined. (totalt 200 st)
- X is defined but never used. (totalt 152 st)
- Unexpected console statement. (totalt 27 st)
- X is assigned a value but never used. (totalt 15 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 8 ( 3.40 betyg )
- Expected X and instead saw X. (totalt 5 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 12 ( 2.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1037 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 689 st)
- Expected X and instead saw X. (totalt 323 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 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)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: oihasdr623sad.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: oihasdr623sad.j, antal fel: 46 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 44 st)
- Expected X and instead saw X. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: runtime-searchB, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #41: runtime-searchB, antal fel: 56 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 53 st)
- Expected X and instead saw X. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: vendor.3596b96b, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #42: vendor.3596b96b, antal fel: 1364 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1128 st)
- Expected X and instead saw X. (totalt 173 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- X is assigned to itself. (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: #43: searchBoxWidget, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #43: searchBoxWidget, antal fel: 1370 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1134 st)
- Expected X and instead saw X. (totalt 173 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- X is assigned to itself. (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: extern2.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #45: extern2.min.js, antal fel: 2135 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1545 st)
- Expected X and instead saw X. (totalt 512 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: vfact2.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #46: vfact2.min.js, antal fel: 2256 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1629 st)
- Expected X and instead saw X. (totalt 547 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary X. (totalt 1 st)