WooCommerce Conditional Payment Methods 1.11.1

Does "WooCommerce Conditional Payment Methods" work with WordPress 5.7.2 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: 600.96 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.7.2
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=debaf76394
Aspect after-activation
HTTP status 403
Load time 0.953 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.204 s
Memory usage 3.18 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.277 s0.274 s-0.003 s2.82 MiB3.39 MiB+ 582.98 KiB
/wp-admin/edit.php0.175 s0.197 s+0.022 s2.86 MiB3.44 MiB+ 586.98 KiB
/wp-admin/post-new.php0.874 s0.935 s+0.061 s5.02 MiB5.61 MiB+ 597.52 KiB
/wp-admin/upload.php0.456 s0.265 s-0.191 s2.7 MiB3.33 MiB+ 644.41 KiB
/wp-admin/options-writing.php0.150 s0.165 s+0.015 s2.71 MiB3.31 MiB+ 612.33 KiB
/wp-admin/media-new.php0.342 s0.173 s-0.169 s2.67 MiB3.3 MiB+ 645.2 KiB
/wp-admin/edit-tags.php?taxonomy=category0.196 s0.320 s+0.124 s2.77 MiB3.34 MiB+ 581.48 KiB
/wp-admin/post-new.php?post_type=page1.177 s0.648 s-0.529 s5.01 MiB5.59 MiB+ 592.48 KiB
/wp-admin/options-discussion.php0.258 s0.289 s+0.031 s2.68 MiB3.31 MiB+ 645.46 KiB
/wp-admin/edit-comments.php0.238 s0.232 s-0.006 s2.78 MiB3.34 MiB+ 580.41 KiB
/0.254 s0.246 s-0.008 s2.65 MiB3.18 MiB+ 541.27 KiB
Average 0.400 s0.340 s-0.059 s3.15 MiB3.74 MiB+ 600.96 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,95617021
JavaScript10.0%220122
XML0.5%1001
CSS0.5%1001
Total 2,196 182 25

PHP Code Analysis | More results »

Lines of code 1,899
Total complexity 401
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