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.15 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: 271 ( 1.00 betyg )
- X is not defined. (totalt 196 st)
- X is defined but never used. (totalt 53 st)
- Unexpected console statement. (totalt 18 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #49: 921.5514159e238, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #49: 921.5514159e238, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #50: 68.106fae7361a9, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #50: 68.106fae7361a9, antal fel: 9 ( 3.20 betyg )
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #51: sticky.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #51: sticky.js, antal fel: 15 ( 2.00 betyg )
- X is not defined. (totalt 10 st)
- X is defined but never used. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #52: section-fronten, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #52: section-fronten, antal fel: 16 ( 1.80 betyg )
- X is not defined. (totalt 11 st)
- X is defined but never used. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #53: shared-frontend, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #53: shared-frontend, antal fel: 34 ( 1.00 betyg )
- X is not defined. (totalt 29 st)
- X is defined but never used. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #54: text-editor.c08, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #54: text-editor.c08, antal fel: 37 ( 1.00 betyg )
- X is not defined. (totalt 32 st)
- X is defined but never used. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 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: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1031 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 696 st)
- Expected X and instead saw X. (totalt 309 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \'. (totalt 1 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: #49: 921.5514159e238, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #49: 921.5514159e238, antal fel: 23 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 21 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #50: 68.106fae7361a9, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #50: 68.106fae7361a9, antal fel: 39 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- Expected X and instead saw X. (totalt 6 st)
- `content-type=".*javascript.*"` in: #51: sticky.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #51: sticky.js, antal fel: 86 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 74 st)
- Expected X and instead saw X. (totalt 12 st)
- `content-type=".*javascript.*"` in: #52: section-fronten, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #52: section-fronten, antal fel: 87 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 75 st)
- Expected X and instead saw X. (totalt 12 st)
- `content-type=".*javascript.*"` in: #53: shared-frontend, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #53: shared-frontend, antal fel: 121 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 108 st)
- Expected X and instead saw X. (totalt 13 st)
- `content-type=".*javascript.*"` in: #54: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #54: text-editor.c08, antal fel: 125 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 112 st)
- Expected X and instead saw X. (totalt 13 st)