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.82 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 16 ( 1.80 betyg )
- X is not defined. (totalt 10 st)
- 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: 248 ( 1.00 betyg )
- X is not defined. (totalt 138 st)
- X is defined but never used. (totalt 102 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: vendor.360a24f4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #41: vendor.360a24f4, antal fel: 140 ( 1.00 betyg )
- X is defined but never used. (totalt 96 st)
- Unexpected console statement. (totalt 25 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #42: searchBoxWidget, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #42: searchBoxWidget, antal fel: 144 ( 1.00 betyg )
- X is defined but never used. (totalt 100 st)
- Unexpected console statement. (totalt 25 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #44: heatmaps.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #44: heatmaps.js, antal fel: 155 ( 1.00 betyg )
- X is defined but never used. (totalt 109 st)
- Unexpected console statement. (totalt 27 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #45: page-correct.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #45: page-correct.js, antal fel: 160 ( 1.00 betyg )
- X is defined but never used. (totalt 113 st)
- Unexpected console statement. (totalt 28 st)
- X is not defined. (totalt 19 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 7 ( 3.60 betyg )
- Expected X and instead saw X. (totalt 6 st)
- Script URL is a form of eval. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1115 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 744 st)
- Expected X and instead saw X. (totalt 344 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 8 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)
- X is assigned to itself. (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: #40: runtime-searchB, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #40: runtime-searchB, antal fel: 10 ( 3.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: vendor.360a24f4, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #41: vendor.360a24f4, antal fel: 2166 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1367 st)
- Expected X and instead saw X. (totalt 745 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: searchBoxWidget, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #42: searchBoxWidget, antal fel: 2172 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1373 st)
- Expected X and instead saw X. (totalt 745 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: heatmaps.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #44: heatmaps.js, antal fel: 2209 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1396 st)
- Expected X and instead saw X. (totalt 759 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: page-correct.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #45: page-correct.js, antal fel: 2267 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1442 st)
- Expected X and instead saw X. (totalt 770 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)