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.23 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: 6 ( 3.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2594 ( 1.00 betyg )
- X is not defined. (totalt 1633 st)
- X is defined but never used. (totalt 836 st)
- X is assigned a value but never used. (totalt 81 st)
- Unexpected console statement. (totalt 42 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `< script>` in: #117: mailchimp.php, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #117: mailchimp.php, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #139: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #139: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `< script>` in: #149: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #149: inner.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #116: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #116: gtm.js, antal fel: 537 ( 1.00 betyg )
- X is defined but never used. (totalt 423 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #118: sdk.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #118: sdk.js, antal fel: 537 ( 1.00 betyg )
- X is defined but never used. (totalt 423 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #132: sdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #132: sdk.js, antal fel: 538 ( 1.00 betyg )
- X is defined but never used. (totalt 423 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 18 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #133: sa.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #133: sa.js, antal fel: 543 ( 1.00 betyg )
- X is defined but never used. (totalt 425 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 20 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #137: js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #137: js, antal fel: 1085 ( 1.00 betyg )
- X is defined but never used. (totalt 851 st)
- X is assigned a value but never used. (totalt 190 st)
- X is not defined. (totalt 42 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #138: 16706638234, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #138: 16706638234, antal fel: 1088 ( 1.00 betyg )
- X is defined but never used. (totalt 854 st)
- X is assigned a value but never used. (totalt 190 st)
- X is not defined. (totalt 42 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #150: out-4.5.44.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #150: out-4.5.44.js, antal fel: 1222 ( 1.00 betyg )
- X is defined but never used. (totalt 963 st)
- X is assigned a value but never used. (totalt 191 st)
- X is not defined. (totalt 66 st)
- Parsing error: X in strict mode (totalt 1 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: 40 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 8113 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5464 st)
- Expected X and instead saw X. (totalt 2169 st)
- Do not access Object.prototype method X from target object. (totalt 188 st)
- Unnecessary escape character: \/. (totalt 68 st)
- Unnecessary escape character: \.. (totalt 67 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 13 st)
- The Function constructor is eval. (totalt 13 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \:. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 3 st)
- Unnecessary escape character: \*. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \|. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \o. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- eval can be harmful. (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)
- Parsing error: Unexpected token : (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `< script>` in: #139: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #139: sw-iframe.html, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 3 st)
- `< script src="...">` in: #147: m-outer-3437aad, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #147: m-outer-3437aad, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script>` in: #149: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #149: inner.html, antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `content-type=".*javascript.*"` in: #116: gtm.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #116: gtm.js, antal fel: 1276 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 963 st)
- Expected X and instead saw X. (totalt 220 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- X is not modified in this loop. (totalt 3 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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #118: sdk.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #118: sdk.js, antal fel: 1283 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 966 st)
- Expected X and instead saw X. (totalt 220 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #132: sdk.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #132: sdk.js, antal fel: 1284 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 966 st)
- Expected X and instead saw X. (totalt 220 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #133: sa.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #133: sa.js, antal fel: 1312 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 977 st)
- Expected X and instead saw X. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #137: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #137: js, antal fel: 2574 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1933 st)
- Expected X and instead saw X. (totalt 452 st)
- Do not access Object.prototype method X from target object. (totalt 156 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #138: 16706638234, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #138: 16706638234, antal fel: 2602 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1944 st)
- Expected X and instead saw X. (totalt 469 st)
- Do not access Object.prototype method X from target object. (totalt 156 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #150: out-4.5.44.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #150: out-4.5.44.js, antal fel: 3026 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2197 st)
- Expected X and instead saw X. (totalt 634 st)
- Do not access Object.prototype method X from target object. (totalt 156 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)