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.12 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3363 ( 1.00 betyg )
- X is not defined. (totalt 2141 st)
- X is defined but never used. (totalt 1102 st)
- X is assigned a value but never used. (totalt 117 st)
- Unexpected console statement. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `< script>` in: #43: 785481, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #43: 785481, antal fel: 13 ( 2.40 betyg )
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #43: 785481, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #43: 785481, antal fel: 453 ( 1.00 betyg )
- X is defined but never used. (totalt 371 st)
- X is assigned a value but never used. (totalt 70 st)
- X is not defined. (totalt 12 st)
- `content-type=".*javascript.*"` in: #53: embed.vendor.mi, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #53: embed.vendor.mi, antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: embed.main.min., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #54: embed.main.min., antal fel: 12 ( 2.60 betyg )
- X is not defined. (totalt 10 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #55: iframeResizer.c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: iframeResizer.c, antal fel: 15 ( 2.00 betyg )
- X is not defined. (totalt 10 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: analytics.js, antal fel: 45 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- X is not defined. (totalt 13 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (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: 32 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5892 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 3634 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1751 st)
- Do not access Object.prototype method X from target object. (totalt 214 st)
- Unexpected string concatenation of literals. (totalt 159 st)
- Unnecessary escape character: \.. (totalt 22 st)
- eval can be harmful. (totalt 18 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \:. (totalt 12 st)
- X is not modified in this loop. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Script URL is a form of eval. (totalt 8 st)
- The Function constructor is eval. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Implied eval. Consider passing a function instead of a string. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Unnecessary escape character: \s. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `< script>` in: #43: 785481, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #43: 785481, antal fel: 57 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 53 st)
- Expected an assignment or function call and instead saw an expression. (totalt 4 st)
- `< script src="...">` in: #43: 785481, antal grupperade fel: 10 ( 3.00 betyg )
- `< script src="...">` in: #43: 785481, antal fel: 1653 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1270 st)
- Expected X and instead saw X. (totalt 271 st)
- Do not access Object.prototype method X from target object. (totalt 97 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)
- Unnecessary escape character: \?. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: embed.vendor.mi, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #53: embed.vendor.mi, antal fel: 10 ( 3.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #54: embed.main.min., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #54: embed.main.min., antal fel: 18 ( 1.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #55: iframeResizer.c, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #55: iframeResizer.c, antal fel: 80 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 72 st)
- Expected X and instead saw X. (totalt 8 st)
- `content-type=".*javascript.*"` in: #57: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #57: analytics.js, antal fel: 510 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 306 st)
- Expected X and instead saw X. (totalt 186 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)