WooCommerce Conditional Payment Methods 1.12.0

Does "WooCommerce Conditional Payment Methods" work with WordPress 5.8 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: 638.47 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 version5.8
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=2c7863a684
Aspect after-activation
HTTP status 403
Load time 3.208 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.217 s
Memory usage 3.51 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.614 s0.474 s-0.140 s3.08 MiB3.72 MiB+ 656.48 KiB
/wp-admin/edit.php0.279 s0.270 s-0.009 s3.11 MiB3.76 MiB+ 657.68 KiB
/wp-admin/post-new.php1.375 s1.138 s-0.237 s5.27 MiB5.85 MiB+ 596.52 KiB
/wp-admin/upload.php0.705 s0.592 s-0.113 s3.03 MiB3.67 MiB+ 653.91 KiB
/wp-admin/options-writing.php0.192 s0.214 s+0.022 s3.02 MiB3.65 MiB+ 637.83 KiB
/wp-admin/media-new.php0.266 s0.244 s-0.022 s3.01 MiB3.65 MiB+ 654.7 KiB
/wp-admin/edit-tags.php?taxonomy=category0.227 s0.232 s+0.005 s3.04 MiB3.68 MiB+ 654.98 KiB
/wp-admin/post-new.php?post_type=page1.743 s1.114 s-0.629 s5.26 MiB5.83 MiB+ 591.48 KiB
/wp-admin/options-discussion.php0.269 s0.333 s+0.064 s3 MiB3.64 MiB+ 654.96 KiB
/wp-admin/edit-comments.php0.248 s0.265 s+0.017 s3.04 MiB3.68 MiB+ 653.91 KiB
/0.369 s0.299 s-0.070 s2.91 MiB3.51 MiB+ 610.71 KiB
Average 0.572 s0.470 s-0.101 s3.43 MiB4.06 MiB+ 638.47 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.1%1,97117121
JavaScript10.0%220122
CSS0.5%1001
XML0.5%1001
Total 2,211 183 25

PHP Code Analysis | More results »

Lines of code 1,914
Total complexity 409
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

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