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.24 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 24 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 15 st)
- X is not defined. (totalt 6 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1353 ( 1.00 betyg )
- X is not defined. (totalt 1048 st)
- X is defined but never used. (totalt 233 st)
- Unexpected console statement. (totalt 53 st)
- X is assigned a value but never used. (totalt 19 st)
- `< script>` in: #84: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #84: inner.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: runtime.49e013c, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #70: runtime.49e013c, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #71: polyfills.f7ae5, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #71: polyfills.f7ae5, antal fel: 48 ( 1.00 betyg )
- X is not defined. (totalt 32 st)
- X is defined but never used. (totalt 14 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #72: vendor.bba3c661, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: vendor.bba3c661, antal fel: 273 ( 1.00 betyg )
- X is defined but never used. (totalt 167 st)
- X is not defined. (totalt 79 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #73: main.366632dc29, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: main.366632dc29, antal fel: 318 ( 1.00 betyg )
- X is defined but never used. (totalt 191 st)
- X is not defined. (totalt 81 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #79: 605.b9583b346da, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: 605.b9583b346da, antal fel: 318 ( 1.00 betyg )
- X is defined but never used. (totalt 191 st)
- X is not defined. (totalt 81 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #80: common.05559e64, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: common.05559e64, antal fel: 318 ( 1.00 betyg )
- X is defined but never used. (totalt 191 st)
- X is not defined. (totalt 81 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #81: 157.a50fa30760d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #81: 157.a50fa30760d, antal fel: 354 ( 1.00 betyg )
- X is defined but never used. (totalt 226 st)
- X is not defined. (totalt 81 st)
- Unexpected console statement. (totalt 42 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #85: out-4.5.44.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #85: out-4.5.44.js, antal fel: 488 ( 1.00 betyg )
- X is defined but never used. (totalt 335 st)
- X is not defined. (totalt 105 st)
- Unexpected console statement. (totalt 42 st)
- X is assigned a value but never used. (totalt 6 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 112 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 109 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \]. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 36 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4812 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3019 st)
- Expected X and instead saw X. (totalt 1496 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \.. (totalt 65 st)
- Unnecessary escape character: \/. (totalt 47 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 11 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \:. (totalt 4 st)
- X is assigned to itself. (totalt 3 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)
- Unnecessary escape character: \|. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Script URL is a form of eval. (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)
- Unexpected string concatenation of literals. (totalt 1 st)
- `< script src="...">` in: #82: m-outer-3437aad, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #82: 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: #84: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #84: 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: #70: runtime.49e013c, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #70: runtime.49e013c, antal fel: 16 ( 1.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 13 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #71: polyfills.f7ae5, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #71: polyfills.f7ae5, antal fel: 237 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 144 st)
- Expected X and instead saw X. (totalt 72 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 2 st)
- `content-type=".*javascript.*"` in: #72: vendor.bba3c661, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #72: vendor.bba3c661, antal fel: 2138 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1475 st)
- Expected X and instead saw X. (totalt 571 st)
- Do not access Object.prototype method X from target object. (totalt 58 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \'. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: main.366632dc29, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #73: main.366632dc29, antal fel: 2349 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1680 st)
- Expected X and instead saw X. (totalt 577 st)
- Do not access Object.prototype method X from target object. (totalt 58 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \'. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: 605.b9583b346da, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #79: 605.b9583b346da, antal fel: 2354 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1685 st)
- Expected X and instead saw X. (totalt 577 st)
- Do not access Object.prototype method X from target object. (totalt 58 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \'. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: common.05559e64, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #80: common.05559e64, antal fel: 2357 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1688 st)
- Expected X and instead saw X. (totalt 577 st)
- Do not access Object.prototype method X from target object. (totalt 58 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \'. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #81: 157.a50fa30760d, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #81: 157.a50fa30760d, antal fel: 2439 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1769 st)
- Expected X and instead saw X. (totalt 578 st)
- Do not access Object.prototype method X from target object. (totalt 58 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \'. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #85: out-4.5.44.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #85: out-4.5.44.js, antal fel: 2863 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2022 st)
- Expected X and instead saw X. (totalt 743 st)
- Do not access Object.prototype method X from target object. (totalt 58 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \'. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)