Javascript
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.21 av 5
- JS är ok.Webbstandard
- `< script>` in: #1: home, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: home, antal fel: 14 ( 2.20 betyg )
- X is not defined. (totalt 14 st)
- `< script src="...">` in: #1: home, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: home, antal fel: 57 ( 1.00 betyg )
- X is not defined. (totalt 35 st)
- X is defined but never used. (totalt 17 st)
- X is assigned a value but never used. (totalt 5 st)
- `< script>` in: #57: DEB17431, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #57: DEB17431, antal fel: 23 ( 1.00 betyg )
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 4 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script src="...">` in: #57: DEB17431, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #57: DEB17431, antal fel: 25 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #13: wax.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #13: wax.js, antal fel: 14 ( 2.20 betyg )
- X is not defined. (totalt 12 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #49: analytics.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #49: analytics.js, antal fel: 44 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 15 st)
- `content-type=".*javascript.*"` in: #56: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #56: js, antal fel: 522 ( 1.00 betyg )
- X is defined but never used. (totalt 405 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 30 st)
- `content-type=".*javascript.*"` in: #62: runtime.c880ab9, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #62: runtime.c880ab9, antal fel: 524 ( 1.00 betyg )
- X is defined but never used. (totalt 407 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 30 st)
- `content-type=".*javascript.*"` in: #63: polyfills.4c820, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: polyfills.4c820, antal fel: 546 ( 1.00 betyg )
- X is defined but never used. (totalt 418 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #64: main.b8c279a4de, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: main.b8c279a4de, antal fel: 695 ( 1.00 betyg )
- X is defined but never used. (totalt 538 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 60 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #66: 221.ca61ae3b2ca, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: 221.ca61ae3b2ca, antal fel: 695 ( 1.00 betyg )
- X is defined but never used. (totalt 538 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 60 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #67: 950.db1ec4fe503, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: 950.db1ec4fe503, antal fel: 725 ( 1.00 betyg )
- X is defined but never used. (totalt 561 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #68: 546.e433a88b959, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: 546.e433a88b959, antal fel: 870 ( 1.00 betyg )
- X is defined but never used. (totalt 700 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #69: common.7e22293c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: common.7e22293c, antal fel: 871 ( 1.00 betyg )
- X is defined but never used. (totalt 701 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #70: 346.9d1ef163142, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: 346.9d1ef163142, antal fel: 931 ( 1.00 betyg )
- X is defined but never used. (totalt 759 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #73: azuremediaplaye, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: azuremediaplaye, antal fel: 1169 ( 1.00 betyg )
- X is defined but never used. (totalt 809 st)
- X is not defined. (totalt 235 st)
- X is assigned a value but never used. (totalt 108 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #75: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: util.js, antal fel: 1171 ( 1.00 betyg )
- X is defined but never used. (totalt 810 st)
- X is not defined. (totalt 236 st)
- X is assigned a value but never used. (totalt 108 st)
- Unexpected console statement. (totalt 17 st)
Integritet & säkerhet
- `< script>` in: #1: home, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: home, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script src="...">` in: #1: home, antal grupperade fel: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: home, antal fel: 763 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 500 st)
- Expected X and instead saw X. (totalt 240 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Do not access Object.prototype method X from target object. (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)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `< script>` in: #57: DEB17431, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #57: DEB17431, antal fel: 12 ( 2.60 betyg )
- Expected X and instead saw X. (totalt 12 st)
- `< script src="...">` in: #57: DEB17431, antal grupperade fel: 10 ( 3.00 betyg )
- `< script src="...">` in: #57: DEB17431, antal fel: 401 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 253 st)
- Expected X and instead saw X. (totalt 135 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #49: analytics.js, antal fel: 430 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #56: js, antal fel: 1832 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1316 st)
- Expected X and instead saw X. (totalt 396 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \/. (totalt 9 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 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: runtime.c880ab9, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #62: runtime.c880ab9, antal fel: 1851 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1329 st)
- Expected X and instead saw X. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \/. (totalt 9 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 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: polyfills.4c820, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #63: polyfills.4c820, antal fel: 2056 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1455 st)
- Expected X and instead saw X. (totalt 461 st)
- Do not access Object.prototype method X from target object. (totalt 107 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: main.b8c279a4de, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #64: main.b8c279a4de, antal fel: 3824 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2670 st)
- Expected X and instead saw X. (totalt 945 st)
- Do not access Object.prototype method X from target object. (totalt 153 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: 221.ca61ae3b2ca, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #66: 221.ca61ae3b2ca, antal fel: 3922 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2698 st)
- Expected X and instead saw X. (totalt 1012 st)
- Do not access Object.prototype method X from target object. (totalt 153 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: 950.db1ec4fe503, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #67: 950.db1ec4fe503, antal fel: 4204 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2920 st)
- Expected X and instead saw X. (totalt 1063 st)
- Do not access Object.prototype method X from target object. (totalt 159 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: 546.e433a88b959, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: 546.e433a88b959, antal fel: 4685 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3215 st)
- Expected X and instead saw X. (totalt 1220 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: common.7e22293c, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #69: common.7e22293c, antal fel: 4706 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3235 st)
- Expected X and instead saw X. (totalt 1221 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: 346.9d1ef163142, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #70: 346.9d1ef163142, antal fel: 4866 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3382 st)
- Expected X and instead saw X. (totalt 1233 st)
- Do not access Object.prototype method X from target object. (totalt 164 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: azuremediaplaye, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #73: azuremediaplaye, antal fel: 8211 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6026 st)
- Expected X and instead saw X. (totalt 1870 st)
- Do not access Object.prototype method X from target object. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 28 st)
- Comparing to itself is potentially pointless. (totalt 20 st)
- Unnecessary X. (totalt 13 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \:. (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)
- Unnecessary escape character: \#. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: util.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #75: util.js, antal fel: 8211 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6026 st)
- Expected X and instead saw X. (totalt 1870 st)
- Do not access Object.prototype method X from target object. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 28 st)
- Comparing to itself is potentially pointless. (totalt 20 st)
- Unnecessary X. (totalt 13 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \:. (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)
- Unnecessary escape character: \#. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)