YourPlugins Conditional Cart Notices for WooCommerce 1.0.8

Does "YourPlugins Conditional Cart Notices for WooCommerce" work with WordPress 5.8.1 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
1PHP fatal errors
1PHP deprecation warnings
3JavaScript exceptions
1Page failed to load
  • 1 500 Internal Server Error
No resource errors
Performance

Memory usage: 444.52 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.421 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version5.8.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 60+
WordPress.org page https://wordpress.org/plugins/yourplugins-wc-conditional-cart-notices/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=yourplugins-wc-conditional-cart-notices%2Fyourplugins-wc-conditional-cart-notices.php&plugin_status=all&paged=1&s&_wpnonce=c4b98a6dc2
Aspect after-activation
HTTP status 200
Load time 1.978 s
Memory usage 6.1 MiB
JS errors
[
    {
        "message": "SyntaxError: Invalid regular expression flags",
        "trace": null,
        "code": null
    }
]
Resource errors None

YourPlugins

Page screenshot: YourPlugins
URL /wp-admin/admin.php?page=yourplugins
Aspect menu-item
HTTP status 500
Load time 0.113 s
Memory usage N/A
JS errors None
Resource errors None

YourPlugins → Conditional Cart Notices

Page screenshot: YourPlugins → Conditional Cart Notices
URL /wp-admin/admin.php?page=yourplugins-wc-conditional-cart-notices
Aspect menu-item
HTTP status 200
Load time 1.158 s
Memory usage 3.63 MiB
JS errors
[
    {
        "message": "SyntaxError: Invalid regular expression flags",
        "trace": null,
        "code": null
    }
]
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.867 s
Memory usage 3.34 MiB
JS errors
[
    {
        "message": "SyntaxError: Invalid regular expression flags",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.272 s0.601 s+0.329 s3.08 MiB3.53 MiB+ 453.54 KiB
/wp-admin/edit.php0.173 s0.983 s+0.810 s3.11 MiB3.56 MiB+ 453.27 KiB
/wp-admin/post-new.php0.695 s1.245 s+0.550 s5.27 MiB5.67 MiB+ 407.16 KiB
/wp-admin/upload.php0.361 s1.144 s+0.783 s3.03 MiB3.46 MiB+ 439.64 KiB
/wp-admin/options-writing.php0.226 s0.533 s+0.307 s3.02 MiB3.47 MiB+ 453.29 KiB
/wp-admin/media-new.php0.403 s0.354 s-0.049 s3.01 MiB3.46 MiB+ 462.25 KiB
/wp-admin/edit-tags.php?taxonomy=category0.164 s0.329 s+0.165 s3.04 MiB3.5 MiB+ 473.39 KiB
/wp-admin/post-new.php?post_type=page0.547 s0.848 s+0.301 s5.26 MiB5.67 MiB+ 419.14 KiB
/wp-admin/options-discussion.php0.221 s1.200 s+0.979 s3 MiB3.46 MiB+ 470.42 KiB
/wp-admin/edit-comments.php0.202 s0.491 s+0.289 s3.04 MiB3.5 MiB+ 463.4 KiB
/0.238 s0.403 s+0.165 s2.91 MiB3.29 MiB+ 394.19 KiB
Average 0.318 s0.739 s+0.421 s3.43 MiB3.87 MiB+ 444.52 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
JSON
Language % Lines of code Comment lines Files
PHP61.9%1,3768630
JSON30.0%66602
PO File5.5%122541
CSS1.4%3101
JavaScript1.2%2701
Total 2,222 140 35

PHP Code Analysis | More results »

Lines of code 1,239
Total complexity 121
Median class complexity 2.0
Median method complexity 1.0
Most complex class YPS\WC_Conditional_Cart_Notices\Notice_Helper
Most complex function YPS\WC_Conditional_Cart_Notices\Notice_Form::__construct()
Classes 25
Methods 69
Functions 0

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.

Database Tables 3

Options wp_options 1

PHP Error Log 11 lines

[05-Nov-2021 11:05:46 UTC] PHP Deprecated:  Cannot use "parent" when current class scope has no parent in /wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-woocommerce/includes/woocommerce-shipping-method-helper.php on line 11
[05-Nov-2021 11:05:48 UTC] PHP Fatal error:  Uncaught Error: Call to a member function enqueue_yps_bootstrap() on null in /wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-plugin/includes/plugin-file.php:81
Stack trace:
#0 /wp-content/plugins/yourplugins-wc-conditional-cart-notices/app/application/wc-conditional-cart-notices-application.php(57): YPS\Framework\Plugin\v2_0_6\Plugin->admin_enqueue_scripts()
#1 /wp-includes/class-wp-hook.php(303): YPS\WC_Conditional_Cart_Notices\WC_Conditional_Cart_Notices_Application->admin_enqueue_scripts()
#2 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#3 /wp-includes/plugin.php(470): WP_Hook->do_action()
#4 /wp-admin/admin-header.php(102): do_action()
#5 /wp-admin/admin.php(239): require_once('/opt/bitnami/ap...')
#6 {main}
  thrown in /wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-plugin/includes/plugin-file.php on line 81
See also: All tests for this plugin, How to Hide YourPlugins Conditional Cart Notices for WooCommerce Admin Menus