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.76 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1408 ( 1.00 betyg )
- X is defined but never used. (totalt 659 st)
- X is not defined. (totalt 567 st)
- X is assigned a value but never used. (totalt 131 st)
- Unexpected console statement. (totalt 51 st)
- `< script>` in: #167: generateWidget., antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #167: generateWidget., antal fel: 18 ( 1.40 betyg )
- X is not defined. (totalt 8 st)
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #147: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #147: gtm.js, antal fel: 540 ( 1.00 betyg )
- X is defined but never used. (totalt 432 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #156: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #156: js, antal fel: 984 ( 1.00 betyg )
- X is defined but never used. (totalt 788 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #157: track.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #157: track.js, antal fel: 1057 ( 1.00 betyg )
- X is defined but never used. (totalt 813 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 84 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #158: lftracker-v1-3P, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #158: lftracker-v1-3P, antal fel: 1078 ( 1.00 betyg )
- X is defined but never used. (totalt 828 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 86 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #165: button.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #165: button.php, antal fel: 1079 ( 1.00 betyg )
- X is defined but never used. (totalt 828 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 87 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #170: bundle-8b8f563a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #170: bundle-8b8f563a, antal fel: 1082 ( 1.00 betyg )
- X is defined but never used. (totalt 831 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 87 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #171: stringutils-d4d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #171: stringutils-d4d, antal fel: 1104 ( 1.00 betyg )
- X is defined but never used. (totalt 852 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 87 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #172: track-visit.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #172: track-visit.php, antal fel: 1109 ( 1.00 betyg )
- X is defined but never used. (totalt 852 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 92 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #175: postmessage-bun, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #175: postmessage-bun, antal fel: 1119 ( 1.00 betyg )
- X is defined but never used. (totalt 854 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 98 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #176: pushstream-bund, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #176: pushstream-bund, antal fel: 1134 ( 1.00 betyg )
- X is defined but never used. (totalt 869 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 98 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #177: bus-bundle.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #177: bus-bundle.js, antal fel: 1153 ( 1.00 betyg )
- X is defined but never used. (totalt 872 st)
- X is assigned a value but never used. (totalt 157 st)
- X is not defined. (totalt 112 st)
- Unexpected console statement. (totalt 12 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: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 26 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5666 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3769 st)
- Expected X and instead saw X. (totalt 1588 st)
- Do not access Object.prototype method X from target object. (totalt 193 st)
- Unnecessary escape character: \/. (totalt 29 st)
- Unnecessary X. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is assigned to itself. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 4 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (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)
- 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)
- Unnecessary escape character: \}. (totalt 1 st)
- `< script>` in: #167: generateWidget., antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #167: generateWidget., antal fel: 17 ( 1.60 betyg )
- Expected X and instead saw X. (totalt 9 st)
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- `content-type=".*javascript.*"` in: #147: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #147: gtm.js, antal fel: 1292 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 908 st)
- Expected X and instead saw X. (totalt 244 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #156: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #156: js, antal fel: 2896 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2160 st)
- Expected X and instead saw X. (totalt 488 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 22 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #157: track.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #157: track.js, antal fel: 3218 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2302 st)
- Expected X and instead saw X. (totalt 617 st)
- Do not access Object.prototype method X from target object. (totalt 204 st)
- Unnecessary escape character: \-. (totalt 46 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #158: lftracker-v1-3P, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #158: lftracker-v1-3P, antal fel: 3381 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2409 st)
- Expected X and instead saw X. (totalt 659 st)
- Do not access Object.prototype method X from target object. (totalt 205 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (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: #165: button.php, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #165: button.php, antal fel: 3381 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2409 st)
- Expected X and instead saw X. (totalt 659 st)
- Do not access Object.prototype method X from target object. (totalt 205 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (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: #170: bundle-8b8f563a, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #170: bundle-8b8f563a, antal fel: 3565 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2534 st)
- Expected X and instead saw X. (totalt 715 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (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: #171: stringutils-d4d, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #171: stringutils-d4d, antal fel: 3818 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2748 st)
- Expected X and instead saw X. (totalt 752 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (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: #172: track-visit.php, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #172: track-visit.php, antal fel: 3818 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2748 st)
- Expected X and instead saw X. (totalt 752 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (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: #175: postmessage-bun, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #175: postmessage-bun, antal fel: 3835 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2756 st)
- Expected X and instead saw X. (totalt 761 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (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: #176: pushstream-bund, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #176: pushstream-bund, antal fel: 3928 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2836 st)
- Expected X and instead saw X. (totalt 765 st)
- Do not access Object.prototype method X from target object. (totalt 212 st)
- Unnecessary escape character: \-. (totalt 48 st)
- Unnecessary escape character: \/. (totalt 25 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (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: #177: bus-bundle.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #177: bus-bundle.js, antal fel: 3946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2843 st)
- Expected X and instead saw X. (totalt 774 st)
- Do not access Object.prototype method X from target object. (totalt 212 st)
- Unnecessary escape character: \-. (totalt 48 st)
- Unnecessary escape character: \/. (totalt 27 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)