WooCommerce Conditional Payment Methods 1.16.0

Does "WooCommerce Conditional Payment Methods" work with WordPress 6.5.3 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
64PHP deprecation warnings
No JavaScript exceptions
1Page failed to load
  • 1 403 Forbidden
No resource errors
Performance

Memory usage: 163.65 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.5.3
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 1,000+
WordPress.org page https://wordpress.org/plugins/woo-conditional-payment-gateways/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 2

WordPress › Error

Page screenshot: WordPress › Error
URL /wp-admin/admin.php?page=wp_cpg_settings_menu
Requested URL /wp-admin/plugins.php?action=activate&plugin=woo-conditional-payment-gateways%2Fconditional-payment-gateways.php&plugin_status=all&paged=1&s&_wpnonce=00a0f83d5a
Aspect after-activation
HTTP status 403
Load time 0.272 s
Memory usage N/A
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.174 s
Memory usage 3.48 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.371 s0.326 s-0.045 s3.44 MiB3.66 MiB+ 230.71 KiB
/wp-admin/edit.php0.216 s0.190 s-0.026 s3.46 MiB3.69 MiB+ 230.13 KiB
/wp-admin/post-new.php0.896 s0.599 s-0.297 s5.59 MiB5.76 MiB+ 176.88 KiB
/wp-admin/upload.php0.529 s0.476 s-0.053 s3.38 MiB3.53 MiB+ 150.7 KiB
/wp-admin/options-writing.php0.205 s0.210 s+0.005 s3.37 MiB3.51 MiB+ 142.33 KiB
/wp-admin/media-new.php0.295 s0.278 s-0.017 s3.35 MiB3.51 MiB+ 162.61 KiB
/wp-admin/edit-tags.php?taxonomy=category0.231 s0.212 s-0.019 s3.37 MiB3.53 MiB+ 167.05 KiB
/wp-admin/post-new.php?post_type=page0.555 s0.593 s+0.038 s5.59 MiB5.75 MiB+ 168.46 KiB
/wp-admin/options-discussion.php0.311 s0.346 s+0.035 s3.36 MiB3.51 MiB+ 153.45 KiB
/wp-admin/edit-comments.php0.230 s0.236 s+0.006 s3.39 MiB3.54 MiB+ 148.86 KiB
/0.301 s0.188 s-0.113 s3.42 MiB3.48 MiB+ 68.95 KiB
Average 0.376 s0.332 s-0.044 s3.79 MiB3.95 MiB+ 163.65 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
JavaScript
Language % Lines of code Comment lines Files
PHP89.2%1,98817121
JavaScript9.9%220122
CSS0.4%1001
XML0.4%1001
Total 2,228 183 25

PHP Code Analysis | More results »

Lines of code 1,931
Total complexity 416
Median class complexity 14.0
Median method complexity 1.0
Most complex class WPCPG_Condition
Most complex function wccpg_get_checkout_fields()
Classes 14
Methods 121
Functions 9

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 5

Custom Post Types 1

ID Name
vg_gateway_conditionPayment gateways conditions

Meta Boxes

{
    "vg_gateway_condition": {
        "vg_payment_gateways_mbx": {
            "title": "Payment gateways",
            "context": "advanced"
        },
        "vg_payment_gateways_conditions_mbx": {
            "title": "Conditions",
            "context": "advanced"
        }
    }
}

PHP Error Log 64 lines

[10-May-2024 20:10:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:42 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:43 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:43 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:43 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:43 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:44 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:44 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:44 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:44 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:44 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:44 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:44 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:44 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:47 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:47 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:47 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:47 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:48 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:48 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:48 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:48 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:48 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:48 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:48 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:48 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:48 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:48 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:48 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:48 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:49 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:49 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:49 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:49 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:52 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:52 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:52 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:52 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:52 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:52 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:52 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:52 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:53 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:53 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:53 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:53 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:53 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:53 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
[10-May-2024 20:10:53 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7288
[10-May-2024 20:10:53 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2187
See also: All tests for this plugin, How to Hide Conditional Payment Methods for WooCommerce Meta Boxes