Conditional Payment Methods for WooCommerce 1.16.5

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

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
1Page failed to load
  • 1 403 Forbidden
No resource errors
Performance

Memory usage: 205.59 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.8.2
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=610154038b
Aspect after-activation
HTTP status 403
Load time 0.256 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.169 s
Memory usage 3.56 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.328 s0.298 s-0.030 s3.51 MiB3.76 MiB+ 256.02 KiB
/wp-admin/edit.php0.171 s0.190 s+0.019 s3.57 MiB3.78 MiB+ 215.23 KiB
/wp-admin/post-new.php0.746 s0.655 s-0.091 s6.06 MiB6.33 MiB+ 278.27 KiB
/wp-admin/upload.php0.628 s0.369 s-0.259 s3.52 MiB3.7 MiB+ 179.23 KiB
/wp-admin/options-writing.php0.218 s0.180 s-0.038 s3.5 MiB3.68 MiB+ 183.22 KiB
/wp-admin/media-new.php0.265 s0.450 s+0.185 s3.49 MiB3.68 MiB+ 191.41 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.180 s-0.011 s3.5 MiB3.7 MiB+ 196.59 KiB
/wp-admin/post-new.php?post_type=page0.589 s0.629 s+0.040 s6.05 MiB6.32 MiB+ 273.79 KiB
/wp-admin/options-discussion.php0.444 s0.257 s-0.187 s3.5 MiB3.68 MiB+ 179.72 KiB
/wp-admin/edit-comments.php0.231 s0.209 s-0.022 s3.52 MiB3.7 MiB+ 179.22 KiB
/0.281 s0.191 s-0.090 s3.43 MiB3.56 MiB+ 128.77 KiB
Average 0.372 s0.328 s-0.044 s3.97 MiB4.17 MiB+ 205.59 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,98917321
JavaScript9.9%220122
CSS0.4%1001
XML0.4%1001
Total 2,229 185 25

PHP Code Analysis | More results »

Lines of code 1,932
Total complexity 422
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

The log file is empty.

See also: All tests for this plugin, How to Hide Conditional Payment Methods for WooCommerce Meta Boxes