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.69 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: sv, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: sv, antal fel: 757 ( 1.00 betyg )
- X is defined but never used. (totalt 669 st)
- X is not defined. (totalt 42 st)
- Unexpected console statement. (totalt 36 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #2: , antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #2: , antal fel: 85 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #6: 85.e4f6ab424487, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #6: 85.e4f6ab424487, antal fel: 85 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #11: 8547.4699ae97e5, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #11: 8547.4699ae97e5, antal fel: 86 ( 1.00 betyg )
- X is defined but never used. (totalt 44 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #16: 400.a1dd1947c24, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #16: 400.a1dd1947c24, antal fel: 87 ( 1.00 betyg )
- X is defined but never used. (totalt 45 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #25: 2652.0b0304feb1, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #25: 2652.0b0304feb1, antal fel: 119 ( 1.00 betyg )
- X is defined but never used. (totalt 77 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #52: 7982.85b5c3d146, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #52: 7982.85b5c3d146, antal fel: 124 ( 1.00 betyg )
- X is defined but never used. (totalt 82 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 7 st)
Integritet & säkerhet
- `< script src="...">` in: #1: sv, antal grupperade fel: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: sv, antal fel: 4440 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3531 st)
- Expected X and instead saw X. (totalt 784 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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: #2: , antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #2: , antal fel: 393 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 239 st)
- Expected X and instead saw X. (totalt 127 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #6: 85.e4f6ab424487, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #6: 85.e4f6ab424487, antal fel: 394 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 240 st)
- Expected X and instead saw X. (totalt 127 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: 8547.4699ae97e5, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #11: 8547.4699ae97e5, antal fel: 396 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 242 st)
- Expected X and instead saw X. (totalt 127 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: 400.a1dd1947c24, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #16: 400.a1dd1947c24, antal fel: 398 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 244 st)
- Expected X and instead saw X. (totalt 127 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: 2652.0b0304feb1, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #25: 2652.0b0304feb1, antal fel: 536 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 369 st)
- Expected X and instead saw X. (totalt 140 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: 7982.85b5c3d146, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #52: 7982.85b5c3d146, antal fel: 567 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 398 st)
- Expected X and instead saw X. (totalt 142 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)