WooCommerce Conditional Payment Methods 1.14.0

Does "WooCommerce Conditional Payment Methods" work with WordPress 6.1 and PHP 7.4.8? 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: 576.4 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.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=ee320d6086
Aspect after-activation
HTTP status 403
Load time 0.750 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.183 s
Memory usage 3.96 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.757 s0.400 s-0.357 s3.55 MiB4.13 MiB+ 591.05 KiB
/wp-admin/edit.php0.179 s0.331 s+0.152 s3.58 MiB4.16 MiB+ 590.16 KiB
/wp-admin/post-new.php0.954 s1.180 s+0.226 s5.48 MiB6 MiB+ 536.64 KiB
/wp-admin/upload.php0.423 s0.293 s-0.130 s3.49 MiB4.07 MiB+ 589.06 KiB
/wp-admin/options-writing.php0.253 s0.160 s-0.093 s3.48 MiB4.06 MiB+ 590.75 KiB
/wp-admin/media-new.php0.256 s0.225 s-0.031 s3.47 MiB4.04 MiB+ 589.23 KiB
/wp-admin/edit-tags.php?taxonomy=category0.200 s0.191 s-0.009 s3.5 MiB4.09 MiB+ 606.3 KiB
/wp-admin/post-new.php?post_type=page0.872 s0.889 s+0.017 s5.47 MiB5.99 MiB+ 532.2 KiB
/wp-admin/options-discussion.php0.237 s0.280 s+0.043 s3.47 MiB4.06 MiB+ 609.49 KiB
/wp-admin/edit-comments.php0.208 s0.196 s-0.012 s3.5 MiB4.1 MiB+ 609.69 KiB
/0.270 s0.210 s-0.060 s3.47 MiB3.96 MiB+ 495.85 KiB
Average 0.419 s0.396 s-0.023 s3.86 MiB4.42 MiB+ 576.4 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,97317221
JavaScript9.9%220122
XML0.5%1001
CSS0.5%1001
Total 2,213 184 25

PHP Code Analysis | More results »

Lines of code 1,916
Total complexity 410
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 6

User Metadata wp_usermeta 1

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