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.27 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 113 ( 1.00 betyg )
- X is not defined. (totalt 89 st)
- X is assigned a value but never used. (totalt 17 st)
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 719 ( 1.00 betyg )
- X is not defined. (totalt 396 st)
- X is defined but never used. (totalt 255 st)
- Unexpected console statement. (totalt 64 st)
- X is assigned a value but never used. (totalt 3 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: index.module.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #25: index.module.js, antal fel: 137 ( 1.00 betyg )
- X is defined but never used. (totalt 82 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #50: combo, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #50: combo, antal fel: 150 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #53: DefaultData-cb4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #53: DefaultData-cb4, antal fel: 150 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #55: DefaultUI-bd3de, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #55: DefaultUI-bd3de, antal fel: 150 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #56: FirstLayerCusto, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #56: FirstLayerCusto, antal fel: 150 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #57: ButtonsCustomiz, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #57: ButtonsCustomiz, antal fel: 150 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #58: SecondLayerUI-4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #58: SecondLayerUI-4, antal fel: 150 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #60: PrivacyButton-3, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #60: PrivacyButton-3, antal fel: 150 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #61: index-14f16c5b., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #61: index-14f16c5b., antal fel: 153 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 24 st)
- `content-type=".*javascript.*"` in: #64: index-4cfad323., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #64: index-4cfad323., antal fel: 153 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 24 st)
- `content-type=".*javascript.*"` in: #65: SaveButton-ea5e, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #65: SaveButton-ea5e, antal fel: 153 ( 1.00 betyg )
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 24 st)
- `content-type=".*javascript.*"` in: #66: VirtualServiceI, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: VirtualServiceI, antal fel: 181 ( 1.00 betyg )
- X is defined but never used. (totalt 109 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 29 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #67: DefaultTabs-310, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: DefaultTabs-310, antal fel: 181 ( 1.00 betyg )
- X is defined but never used. (totalt 109 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 29 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #70: available-langu, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: available-langu, antal fel: 185 ( 1.00 betyg )
- X is defined but never used. (totalt 110 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 32 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #71: combo, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: combo, antal fel: 235 ( 1.00 betyg )
- X is defined but never used. (totalt 138 st)
- X is not defined. (totalt 47 st)
- Unexpected console statement. (totalt 36 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #72: combo, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: combo, antal fel: 303 ( 1.00 betyg )
- X is defined but never used. (totalt 170 st)
- X is not defined. (totalt 82 st)
- Unexpected console statement. (totalt 36 st)
- X is assigned a value but never used. (totalt 15 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 10 ( 3.00 betyg )
- Expected X and instead saw X. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4458 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3156 st)
- Expected X and instead saw X. (totalt 1091 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Comparing to itself is potentially pointless. (totalt 38 st)
- Unnecessary X. (totalt 18 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- eval can be harmful. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \ . (totalt 3 st)
- Unnecessary escape character: \&. (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)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (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)
- Unnecessary escape character: \=. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: index.module.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #25: index.module.js, antal fel: 1363 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 735 st)
- Expected X and instead saw X. (totalt 598 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: combo, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #50: combo, antal fel: 1392 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 764 st)
- Expected X and instead saw X. (totalt 598 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: DefaultData-cb4, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #53: DefaultData-cb4, antal fel: 1397 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 767 st)
- Expected X and instead saw X. (totalt 600 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: DefaultUI-bd3de, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #55: DefaultUI-bd3de, antal fel: 1401 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 767 st)
- Expected X and instead saw X. (totalt 604 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: FirstLayerCusto, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #56: FirstLayerCusto, antal fel: 1427 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 769 st)
- Expected X and instead saw X. (totalt 628 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: ButtonsCustomiz, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #57: ButtonsCustomiz, antal fel: 1432 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 770 st)
- Expected X and instead saw X. (totalt 632 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: SecondLayerUI-4, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #58: SecondLayerUI-4, antal fel: 1433 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 771 st)
- Expected X and instead saw X. (totalt 632 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: PrivacyButton-3, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #60: PrivacyButton-3, antal fel: 1436 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 771 st)
- Expected X and instead saw X. (totalt 635 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: index-14f16c5b., antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #61: index-14f16c5b., antal fel: 1440 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 775 st)
- Expected X and instead saw X. (totalt 635 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: index-4cfad323., antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #64: index-4cfad323., antal fel: 1442 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 777 st)
- Expected X and instead saw X. (totalt 635 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: SaveButton-ea5e, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #65: SaveButton-ea5e, antal fel: 1444 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 777 st)
- Expected X and instead saw X. (totalt 637 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: VirtualServiceI, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #66: VirtualServiceI, antal fel: 1778 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 960 st)
- Expected X and instead saw X. (totalt 779 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: DefaultTabs-310, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #67: DefaultTabs-310, antal fel: 1784 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 963 st)
- Expected X and instead saw X. (totalt 782 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: available-langu, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #70: available-langu, antal fel: 1784 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 963 st)
- Expected X and instead saw X. (totalt 782 st)
- Async arrow function has no X expression. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: combo, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #71: combo, antal fel: 1965 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1097 st)
- Expected X and instead saw X. (totalt 809 st)
- Do not access Object.prototype method X from target object. (totalt 24 st)
- Async arrow function has no X expression. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: combo, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #72: combo, antal fel: 2099 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1206 st)
- Expected X and instead saw X. (totalt 826 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Async arrow function has no X expression. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Async method X has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)