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.67 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: sv, antal fel: 480 ( 1.00 betyg )
- X is defined but never used. (totalt 369 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #22: js-64O2WhdaxDoA, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #22: js-64O2WhdaxDoA, antal fel: 39 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 16 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: js-6fI2ARHlpskT, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #24: js-6fI2ARHlpskT, antal fel: 47 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 21 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #25: eu-cookie-compl, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #25: eu-cookie-compl, antal fel: 62 ( 1.00 betyg )
- X is not defined. (totalt 32 st)
- X is defined but never used. (totalt 26 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #26: js-dzZZHdbVFCly, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: js-dzZZHdbVFCly, antal fel: 178 ( 1.00 betyg )
- X is not defined. (totalt 96 st)
- X is defined but never used. (totalt 75 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: hotjar-2790562., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: hotjar-2790562., antal fel: 202 ( 1.00 betyg )
- X is not defined. (totalt 107 st)
- X is defined but never used. (totalt 83 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: sv, antal fel: 1664 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1237 st)
- Expected X and instead saw X. (totalt 326 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: js-64O2WhdaxDoA, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #22: js-64O2WhdaxDoA, antal fel: 539 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 276 st)
- Expected X and instead saw X. (totalt 244 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: js-6fI2ARHlpskT, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #24: js-6fI2ARHlpskT, antal fel: 544 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 276 st)
- Expected X and instead saw X. (totalt 244 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: eu-cookie-compl, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #25: eu-cookie-compl, antal fel: 610 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 331 st)
- Expected X and instead saw X. (totalt 255 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: js-dzZZHdbVFCly, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #26: js-dzZZHdbVFCly, antal fel: 1332 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 744 st)
- Expected X and instead saw X. (totalt 529 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: hotjar-2790562., antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #27: hotjar-2790562., antal fel: 1375 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 766 st)
- Expected X and instead saw X. (totalt 550 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)