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.73 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: privat, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: privat, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: privat, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: privat, antal fel: 77 ( 1.00 betyg )
- X is defined but never used. (totalt 59 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #22: f2b2bde0854f4a9, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #22: f2b2bde0854f4a9, antal fel: 34 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: component---src, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #23: component---src, antal fel: 49 ( 1.00 betyg )
- X is defined but never used. (totalt 23 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #31: 731-33035adb98a, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #31: 731-33035adb98a, antal fel: 53 ( 1.00 betyg )
- X is defined but never used. (totalt 25 st)
- Unexpected console statement. (totalt 24 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #32: script.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: script.js, antal fel: 55 ( 1.00 betyg )
- X is defined but never used. (totalt 26 st)
- Unexpected console statement. (totalt 25 st)
- X is assigned a value but never used. (totalt 4 st)
Integritet & säkerhet
- `< script>` in: #1: privat, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: privat, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: privat, antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #1: privat, antal fel: 1170 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 671 st)
- Expected X and instead saw X. (totalt 461 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: f2b2bde0854f4a9, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #22: f2b2bde0854f4a9, antal fel: 926 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 659 st)
- Expected X and instead saw X. (totalt 253 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: component---src, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #23: component---src, antal fel: 1172 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 839 st)
- Expected X and instead saw X. (totalt 316 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- The Function constructor is eval. (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: #31: 731-33035adb98a, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #31: 731-33035adb98a, antal fel: 1538 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1023 st)
- Expected X and instead saw X. (totalt 480 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: script.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #32: script.js, antal fel: 1554 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1038 st)
- Expected X and instead saw X. (totalt 481 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)