WooCommerce Conditional Payment Methods 1.13.0

Does "WooCommerce Conditional Payment Methods" work with WordPress 5.8.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: 634.14 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.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=7c33961c82
Aspect after-activation
HTTP status 403
Load time 2.000 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.271 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.270 s0.373 s+0.103 s3.08 MiB3.72 MiB+ 656.48 KiB
/wp-admin/edit.php0.175 s0.196 s+0.021 s3.11 MiB3.75 MiB+ 657.68 KiB
/wp-admin/post-new.php1.739 s1.098 s-0.641 s5.27 MiB5.85 MiB+ 596.52 KiB
/wp-admin/upload.php0.554 s0.312 s-0.242 s3.03 MiB3.67 MiB+ 653.91 KiB
/wp-admin/options-writing.php0.156 s0.156 s+0.000 s3.02 MiB3.65 MiB+ 637.83 KiB
/wp-admin/media-new.php0.235 s0.208 s-0.027 s3.01 MiB3.65 MiB+ 654.7 KiB
/wp-admin/edit-tags.php?taxonomy=category0.172 s0.192 s+0.020 s3.04 MiB3.68 MiB+ 654.98 KiB
/wp-admin/post-new.php?post_type=page1.106 s0.842 s-0.264 s5.26 MiB5.84 MiB+ 591.48 KiB
/wp-admin/options-discussion.php0.288 s0.258 s-0.030 s3 MiB3.64 MiB+ 654.96 KiB
/wp-admin/edit-comments.php0.220 s0.192 s-0.028 s3.04 MiB3.68 MiB+ 653.91 KiB
/0.318 s0.210 s-0.108 s2.96 MiB3.51 MiB+ 563.05 KiB
Average 0.476 s0.367 s-0.109 s3.44 MiB4.06 MiB+ 634.14 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,97217121
JavaScript9.9%220122
XML0.5%1001
CSS0.5%1001
Total 2,212 183 25

PHP Code Analysis | More results »

Lines of code 1,915
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