Skip to content

feat: added optimizations #22

feat: added optimizations

feat: added optimizations #22

Triggered via pull request May 25, 2024 16:44
@tareq1988tareq1988
synchronize #5
optimization
Status Failure
Total duration 24s
Artifacts

wpcs.yml

on: pull_request
Run PHPCS inspection
14s
Run PHPCS inspection
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
Run PHPCS inspection: views/admin.php#L16
Opening PHP tag must be on a line by itself
Run PHPCS inspection: views/admin.php#L16
Opening PHP tag must be on a line by itself
Run PHPCS inspection: views/admin.php#L17
Array item not aligned correctly; expected 4 spaces but found 24
Run PHPCS inspection: views/admin.php#L18
Array closer not aligned correctly; expected 0 space(s) but found 20
Run PHPCS inspection: views/admin.php#L18
Closing PHP tag must be on a line by itself
Run PHPCS inspection: includes/Admin/Optimizations.php#L31
$_POST data not unslashed before sanitization. Use wp_unslash() or similar
Run PHPCS inspection: includes/Admin/Optimizations.php#L31
Detected usage of a non-sanitized input variable: $_POST['flywp-optimizations-nonce']
Run PHPCS inspection: views/op-cache.php#L4
Overriding WordPress globals is prohibited. Found assignment to $status
Run PHPCS inspection: views/op-cache.php#L11
Array keys must be surrounded by spaces unless they contain a string or an integer.
Run PHPCS inspection: views/op-cache.php#L12
Array keys must be surrounded by spaces unless they contain a string or an integer.
Run PHPCS inspection
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run PHPCS inspection: includes/Optimizations/General.php#L140
wp_redirect() found. Using wp_safe_redirect(), along with the allowed_redirect_hosts filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.
Run PHPCS inspection: views/op-cache.php#L11
Processing form data without nonce verification.
Run PHPCS inspection: views/op-cache.php#L11
Processing form data without nonce verification.
Run PHPCS inspection: views/op-cache.php#L12
Processing form data without nonce verification.
Run PHPCS inspection: views/email.php#L19
Processing form data without nonce verification.
Run PHPCS inspection: views/email.php#L19
Processing form data without nonce verification.
Run PHPCS inspection: views/email.php#L70
Processing form data without nonce verification.
Run PHPCS inspection: views/email.php#L70
Processing form data without nonce verification.
Run PHPCS inspection: views/email.php#L76
Processing form data without nonce verification.
Run PHPCS inspection: views/email.php#L76
Processing form data without nonce verification.