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.15 av 5
- JS är dålig.
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: 207 ( 1.00 betyg )
- X is not defined. (totalt 99 st)
- X is defined but never used. (totalt 87 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 8 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: siteanalyze-739, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: siteanalyze-739, antal fel: 58 ( 1.00 betyg )
- X is not defined. (totalt 25 st)
- X is defined but never used. (totalt 23 st)
- X is assigned a value but never used. (totalt 7 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #41: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: fbevents.js, antal fel: 714 ( 1.00 betyg )
- X is defined but never used. (totalt 661 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 14 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #43: 584074422083560, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: 584074422083560, antal fel: 872 ( 1.00 betyg )
- X is defined but never used. (totalt 792 st)
- Unexpected console statement. (totalt 34 st)
- X is not defined. (totalt 32 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #44: element.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: element.js, antal fel: 1012 ( 1.00 betyg )
- X is defined but never used. (totalt 825 st)
- X is not defined. (totalt 137 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #46: 422915255216576, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: 422915255216576, antal fel: 1124 ( 1.00 betyg )
- X is defined but never used. (totalt 906 st)
- X is not defined. (totalt 138 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 25 st)
- `content-type=".*javascript.*"` in: #51: m-el-main, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: m-el-main, antal fel: 1167 ( 1.00 betyg )
- X is defined but never used. (totalt 945 st)
- X is not defined. (totalt 140 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 27 st)
- `content-type=".*javascript.*"` in: #55: supportedLangua, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: supportedLangua, antal fel: 1168 ( 1.00 betyg )
- X is defined but never used. (totalt 945 st)
- X is not defined. (totalt 141 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 27 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: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2112 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1430 st)
- Expected X and instead saw X. (totalt 568 st)
- Unnecessary escape character: \-. (totalt 22 st)
- Unnecessary X. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Async arrow function has no X expression. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: siteanalyze-739, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #40: siteanalyze-739, antal fel: 675 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 314 st)
- Expected X and instead saw X. (totalt 244 st)
- Unnecessary escape character: \/. (totalt 57 st)
- Unnecessary escape character: \-. (totalt 27 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 6 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: fbevents.js, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #41: fbevents.js, antal fel: 2084 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 933 st)
- Expected X and instead saw X. (totalt 865 st)
- Unnecessary escape character: \/. (totalt 66 st)
- Unnecessary escape character: \-. (totalt 43 st)
- Unsafe usage of ThrowStatement. (totalt 15 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary escape character: \=. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #43: 584074422083560, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #43: 584074422083560, antal fel: 2498 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1181 st)
- Expected X and instead saw X. (totalt 1026 st)
- Unnecessary escape character: \/. (totalt 66 st)
- Unnecessary escape character: \-. (totalt 43 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary escape character: \=. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \". (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \,. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: element.js, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: element.js, antal fel: 2946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1407 st)
- Expected X and instead saw X. (totalt 1197 st)
- Unnecessary escape character: \/. (totalt 93 st)
- Unnecessary escape character: \-. (totalt 43 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \[. (totalt 11 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary X. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \^. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary escape character: \=. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \". (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \(. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #46: 422915255216576, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: 422915255216576, antal fel: 3086 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1535 st)
- Expected X and instead saw X. (totalt 1207 st)
- Unnecessary escape character: \/. (totalt 93 st)
- Unnecessary escape character: \-. (totalt 43 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \[. (totalt 11 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary X. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \^. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary escape character: \=. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \". (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \(. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #51: m-el-main, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #51: m-el-main, antal fel: 4465 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2307 st)
- Expected X and instead saw X. (totalt 1781 st)
- Unnecessary escape character: \/. (totalt 104 st)
- Unnecessary escape character: \-. (totalt 45 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- Unnecessary X. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 13 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \[. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \^. (totalt 10 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary escape character: \). (totalt 8 st)
- Unnecessary escape character: \=. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \". (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #55: supportedLangua, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #55: supportedLangua, antal fel: 4465 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2307 st)
- Expected X and instead saw X. (totalt 1781 st)
- Unnecessary escape character: \/. (totalt 104 st)
- Unnecessary escape character: \-. (totalt 45 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- Unnecessary X. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 13 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \[. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \^. (totalt 10 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \*. (totalt 8 st)
- Unnecessary escape character: \). (totalt 8 st)
- Unnecessary escape character: \=. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \". (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)