FILE: ...s-mailchimp-tools/inc/admin/class-mailchimp-campaign-preview.php ---------------------------------------------------------------------- FOUND 56 ERRORS AND 19 WARNINGS AFFECTING 38 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class | | name with "class-" prepended. Expected | | class-campaignpreview.php, but found | | class-mailchimp-campaign-preview.php. 1 | ERROR | [ ] Missing file doc comment 10 | ERROR | [ ] Missing member variable doc comment 12 | ERROR | [ ] Missing member variable doc comment 14 | ERROR | [ ] Missing member variable doc comment 16 | ERROR | [x] No space after opening parenthesis is prohibited 16 | ERROR | [ ] Missing doc comment for function __construct() 16 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 16 | ERROR | [x] Incorrect spacing between argument "$post_type" | | and equals sign; expected 1 but found 0 16 | ERROR | [x] Incorrect spacing between default value and | | equals sign for argument "$post_type"; expected | | 1 but found 0 16 | ERROR | [x] No space before closing parenthesis is | | prohibited 17 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 17 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 23 | ERROR | [x] No space after opening parenthesis is prohibited 23 | ERROR | [ ] Missing doc comment for function preview_link() 23 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 23 | ERROR | [x] No space before closing parenthesis is | | prohibited 24 | WARNING | [ ] Processing form data without nonce verification. 24 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_GET['post']. Use | | isset() or empty() to check the index exists | | before using it 24 | ERROR | [ ] $_GET data not unslashed before sanitization. | | Use wp_unslash() or similar 24 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_GET['post'] 29 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 29 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 29 | ERROR | [x] Concat operator must be surrounded by a single | | space 33 | ERROR | [ ] Missing doc comment for function add_meta_box() 34 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: | | $_SERVER['REQUEST_URI']. Use isset() or empty() | | to check the index exists before using it 34 | ERROR | [ ] $_SERVER data not unslashed before sanitization. | | Use wp_unslash() or similar 34 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_SERVER['REQUEST_URI'] 38 | WARNING | [ ] Processing form data without nonce verification. 38 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_GET['post']. Use | | isset() or empty() to check the index exists | | before using it 38 | ERROR | [ ] $_GET data not unslashed before sanitization. | | Use wp_unslash() or similar 38 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_GET['post'] 46 | ERROR | [ ] Missing doc comment for function | | render_meta_box() 47 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 13 spaces but found 1 | | space 48 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 9 spaces but found 1 space 49 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 11 spaces but found 1 | | space 51 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 52 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 10 spaces but found 1 | | space 53 | WARNING | [x] Array double arrow not aligned correctly; | | expected 12 space(s) between "'post'" and double | | arrow, but found 1. 55 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'web_id'" and | | double arrow, but found 1. 63 | ERROR | [ ] You must use "/**" style comments for a function | | comment 70 | WARNING | [ ] Processing form data without nonce verification. 74 | ERROR | [ ] Overriding WordPress globals is prohibited. | | Found assignment to $post 74 | WARNING | [ ] Processing form data without nonce verification. 74 | ERROR | [ ] $_GET data not unslashed before sanitization. | | Use wp_unslash() or similar 74 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_GET['post_id'] 78 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 80 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 80 | ERROR | [ ] Use Yoda Condition checks, you must. 81 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'wp_strip_all_tags'. 81 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 81 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 82 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF | | instead 82 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 82 | ERROR | [ ] Use Yoda Condition checks, you must. 84 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 13 spaces but found 1 | | space 85 | WARNING | [ ] Silencing errors is strongly discouraged. Use | | proper error checking instead. Found: | | @$doc->loadHTML( ... 87 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 87 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 88 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 90 | WARNING | [ ] Silencing errors is strongly discouraged. Use | | proper error checking instead. Found: | | @$fragment->loadHTML( ... 91 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 91 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 91 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 91 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 93 | ERROR | [ ] Object property "$childNodes" is not in valid | | snake_case format, try "$child_nodes" 93 | ERROR | [x] Expected 1 space(s) after closing parenthesis; | | found 0 93 | ERROR | [x] Space between opening control structure and | | closing parenthesis is required 94 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 94 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 94 | ERROR | [ ] Object property "$firstChild" is not in valid | | snake_case format, try "$first_child" 101 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$doc'. 108 | ERROR | [ ] Missing doc comment for function | | bless_query_var() 109 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 109 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 37 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...wordpress-mailchimp-tools/inc/admin/class-mailchimp-settings.php ---------------------------------------------------------------------- FOUND 10 ERRORS AFFECTING 9 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class name | | with "class-" prepended. Expected | | class-mailchimpsettings.php, but found | | class-mailchimp-settings.php. 1 | ERROR | [ ] Missing file doc comment 9 | ERROR | [ ] There must be no blank lines after the class | | comment 13 | ERROR | [ ] Missing short description in doc comment 18 | ERROR | [ ] Missing doc comment for function get_instance() 20 | ERROR | [x] Parenthesis should always be used when | | instantiating a new object. 38 | ERROR | [ ] Missing doc comment for function add_options_page() 48 | ERROR | [ ] Missing doc comment for function | | register_settings() 68 | ERROR | [ ] Missing doc comment for function | | mailchimp_api_key_input() 82 | ERROR | [ ] Missing doc comment for function | | render_settings_page() ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ss-mailchimp-tools/inc/admin/class-mailchimp-campaign-editor.php ---------------------------------------------------------------------- FOUND 43 ERRORS AND 43 WARNINGS AFFECTING 77 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class | | name with "class-" prepended. Expected | | class-campaigneditor.php, but found | | class-mailchimp-campaign-editor.php. 1 | ERROR | [ ] Missing file doc comment 10 | ERROR | [ ] Empty line not required before block comment 17 | ERROR | [ ] You must use "/**" style comments for a member | | variable comment 19 | ERROR | [ ] Missing member variable doc comment 21 | ERROR | [ ] Missing member variable doc comment 23 | ERROR | [ ] Missing doc comment for function | | render_meta_box() 24 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 6 spaces but found 1 space 25 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 26 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 27 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 28 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 29 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 4 spaces but found 1 space 53 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 11 spaces but found 1 | | space 55 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 57 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 58 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 73 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 74 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 8 spaces but found 1 space 80 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 84 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'group'" and double | | arrow, but found 1. 100 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF | | instead 100 | ERROR | [x] Space before opening parenthesis of function | | call prohibited 101 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 102 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 8 spaces but found 1 space 109 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 114 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 123 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 124 | ERROR | [x] Space before opening parenthesis of function | | call prohibited 127 | ERROR | [x] Space before opening parenthesis of function | | call prohibited 132 | WARNING | [x] Array double arrow not aligned correctly; | | expected 11 space(s) between "'lists'" and | | double arrow, but found 1. 133 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'segments'" and | | double arrow, but found 1. 134 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'groups'" and | | double arrow, but found 1. 135 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'templates'" and | | double arrow, but found 1. 136 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'existing'" and | | double arrow, but found 1. 138 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'web_id'" and | | double arrow, but found 1. 139 | WARNING | [x] Array double arrow not aligned correctly; | | expected 2 space(s) between "'saved_settings'" | | and double arrow, but found 1. 144 | ERROR | [ ] Missing doc comment for function process_form() 161 | ERROR | [ ] Processing form data without nonce verification. 161 | ERROR | [ ] Processing form data without nonce verification. 162 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 162 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['mailchimp'] 162 | ERROR | [ ] Processing form data without nonce verification. 182 | ERROR | [ ] Missing doc comment for function send_test() 192 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 9 spaces but found 1 space 194 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 194 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 196 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'send_type'" and | | double arrow, but found 1. 197 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 201 | ERROR | [ ] Missing doc comment for function send_campaign() 212 | ERROR | [ ] Missing doc comment for function | | create_or_update_campaign() 219 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 226 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 234 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 242 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 244 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 4 spaces but found 1 space 248 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'match'" and double | | arrow, but found 1. 250 | ERROR | [x] There must be no space between the "array" | | keyword and the opening parenthesis 252 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'field'" and | | double arrow, but found 1. 253 | WARNING | [x] Array double arrow not aligned correctly; | | expected 13 space(s) between "'op'" and double | | arrow, but found 1. 254 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'value'" and | | double arrow, but found 1. 261 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 6 spaces but found 1 space 265 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 271 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 271 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 272 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'type'" and double | | arrow, but found 1. 274 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'list_id'" and | | double arrow, but found 1. 277 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'settings'" and | | double arrow, but found 1. 279 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'title'" and double | | arrow, but found 1. 280 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'from_name'" and | | double arrow, but found 1. 281 | WARNING | [x] Array double arrow not aligned correctly; | | expected 5 space(s) between "'reply_to'" and | | double arrow, but found 1. 283 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 292 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 292 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 294 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'list_id'" and | | double arrow, but found 1. 297 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'settings'" and | | double arrow, but found 1. 299 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'title'" and double | | arrow, but found 1. 300 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'from_name'" and | | double arrow, but found 1. 301 | WARNING | [x] Array double arrow not aligned correctly; | | expected 5 space(s) between "'reply_to'" and | | double arrow, but found 1. 303 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 306 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 306 | ERROR | [ ] Use Yoda Condition checks, you must. 312 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 314 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF | | instead 318 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 346 | ERROR | [ ] Missing doc comment for function | | enqueue_assets() ---------------------------------------------------------------------- PHPCBF CAN FIX THE 55 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...mailchimp-tools/inc/admin/class-mailchimp-post-type-settings.php ---------------------------------------------------------------------- FOUND 17 ERRORS AND 11 WARNINGS AFFECTING 24 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class | | name with "class-" prepended. Expected | | class-posttypesettings.php, but found | | class-mailchimp-post-type-settings.php. 1 | ERROR | [ ] Missing file doc comment 10 | ERROR | [ ] Doc comment for parameter "$post_type" missing 16 | ERROR | [ ] There must be no blank lines after the function | | comment 19 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 21 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 25 | ERROR | [ ] Missing doc comment for function init() 30 | ERROR | [ ] Missing doc comment for function | | add_options_page() 43 | ERROR | [ ] Missing doc comment for function | | render_settings_page() 44 | ERROR | [ ] Processing form data without nonce verification. 44 | ERROR | [ ] Processing form data without nonce verification. 45 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 45 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST[$this->settings_key] 45 | ERROR | [ ] Processing form data without nonce verification. 48 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 49 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 50 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 4 spaces but found 1 space 65 | ERROR | [x] Array keys must be surrounded by spaces unless | | they contain a string or an integer. 75 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'lists'" and | | double arrow, but found 1. 76 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'segments'" and | | double arrow, but found 1. 77 | WARNING | [x] Array double arrow not aligned correctly; | | expected 9 space(s) between "'groups'" and | | double arrow, but found 1. 78 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'templates'" and | | double arrow, but found 1. 79 | WARNING | [x] Array double arrow not aligned correctly; | | expected 2 space(s) between "'post_type_obj'" | | and double arrow, but found 1. 80 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'settings_key'" and | | double arrow, but found 1. 87 | ERROR | [ ] Missing doc comment for function process_form() 88 | ERROR | [ ] Processing form data without nonce verification. 93 | ERROR | [ ] Processing form data without nonce verification. 106 | ERROR | [ ] Missing doc comment for function | | enqueue_assets() ---------------------------------------------------------------------- PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...wordpress-mailchimp-tools/inc/admin/class-mailchimp-meta-box.php ---------------------------------------------------------------------- FOUND 22 ERRORS AND 6 WARNINGS AFFECTING 13 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class | | name with "class-" prepended. Expected | | class-mcmetabox.php, but found | | class-mailchimp-meta-box.php. 1 | ERROR | [ ] Missing file doc comment 9 | ERROR | [ ] Missing member variable doc comment 9 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 4 spaces but found 1 space 10 | ERROR | [ ] Missing member variable doc comment 10 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 7 spaces but found 1 space 11 | ERROR | [ ] Missing member variable doc comment 13 | ERROR | [x] No space after opening parenthesis is prohibited 13 | ERROR | [ ] Missing doc comment for function __construct() 13 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 13 | ERROR | [x] Incorrect spacing between argument "$post_type" | | and equals sign; expected 1 but found 0 13 | ERROR | [x] Incorrect spacing between default value and | | equals sign for argument "$post_type"; expected 1 | | but found 0 13 | ERROR | [x] No space before closing parenthesis is prohibited 15 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 7 spaces but found 1 space 22 | ERROR | [ ] Missing doc comment for function add_meta_box() 34 | ERROR | [x] No space after opening parenthesis is prohibited 34 | ERROR | [ ] Missing doc comment for function process_form() 34 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 34 | ERROR | [x] Incorrect spacing between argument "$post_id" and | | equals sign; expected 1 but found 0 34 | ERROR | [x] Incorrect spacing between default value and | | equals sign for argument "$post_id"; expected 1 | | but found 0 34 | ERROR | [x] Incorrect spacing between argument "$post" and | | equals sign; expected 1 but found 0 34 | ERROR | [x] Incorrect spacing between default value and | | equals sign for argument "$post"; expected 1 but | | found 0 34 | ERROR | [x] No space before closing parenthesis is prohibited 36 | WARNING | [ ] error_log() found. Debug code should not normally | | be used in production. 40 | ERROR | [ ] Missing doc comment for function | | render_meta_box() 42 | WARNING | [ ] error_log() found. Debug code should not normally | | be used in production. 46 | ERROR | [ ] Missing doc comment for function enqueue_assets() 48 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). ---------------------------------------------------------------------- PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...oundups/vendor/inn/wordpress-mailchimp-tools/mailchimp-tools.php ---------------------------------------------------------------------- FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 5 LINES ---------------------------------------------------------------------- 2 | ERROR | [ ] You must use "/**" style comments for a file | | comment 2 | ERROR | [ ] Empty line required before block comment 16 | WARNING | [ ] error_log() found. Debug code should not normally | | be used in production. 16 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 16 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 27 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 27 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 27 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 27 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 27 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 34 | ERROR | [ ] You must use "/**" style comments for a function | | comment 35 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required ---------------------------------------------------------------------- PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...r/inn/wordpress-mailchimp-tools/templates/post-type-settings.php ---------------------------------------------------------------------- FOUND 33 ERRORS AND 2 WARNINGS AFFECTING 24 LINES ---------------------------------------------------------------------- 2 | ERROR | [ ] Missing file doc comment 2 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$post_type_obj'. 3 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$post_type_obj'. 5 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 5 | ERROR | [ ] Use Yoda Condition checks, you must. 6 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'admin_url'. 8 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'admin_url'. 15 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$settings_key'. 17 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$settings_key'. 27 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$settings_key'. 27 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$list'. 27 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$list'. 28 | ERROR | [x] Array keys must be surrounded by spaces unless | | they contain a string or an integer. 31 | ERROR | [x] Array keys must be surrounded by spaces unless | | they contain a string or an integer. 33 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$settings_key'. 34 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$segment'. 34 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$segment'. 39 | ERROR | [x] Array keys must be surrounded by spaces unless | | they contain a string or an integer. 42 | ERROR | [x] Array keys must be surrounded by spaces unless | | they contain a string or an integer. 44 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$settings_key'. 45 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$group'. 45 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$group'. 50 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$settings_key'. 51 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$subgroup'. 51 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$subgroup'. 67 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 67 | ERROR | [ ] Use Yoda Condition checks, you must. 67 | ERROR | [x] Newline required after opening brace 69 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$settings_key'. 73 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$template'. 73 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$template'. 81 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$settings_key'. 83 | ERROR | [x] Newline required after opening brace 83 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$saved_settings'. 88 | ERROR | [x] Expected 1 space after comma in function call; 2 | | found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...dups/vendor/inn/wordpress-mailchimp-tools/templates/settings.php ---------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment 2 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 4 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found 'admin_url'. 9 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. ---------------------------------------------------------------------- FILE: ...dor/inn/wordpress-mailchimp-tools/templates/campaign-preview.php ---------------------------------------------------------------------- FOUND 9 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------- 18 | ERROR | [ ] Missing file doc comment 18 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'get_bloginfo'. 18 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 18 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 20 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'get_bloginfo'. 20 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 20 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 21 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$mc_api_endpoint'. 21 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$web_id'. ---------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...vendor/inn/wordpress-mailchimp-tools/templates/campaign-edit.php ---------------------------------------------------------------------- FOUND 34 ERRORS AND 10 WARNINGS AFFECTING 36 LINES ---------------------------------------------------------------------- 2 | ERROR | [ ] Missing file doc comment 3 | ERROR | [x] Line indented incorrectly; expected 1 tabs, | | found 2 4 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 3 7 | WARNING | [ ] var_export() found. Debug code should not | | normally be used in production. 7 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'var_export'. 10 | ERROR | [x] Line indented incorrectly; expected 1 tabs, | | found 2 14 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$mc_api_endpoint'. 14 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$web_id'. 18 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$mc_api_endpoint'. 18 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$web_id'. 26 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$existing'. 38 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$list'. 38 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$list'. 40 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$list'. 40 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$list'. 42 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$list'. 42 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$list'. 54 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$segment'. 57 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$segment'. 64 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$segment'. 67 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$segment'. 74 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$segment'. 76 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$segment'. 85 | ERROR | [x] Expected 1 space after "!"; 0 found 93 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$group'. 95 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$group'. 103 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$subgroup'. 103 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$subgroup'. 113 | WARNING | [ ] This comment is 50% valid code; is this | | commented out code? 133 | ERROR | [x] Newline required after opening brace 133 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$existing'. 137 | ERROR | [x] Newline required after opening brace 141 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$template'. 143 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$template'. 153 | ERROR | [x] Newline required after opening brace 155 | WARNING | [ ] This comment is 50% valid code; is this | | commented out code? 162 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= content %><% } %> | | 165 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% _.each(actions, function(v, k) { %> | | 166 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= k %> button | | button-primary"><%= k %> | | 177 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% if (default_test_emails) { %> | | 178 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= default_test_emails %>" | | 179 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } %> /> | | 186 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$saved_settings'. ---------------------------------------------------------------------- PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ups/vendor/inn/wordpress-mailchimp-tools/mailchimp-functions.php ---------------------------------------------------------------------- FOUND 19 ERRORS AND 6 WARNINGS AFFECTING 20 LINES ---------------------------------------------------------------------- 2 | ERROR | [ ] You must use "/**" style comments for a file | | comment 2 | ERROR | [ ] Empty line required before block comment 17 | ERROR | [ ] Missing doc comment for function | | mailchimp_tools_render_template() 19 | ERROR | [ ] extract() usage is highly discouraged, due to | | the complexity and unintended issues it might | | cause. 27 | ERROR | [ ] Doc comment for parameter "$post_type" missing 27 | ERROR | [ ] Doc comment for parameter "$options" missing 39 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 39 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 40 | WARNING | [x] Array double arrow not aligned correctly; | | expected 2 space(s) between "'preview'" and | | double arrow, but found 1. 41 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'editor'" and | | double arrow, but found 1. 43 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 68 | ERROR | [ ] Doc comment for parameter "$post" missing 68 | ERROR | [ ] Doc comment for parameter "$use_cache" missing 75 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 105 | ERROR | [ ] Doc comment for parameter "$args" missing 126 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 127 | ERROR | [ ] Resource version not set in call to | | wp_register_style(). This means new versions of | | the style will not always be loaded due to | | browser caching. 132 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 155 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 159 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 159 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 160 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'type'" and double | | arrow, but found 1. 161 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'count'" and double | | arrow, but found 1. 162 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 163 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself ---------------------------------------------------------------------- PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- Time: 769ms; Memory: 14MB