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.94 av 5
- JS är ok.
Webbstandard
- `< script>` in: #5: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #5: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #5: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #5: , antal fel: 2994 ( 1.00 betyg )
- X is defined but never used. (totalt 1492 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: #34: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #34: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #35: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #35: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #36: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #36: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #37: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #37: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #78: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #78: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #79: LinkCollector, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #79: LinkCollector, antal fel: 2 ( 4.60 betyg )
- X is not defined. (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: #83: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #83: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #83: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #83: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 79 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #88: com.pls.morpheu, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #88: com.pls.morpheu, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script>` in: #89: com.pls.morpheu, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #89: com.pls.morpheu, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 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)
- `content-type=".*javascript.*"` in: #63: collect-formsub, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #63: 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: #64: material.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #64: 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: #66: collect-formsub, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #66: 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: #67: material.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #67: 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: #69: collect-formsub, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #69: collect-formsub, antal fel: 70 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #70: material.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #70: material.min.js, antal fel: 102 ( 1.00 betyg )
- X is defined but never used. (totalt 96 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #72: material.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #72: material.min.js, antal fel: 134 ( 1.00 betyg )
- X is defined but never used. (totalt 127 st)
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #92: recaptcha--sv.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #92: recaptcha--sv.j, antal fel: 234 ( 1.00 betyg )
- X is defined but never used. (totalt 206 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #122: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #122: common.js, antal fel: 234 ( 1.00 betyg )
- X is defined but never used. (totalt 206 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #123: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #123: util.js, antal fel: 234 ( 1.00 betyg )
- X is defined but never used. (totalt 206 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #124: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #124: map.js, antal fel: 234 ( 1.00 betyg )
- X is defined but never used. (totalt 206 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #125: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #125: marker.js, antal fel: 234 ( 1.00 betyg )
- X is defined but never used. (totalt 206 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #127: infowindow.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #127: infowindow.js, antal fel: 234 ( 1.00 betyg )
- X is defined but never used. (totalt 206 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
Integritet & säkerhet
- `< script>` in: #5: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #5: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #5: , antal grupperade fel: 32 ( 1.00 betyg )
- `< script src="...">` in: #5: , antal fel: 14431 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9017 st)
- Expected X and instead saw X. (totalt 4689 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: #83: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #83: anchor, antal fel: 2431 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1769 st)
- Expected an assignment or function call and instead saw an expression. (totalt 612 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 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 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: material.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: 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: #66: collect-formsub, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: 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: #67: material.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: 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: #69: collect-formsub, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: collect-formsub, 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: #70: material.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: material.min.js, antal fel: 804 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 597 st)
- X is assigned to itself. (totalt 174 st)
- Expected X and instead saw X. (totalt 30 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- `content-type=".*javascript.*"` in: #72: material.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: material.min.js, antal fel: 1072 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 796 st)
- X is assigned to itself. (totalt 232 st)
- Expected X and instead saw X. (totalt 40 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- `content-type=".*javascript.*"` in: #92: recaptcha--sv.j, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #92: recaptcha--sv.j, antal fel: 3503 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1809 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1408 st)
- X is assigned to itself. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 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 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #122: common.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #122: common.js, antal fel: 3935 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1892 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1746 st)
- X is assigned to itself. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- `content-type=".*javascript.*"` in: #123: util.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #123: util.js, antal fel: 3935 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1892 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1746 st)
- X is assigned to itself. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- `content-type=".*javascript.*"` in: #124: map.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #124: map.js, antal fel: 3935 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1892 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1746 st)
- X is assigned to itself. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- `content-type=".*javascript.*"` in: #125: marker.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #125: marker.js, antal fel: 3935 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1892 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1746 st)
- X is assigned to itself. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- `content-type=".*javascript.*"` in: #127: infowindow.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #127: infowindow.js, antal fel: 3935 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1892 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1746 st)
- X is assigned to itself. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (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)