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: 3.07 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 4 st)
- X is not defined. (totalt 2 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: 267 ( 1.00 betyg )
- X is not defined. (totalt 146 st)
- X is defined but never used. (totalt 108 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #43: vendor.360a24f4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #43: 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: #44: searchBoxWidget, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #44: 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)
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: 1188 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 805 st)
- Expected X and instead saw X. (totalt 328 st)
- Unnecessary escape character: \/. (totalt 20 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (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: #42: runtime-searchB, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #42: 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: #43: vendor.360a24f4, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #43: 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: #44: searchBoxWidget, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #44: 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)