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.09 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 337 ( 1.00 betyg )
- X is not defined. (totalt 287 st)
- X is defined but never used. (totalt 43 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #34: lightbox.f3fa60, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #34: lightbox.f3fa60, antal fel: 38 ( 1.00 betyg )
- X is not defined. (totalt 38 st)
- `content-type=".*javascript.*"` in: #35: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #35: dialog.min.js, antal fel: 45 ( 1.00 betyg )
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: share-link.min., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #37: share-link.min., antal fel: 54 ( 1.00 betyg )
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1507 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1145 st)
- Expected X and instead saw X. (totalt 340 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: lightbox.f3fa60, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #34: lightbox.f3fa60, antal fel: 65 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 64 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #35: dialog.min.js, antal fel: 102 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #37: share-link.min., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #37: share-link.min., antal fel: 108 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 100 st)
- Expected X and instead saw X. (totalt 7 st)
- Script URL is a form of eval. (totalt 1 st)