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: 4.04 av 5
- JS är bra.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2989 ( 1.00 betyg )
- X is defined but never used. (totalt 1487 st)
- X is not defined. (totalt 1260 st)
- Unexpected console statement. (totalt 124 st)
- X is assigned a value but never used. (totalt 118 st)
- `< script>` in: #30: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #56: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #56: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #57: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #57: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #58: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #58: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #69: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #69: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #69: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #69: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #80: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #80: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #81: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #81: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #82: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #82: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #83: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #83: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #90: com.pls.morpheu, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #90: com.pls.morpheu, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script>` in: #91: com.pls.morpheu, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #91: com.pls.morpheu, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script>` in: #94: com.pls.morpheu, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #94: com.pls.morpheu, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: collect-formsub, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #59: collect-formsub, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: material.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #60: material.min.js, antal fel: 34 ( 1.00 betyg )
- X is defined but never used. (totalt 32 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: collect-formsub, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #62: collect-formsub, antal fel: 36 ( 1.00 betyg )
- X is defined but never used. (totalt 33 st)
- X is not defined. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: material.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #63: material.min.js, antal fel: 68 ( 1.00 betyg )
- X is defined but never used. (totalt 64 st)
- X is not defined. (totalt 2 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #85: recaptcha--sv.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #85: recaptcha--sv.j, antal fel: 168 ( 1.00 betyg )
- X is defined but never used. (totalt 142 st)
- X is not defined. (totalt 19 st)
- X is assigned a value but never used. (totalt 4 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #86: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #86: common.js, antal fel: 178 ( 1.00 betyg )
- X is defined but never used. (totalt 151 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 4 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #87: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #87: util.js, antal fel: 197 ( 1.00 betyg )
- X is defined but never used. (totalt 166 st)
- X is not defined. (totalt 21 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #88: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #88: map.js, antal fel: 212 ( 1.00 betyg )
- X is defined but never used. (totalt 175 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #89: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #89: marker.js, antal fel: 217 ( 1.00 betyg )
- X is defined but never used. (totalt 175 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #93: infowindow.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #93: infowindow.js, antal fel: 219 ( 1.00 betyg )
- X is defined but never used. (totalt 175 st)
- X is not defined. (totalt 24 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 7 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 32 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 14385 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8986 st)
- Expected X and instead saw X. (totalt 4674 st)
- X is assigned to itself. (totalt 259 st)
- Do not access Object.prototype method X from target object. (totalt 184 st)
- Comparing to itself is potentially pointless. (totalt 65 st)
- Unnecessary escape character: \-. (totalt 30 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Unexpected string concatenation of literals. (totalt 23 st)
- X is not modified in this loop. (totalt 21 st)
- The Function constructor is eval. (totalt 19 st)
- Unnecessary X. (totalt 15 st)
- Unnecessary escape character: \[. (totalt 13 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 11 st)
- Unnecessary escape character: \#. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \:. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Unexpected negating the left operand of X operator. (totalt 2 st)
- Unnecessary escape character: \%. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `< script src="...">` in: #69: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #69: anchor, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: material.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: material.min.js, antal fel: 268 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 199 st)
- X is assigned to itself. (totalt 58 st)
- Expected X and instead saw X. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: collect-formsub, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: collect-formsub, antal fel: 268 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 199 st)
- X is assigned to itself. (totalt 58 st)
- Expected X and instead saw X. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: material.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: material.min.js, antal fel: 536 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 398 st)
- X is assigned to itself. (totalt 116 st)
- Expected X and instead saw X. (totalt 20 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #85: recaptcha--sv.j, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #85: recaptcha--sv.j, antal fel: 2801 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1661 st)
- Expected an assignment or function call and instead saw an expression. (totalt 972 st)
- X is assigned to itself. (totalt 122 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #86: common.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #86: common.js, antal fel: 3233 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1744 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1310 st)
- X is assigned to itself. (totalt 122 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \). (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #87: util.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #87: util.js, antal fel: 4654 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2457 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1995 st)
- X is assigned to itself. (totalt 128 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \). (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 4 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)
- X is not modified in this loop. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #88: map.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #88: map.js, antal fel: 4976 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2509 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2253 st)
- X is assigned to itself. (totalt 129 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #89: marker.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #89: marker.js, antal fel: 5294 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2550 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2525 st)
- X is assigned to itself. (totalt 134 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #93: infowindow.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #93: infowindow.js, antal fel: 5333 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2560 st)
- Expected X and instead saw X. (totalt 2554 st)
- X is assigned to itself. (totalt 134 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)