Skip to content

Prepare release v2.0.0 #19

Prepare release v2.0.0

Prepare release v2.0.0 #19

Triggered via pull request August 21, 2024 09:45
Status Failure
Total duration 35s
Artifacts

lint.yml

on: pull_request
PHP Code Sniffer
22s
PHP Code Sniffer
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 11 warnings
PHP Code Sniffer: uninstall.php#L16
String "DROP TABLE IF EXISTS " does not require double quotes; use single quotes instead
PHP Code Sniffer: uninstall.php#L17
String "DROP TABLE IF EXISTS " does not require double quotes; use single quotes instead
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L4
Missing doc comment for class WPCP_Admin
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L14
Missing short description in doc comment
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L25
There must be exactly one blank line before the tags in a doc comment
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L28
"require_once" is a statement not a function; no parentheses are required
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L28
Use the __DIR__ constant instead of calling dirname(__FILE__) (PHP >= 5.3)
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L29
"require_once" is a statement not a function; no parentheses are required
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L29
Space before opening parenthesis of function call prohibited
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L29
Use the __DIR__ constant instead of calling dirname(__FILE__) (PHP >= 5.3)
PHP Code Sniffer
Process completed with exit code 2.
PHP Code Sniffer
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L12
Property name "$_instance" should not be prefixed with an underscore to indicate visibility
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L92
Processing form data without nonce verification.
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L92
Processing form data without nonce verification.
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L93
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.
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L124
Loose comparisons are not allowed. Expected: "==="; Found: "=="
PHP Code Sniffer: includes/admin/class-wpcp-admin.php#L126
A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
PHP Code Sniffer: includes/admin/views/metabox/campaign-status.php#L54
Calling current_time() with a $type of "timestamp" or "U" is strongly discouraged as it will not return a Unix (UTC) timestamp. Please consider using a non-timestamp format or otherwise refactoring this code.
PHP Code Sniffer: includes/admin/views/metabox/action-metabox.php#L14
Processing form data without nonce verification.
PHP Code Sniffer: includes/admin/views/metabox/action-metabox.php#L14
Processing form data without nonce verification.
PHP Code Sniffer: includes/admin/views/metabox/action-metabox.php#L79
Processing form data without nonce verification.