Closed georgestephanis closed 2 years ago
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/remove_mu_plugins_batcache_on_uninstall.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 4 WARNINGS AFFECTING 8 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
27 | WARNING | file_get_contents() is discouraged. Use wp_remote_get() for remote URLs instead. (WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents)
28 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not remove Extending Batcache settings from $global_config_file. Please edit
| | that file and remove the line containing the function 'global $batcache;'. Then refresh this page. orcontact Pressable Support for help"'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
32 | WARNING | file_get_contents() is discouraged. Use wp_remote_get() for remote URLs instead. (WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents)
33 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not remove Extending Batcache settings from $global_config_file. Please edit
| | that file and remove the line containing the function 'global $batcache;'. Then refresh this page. orcontact Pressable Support for help"'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
63 | WARNING | file_get_contents() is discouraged. Use wp_remote_get() for remote URLs instead. (WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents)
64 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not remove Extending Batcache settings from $global_config_file. Please edit
| | that file and remove the line containing the function 'global $batcache;'. Then refresh this page. orcontact Pressable Support for help"'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
68 | WARNING | file_get_contents() is discouraged. Use wp_remote_get() for remote URLs instead. (WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents)
69 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not remove Extending Batcache settings from $global_config_file. Please edit
| | that file and remove the line containing the function 'global $batcache;'. Then refresh this page. orcontact Pressable Support for help"'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/settings-page.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 39 WARNINGS AFFECTING 47 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
20 | WARNING | [ ] Processing form data without nonce verification. (WordPress.Security.NonceVerification.Recommended)
20 | WARNING | [ ] Processing form data without nonce verification. (WordPress.Security.NonceVerification.Recommended)
25 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
26 | WARNING | [ ] Found precision alignment of 3 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
33 | ERROR | [ ] Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
37 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
44 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
45 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
46 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
49 | WARNING | [ ] Found precision alignment of 3 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
53 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
54 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
55 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
58 | WARNING | [ ] Found precision alignment of 3 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
62 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
63 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
64 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
67 | WARNING | [ ] Found precision alignment of 3 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
73 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
74 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
75 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
78 | WARNING | [ ] Found precision alignment of 3 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
84 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
86 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
91 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
97 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
97 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
103 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
103 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
109 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
109 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
118 | ERROR | [ ] Resource version not set in call to wp_enqueue_style(). This means new versions of the style will not always be loaded due to browser caching. (WordPress.WP.EnqueuedResourceParameters.MissingVersion)
124 | WARNING | [ ] Found precision alignment of 3 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
129 | WARNING | [ ] Found precision alignment of 3 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
131 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
132 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
133 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
134 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
135 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
136 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
137 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
141 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
142 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
143 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
154 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
192 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
205 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
208 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$remove_pressable_branding_tab_options['branding_on_off_radio_button']'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
239 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
252 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
255 | WARNING | [ ] This comment is 86% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/settings-register.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 10 WARNINGS AFFECTING 13 LINES
----------------------------------------------------------------------------------------------------------------------------------------
27 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
49 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
140 | WARNING | [ ] This comment is 62% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
149 | WARNING | [ ] This comment is 78% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
183 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
183 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
204 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
204 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
226 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
226 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
248 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
248 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
270 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
270 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
292 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
292 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
318 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
337 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
352 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/exclude_jpg_png_webp_from_cdn.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
24 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
30 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
32 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
44 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
44 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
61 | ERROR | Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
81 | WARNING | Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
87 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/object_cache_admin_bar.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 14 WARNINGS AFFECTING 15 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
15 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
17 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
21 | WARNING | [ ] Found precision alignment of 3 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
24 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
28 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
30 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
32 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
43 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
43 | WARNING | [ ] This comment is 73% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
50 | WARNING | [ ] This comment is 78% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
52 | WARNING | [ ] This comment is 73% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
61 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
160 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
163 | ERROR | [ ] date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead. (WordPress.DateTime.RestrictedFunctions.date_date)
167 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$response'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/cdn_exclude_specific_file.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
26 | WARNING | This comment is 67% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/flush_cache_on_page_edit.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
| | (WordPress.DateTime.RestrictedFunctions.date_date)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/flush_cache_on_theme_plugin_update.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 5 WARNINGS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
19 | WARNING | [ ] This comment is 54% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
24 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
24 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
25 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
25 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
33 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
33 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
34 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
34 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
41 | ERROR | [ ] date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
| | (WordPress.DateTime.RestrictedFunctions.date_date)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/turn_on_off_cdn.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AND 46 WARNINGS AFFECTING 59 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 | WARNING | [ ] This comment is 42% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
17 | WARNING | [ ] This comment is 75% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
23 | WARNING | [ ] This comment is 50% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
44 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_init)
50 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
51 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
52 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
53 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
54 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
55 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_exec)
56 | WARNING | [ ] This comment is 100% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
57 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_close)
67 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
93 | ERROR | [ ] Empty FOREACH statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedForeach)
97 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
97 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
100 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
111 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
129 | ERROR | [ ] Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
150 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_init)
151 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt_array)
168 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_exec)
169 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_error)
171 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_close)
185 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
191 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
191 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
214 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
226 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
238 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
247 | WARNING | [ ] This comment is 60% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
249 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
272 | WARNING | [ ] This comment is 59% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
275 | WARNING | [ ] This comment is 70% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
279 | WARNING | [ ] This comment is 50% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
298 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_init)
304 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
305 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
306 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
307 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
308 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
309 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_exec)
311 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_close)
320 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
343 | ERROR | [ ] Empty FOREACH statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedForeach)
348 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
348 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
351 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
362 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
376 | ERROR | [ ] Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
404 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_init)
405 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt_array)
422 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_exec)
423 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_error)
425 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_close)
435 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
441 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
441 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
458 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
471 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
480 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
492 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
501 | WARNING | [ ] This comment is 60% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/api_connection.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 15 WARNINGS AFFECTING 22 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_init)
20 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
21 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
22 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
23 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
24 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
25 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_exec)
32 | WARNING | [ ] Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_close)
38 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
45 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
60 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
69 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
69 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
96 | ERROR | [ ] Expected 1 space after closing brace; newline found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace)
112 | ERROR | [ ] extract() usage is highly discouraged, due to the complexity and unintended issues it might cause. (WordPress.PHP.DontExtract.extract_extract)
161 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
161 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
170 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
179 | WARNING | [ ] This comment is 60% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
193 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
193 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
203 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
203 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
220 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
238 | ERROR | [ ] Empty ELSEIF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElseif)
238 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
238 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
240 | WARNING | [ ] This comment is 62% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/exempt_page_from_batcache.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 6 WARNINGS AFFECTING 11 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
31 | WARNING | [ ] This comment is 54% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
35 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
35 | WARNING | [ ] This comment is 67% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
39 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
48 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
54 | ERROR | [ ] All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. (WordPress.Security.EscapeOutput.UnsafePrintingFunction)
65 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
65 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
82 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
124 | WARNING | [ ] file_get_contents() is discouraged. Use wp_remote_get() for remote URLs instead. (WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents)
125 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not remove Extending Batcache settings from $global_config_file. Please
| | edit that file and remove the line containing the function 'global $batcache;'. Then refresh this page. orcontact Pressable Support for help"'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
129 | WARNING | [ ] file_get_contents() is discouraged. Use wp_remote_get() for remote URLs instead. (WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents)
130 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not remove Extending Batcache settings from $global_config_file. Please
| | edit that file and remove the line containing the function 'global $batcache;'. Then refresh this page. orcontact Pressable Support for help"'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/wp-write-to-file-lib.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 19 WARNINGS AFFECTING 17 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
13 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
14 | WARNING | [ ] mt_rand() is discouraged. Use the far less predictable wp_rand() instead. (WordPress.WP.AlternativeFunctions.rand_mt_rand)
16 | WARNING | [ ] mt_rand() is discouraged. Use the far less predictable wp_rand() instead. (WordPress.WP.AlternativeFunctions.rand_mt_rand)
21 | WARNING | [ ] Silencing errors is strongly discouraged. Use proper error checking instead. Found: @fopen( $path,... (WordPress.PHP.NoSilencedErrors.Discouraged)
21 | WARNING | [ ] File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen() (WordPress.WP.AlternativeFunctions.file_system_read_fopen)
22 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
25 | WARNING | [ ] File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose() (WordPress.WP.AlternativeFunctions.file_system_read_fclose)
33 | WARNING | [ ] This comment is 48% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
50 | WARNING | [ ] Silencing errors is strongly discouraged. Use proper error checking instead. Found: @is_file( $my_file ... (WordPress.PHP.NoSilencedErrors.Discouraged)
50 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
60 | WARNING | [ ] trigger_error() found. Debug code should not normally be used in production. (WordPress.PHP.DevelopmentFunctions.error_log_trigger_error)
60 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Error: file $my_file is not writable."'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
78 | WARNING | [ ] trigger_error() found. Debug code should not normally be used in production. (WordPress.PHP.DevelopmentFunctions.error_log_trigger_error)
78 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"wp_config_file_replace_line: Error - file $my_file could not be loaded."'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
84 | WARNING | [x] Loose comparisons are not allowed. Expected: "!=="; Found: "!=" (Universal.Operators.StrictComparisons.LooseNotEqual)
84 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
98 | WARNING | [ ] File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen() (WordPress.WP.AlternativeFunctions.file_system_read_fopen)
103 | WARNING | [ ] trigger_error() found. Debug code should not normally be used in production. (WordPress.PHP.DevelopmentFunctions.error_log_trigger_error)
103 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"wp_config_file_replace_line: Error - could not write to $my_file"'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
110 | WARNING | [x] Loose comparisons are not allowed. Expected: "!=="; Found: "!=" (Universal.Operators.StrictComparisons.LooseNotEqual)
110 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
117 | WARNING | [ ] This comment is 53% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
131 | WARNING | [ ] File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose() (WordPress.WP.AlternativeFunctions.file_system_read_fclose)
136 | WARNING | [ ] Silencing errors is strongly discouraged. Use proper error checking instead. Found: @opcache_invalidate( $my_file ... (WordPress.PHP.NoSilencedErrors.Discouraged)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/cache-purge-admin-bar.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 9 WARNINGS AFFECTING 11 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
28 | WARNING | This comment is 75% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
38 | WARNING | Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
39 | WARNING | Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
41 | WARNING | Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
45 | WARNING | Found precision alignment of 3 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
48 | WARNING | Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
49 | WARNING | Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
53 | WARNING | Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
55 | WARNING | Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
71 | ERROR | date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead. (WordPress.DateTime.RestrictedFunctions.date_date)
75 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$response'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/remove_pressable_branding.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
27 | ERROR | Expected 1 space after closing brace; newline found
| | (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace)
----------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/exclude_json_js_from_cdn.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
18 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
24 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
26 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
35 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
35 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
52 | ERROR | Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
72 | WARNING | Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
78 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/cdn_exclude_css.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
31 | WARNING | This comment is 50% valid code; is this commented out code?
| | (Squiz.PHP.CommentedOutCode.Found)
---------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/cdn_cache_extender.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 3 WARNINGS AFFECTING 9 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
21 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
22 | WARNING | This comment is 56% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
23 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
24 | WARNING | This comment is 50% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
32 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
32 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
49 | ERROR | Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
67 | WARNING | Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
74 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/flush_batcache_for_particular_page.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 4 WARNINGS AFFECTING 7 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
37 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
37 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
54 | ERROR | Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
74 | WARNING | Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
174 | WARNING | Not using strict comparison for array_search; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
188 | ERROR | date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead. (WordPress.DateTime.RestrictedFunctions.date_date)
192 | WARNING | json_encode() is discouraged. Use wp_json_encode() instead. (WordPress.WP.AlternativeFunctions.json_encode_json_encode)
202 | WARNING | json_encode() is discouraged. Use wp_json_encode() instead. (WordPress.WP.AlternativeFunctions.json_encode_json_encode)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/flush_object_cache.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 | ERROR | Processing form data without nonce verification. (WordPress.Security.NonceVerification.Missing)
36 | ERROR | All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. (WordPress.Security.EscapeOutput.UnsafePrintingFunction)
43 | ERROR | date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
| | (WordPress.DateTime.RestrictedFunctions.date_date)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/cdn_exclude_jpg_png_webp.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
33 | WARNING | Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
-----------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/exclude_css_from_cdn.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
18 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
24 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
26 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
35 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
35 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
52 | ERROR | Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
72 | WARNING | Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
78 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/exclude_particular_file_from_cdn.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------
27 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
33 | ERROR | Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
35 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
43 | ERROR | Empty ELSE statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElse)
-------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/extend_batcache.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 4 WARNINGS AFFECTING 10 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
30 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
39 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
45 | ERROR | [ ] All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. (WordPress.Security.EscapeOutput.UnsafePrintingFunction)
56 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
56 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$classes'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
73 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
106 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
114 | WARNING | [ ] file_get_contents() is discouraged. Use wp_remote_get() for remote URLs instead. (WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents)
115 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not remove Extending Batcache settings from $global_config_file. Please
| | edit that file and remove the line containing the function 'global $batcache;'. Then refresh this page. orcontact Pressable Support for help"'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
119 | WARNING | [ ] file_get_contents() is discouraged. Use wp_remote_get() for remote URLs instead. (WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents)
120 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not remove Extending Batcache settings from $global_config_file. Please
| | edit that file and remove the line containing the function 'global $batcache;'. Then refresh this page. orcontact Pressable Support for help"'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/purge_cdn_cache.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 15 WARNINGS AFFECTING 20 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | ERROR | Processing form data without nonce verification. (WordPress.Security.NonceVerification.Missing)
20 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_init)
26 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
27 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
28 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
29 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
30 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt)
31 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_exec)
38 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_close)
44 | WARNING | Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
51 | ERROR | Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
69 | ERROR | extract() usage is highly discouraged, due to the complexity and unintended issues it might cause. (WordPress.PHP.DontExtract.extract_extract)
79 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_init)
80 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_setopt_array)
97 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_exec)
98 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_error)
99 | WARNING | Using cURL functions is highly discouraged. Use wp_remote_get() instead. (WordPress.WP.AlternativeFunctions.curl_curl_close)
105 | ERROR | All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. (WordPress.Security.EscapeOutput.UnsafePrintingFunction)
113 | ERROR | date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
| | (WordPress.DateTime.RestrictedFunctions.date_date)
122 | WARNING | Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/custom-functions/flush_single_page_toolbar.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 4 WARNINGS AFFECTING 9 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
105 | WARNING | [ ] json_encode() is discouraged. Use wp_json_encode() instead. (WordPress.WP.AlternativeFunctions.json_encode_json_encode)
163 | WARNING | [ ] Not using strict comparison for array_search; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
175 | ERROR | [ ] date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead. (WordPress.DateTime.RestrictedFunctions.date_date)
185 | ERROR | [ ] Visibility must be declared on method "load_toolbar_js" (Squiz.Scope.MethodScope.Missing)
200 | ERROR | [ ] Visibility must be declared on method "load_remove_branding_toolbar_js" (Squiz.Scope.MethodScope.Missing)
217 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'admin_url'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
218 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'wp_create_nonce'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
230 | WARNING | [ ] This comment is 78% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
232 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/admin-menu.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 7 WARNINGS AFFECTING 11 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | WARNING | [ ] This comment is 47% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
16 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
27 | ERROR | [ ] Strings should have translatable content (WordPress.WP.I18n.NoEmptyStrings)
34 | WARNING | [ ] This comment is 44% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
54 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
89 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
94 | WARNING | [ ] Processing form data without nonce verification. (WordPress.Security.NonceVerification.Recommended)
96 | WARNING | [ ] Processing form data without nonce verification. (WordPress.Security.NonceVerification.Recommended)
97 | WARNING | [ ] Found precision alignment of 2 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
99 | ERROR | [ ] All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
| | (WordPress.Security.EscapeOutput.UnsafePrintingFunction)
107 | ERROR | [ ] All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
| | (WordPress.Security.EscapeOutput.UnsafePrintingFunction)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/settings-callbacks.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 122 ERRORS AND 15 WARNINGS AFFECTING 68 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [ ] Empty IF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedIf)
21 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
26 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'plugin_dir_url'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
26 | ERROR | [ ] String concat is not required here; use a single string instead (Generic.Strings.UnnecessaryStringConcat.Found)
42 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$api_tab'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
52 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
52 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
59 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$mpcp_url'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
59 | ERROR | [ ] String concat is not required here; use a single string instead (Generic.Strings.UnnecessaryStringConcat.Found)
59 | ERROR | [ ] String concat is not required here; use a single string instead (Generic.Strings.UnnecessaryStringConcat.Found)
92 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
92 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
92 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
92 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'wp_create_nonce'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
92 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
92 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
99 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'get_option'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
115 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
115 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
115 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
118 | WARNING | [ ] This comment is 75% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
119 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
119 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
135 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
135 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
135 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
139 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
139 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
143 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'get_option'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
159 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
159 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
159 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
162 | WARNING | [ ] This comment is 75% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
163 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
163 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
167 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'get_option'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
183 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
183 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
183 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
186 | WARNING | [ ] This comment is 75% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
187 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
187 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
191 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'get_option'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
195 | WARNING | [ ] This comment is 50% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
243 | WARNING | [ ] This comment is 67% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
245 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
245 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$value'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
245 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
247 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
268 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
268 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
268 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
268 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'wp_create_nonce'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
268 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
268 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
276 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'get_option'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
292 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
292 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
292 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
295 | WARNING | [ ] This comment is 75% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
296 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
296 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
312 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
312 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
312 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
315 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
315 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
331 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
331 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
331 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
334 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
334 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
350 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
350 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
350 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
353 | WARNING | [ ] This comment is 75% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
354 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
354 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
368 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
368 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
368 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$value'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
369 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
369 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
415 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
425 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "==" (Universal.Operators.StrictComparisons.LooseEqual)
425 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
425 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
428 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
454 | WARNING | [ ] This comment is 74% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
462 | WARNING | [ ] This comment is 79% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
473 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
486 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
486 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
486 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$value'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
487 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
487 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
489 | WARNING | [ ] This comment is 75% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
491 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
504 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
504 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
504 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$value'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
505 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
505 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
507 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
535 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
535 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
557 | ERROR | [ ] Version parameter is not explicitly set or has been set to an equivalent of "false" for wp_enqueue_style; This means that the WordPress core version will be used which is not recommended for plugin or theme
| | development. (WordPress.WP.EnqueuedResourceParameters.NoExplicitVersion)
569 | WARNING | [ ] This comment is 74% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
585 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
585 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
590 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
590 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
590 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$value'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
591 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
591 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
594 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
594 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
594 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$value'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
595 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
595 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
607 | WARNING | [ ] This comment is 74% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
623 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
623 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
628 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
628 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
628 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$value'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
629 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
629 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
632 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
632 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
632 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$value'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
633 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
633 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
674 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$id'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
674 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$value'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
674 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
676 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$label'. (WordPress.Security.EscapeOutput.OutputNotEscaped)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/georgestephanis/code/pressable-cache-management-plugin/admin/settings-validate.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
----------------------------------------------------------------------------------------------------------------------------------------
25 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
25 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
34 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
34 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
43 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
43 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
52 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
52 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
83 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
83 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
92 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
92 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
101 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
101 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
103 | WARNING | [ ] Found precision alignment of 1 spaces. (WordPress.WhiteSpace.PrecisionAlignment.Found)
110 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: "=="
| | (Universal.Operators.StrictComparisons.LooseEqual)
110 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------
Automatic scanning on PRs can be implemented via this .github/workflows/phpcs.yml
file leveraging https://github.com/rtCamp/action-phpcs-code-review
on: pull_request
name: Code tests
jobs:
runPHPCSInspection:
name: Run PHPCS inspection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run PHPCS inspection
uses: rtCamp/action-phpcs-code-review@master
env:
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
SKIP_FOLDERS: "tests,.github"
with:
args: "WordPress-Extra"
This PR so far just introduces a
.phpcs.xml
file, and runsphpcbf
to catch the quickly correctable issues. There's a lot more that turns up from a phpcs scan -- I'll include some of it down in the comments.This would work towards #2