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.41 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 280 ( 1.00 betyg )
- X is not defined. (totalt 205 st)
- X is defined but never used. (totalt 49 st)
- Unexpected console statement. (totalt 18 st)
- X is assigned a value but never used. (totalt 8 st)
- `< script>` in: #44: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #44: crossdomain.htm, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #34: cmp.php, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #34: cmp.php, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #35: cmp-final.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: cmp-final.min.j, antal fel: 661 ( 1.00 betyg )
- X is not defined. (totalt 557 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #42: cmp.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: cmp.php, antal fel: 664 ( 1.00 betyg )
- X is not defined. (totalt 559 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #43: bV8xLndfMzc2NTc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: bV8xLndfMzc2NTc, antal fel: 674 ( 1.00 betyg )
- X is not defined. (totalt 569 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2313 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1546 st)
- Expected X and instead saw X. (totalt 616 st)
- Unnecessary escape character: \/. (totalt 104 st)
- Unnecessary X. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #44: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #44: crossdomain.htm, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #34: cmp.php, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #34: cmp.php, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #35: cmp-final.min.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: cmp-final.min.j, antal fel: 2058 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2054 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: cmp.php, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #42: cmp.php, antal fel: 2080 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2055 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: bV8xLndfMzc2NTc, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #43: bV8xLndfMzc2NTc, antal fel: 2303 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2057 st)
- Unnecessary escape character: \/. (totalt 245 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)