WooCommerce Conditional Payment Methods 1.10.0

Does "WooCommerce Conditional Payment Methods" work with WordPress 5.7 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: 610.39 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
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=943c87087b
Aspect after-activation
HTTP status 403
Load time 1.300 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.257 s
Memory usage 3.19 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.254 s0.285 s+0.031 s2.82 MiB3.4 MiB+ 592.41 KiB
/wp-admin/edit.php0.183 s0.200 s+0.017 s2.86 MiB3.45 MiB+ 596.4 KiB
/wp-admin/post-new.php0.858 s0.751 s-0.107 s5.02 MiB5.62 MiB+ 606.94 KiB
/wp-admin/upload.php0.465 s0.418 s-0.047 s2.7 MiB3.33 MiB+ 653.83 KiB
/wp-admin/options-writing.php0.272 s0.175 s-0.097 s2.71 MiB3.32 MiB+ 621.75 KiB
/wp-admin/media-new.php0.220 s0.178 s-0.042 s2.67 MiB3.31 MiB+ 654.63 KiB
/wp-admin/edit-tags.php?taxonomy=category0.178 s0.210 s+0.032 s2.77 MiB3.35 MiB+ 590.91 KiB
/wp-admin/post-new.php?post_type=page1.178 s0.711 s-0.467 s5.01 MiB5.6 MiB+ 601.9 KiB
/wp-admin/options-discussion.php0.301 s0.225 s-0.076 s2.68 MiB3.31 MiB+ 654.88 KiB
/wp-admin/edit-comments.php0.264 s0.223 s-0.041 s2.78 MiB3.35 MiB+ 589.83 KiB
/0.645 s0.228 s-0.417 s2.65 MiB3.19 MiB+ 550.88 KiB
Average 0.438 s0.328 s-0.110 s3.15 MiB3.75 MiB+ 610.39 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
PHP88.7%1,89316921
JavaScript10.3%220122
CSS0.5%1001
XML0.5%1001
Total 2,133 181 25

PHP Code Analysis | More results »

Lines of code 1,835
Total complexity 385
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 119
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