YourPlugins Conditional Cart Notices for WooCommerce 1.0.9

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: 445.2 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.424 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=8f081ae4a0
Aspect after-activation
HTTP status 200
Load time 1.922 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.106 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.012 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 1.489 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.299 s0.670 s+0.371 s3.08 MiB3.53 MiB+ 453.48 KiB
/wp-admin/edit.php0.171 s0.582 s+0.411 s3.11 MiB3.56 MiB+ 453.21 KiB
/wp-admin/post-new.php0.719 s1.668 s+0.949 s5.27 MiB5.68 MiB+ 414.8 KiB
/wp-admin/upload.php0.505 s0.737 s+0.232 s3.03 MiB3.46 MiB+ 439.64 KiB
/wp-admin/options-writing.php0.250 s0.945 s+0.695 s3.02 MiB3.47 MiB+ 453.29 KiB
/wp-admin/media-new.php0.262 s0.393 s+0.131 s3.01 MiB3.46 MiB+ 462.25 KiB
/wp-admin/edit-tags.php?taxonomy=category0.173 s0.543 s+0.370 s3.04 MiB3.5 MiB+ 473.39 KiB
/wp-admin/post-new.php?post_type=page0.559 s0.695 s+0.136 s5.26 MiB5.67 MiB+ 419.14 KiB
/wp-admin/options-discussion.php0.220 s0.782 s+0.562 s3 MiB3.46 MiB+ 470.42 KiB
/wp-admin/edit-comments.php0.203 s0.838 s+0.635 s3.04 MiB3.5 MiB+ 463.4 KiB
/0.257 s0.431 s+0.174 s2.91 MiB3.29 MiB+ 394.19 KiB
Average 0.329 s0.753 s+0.424 s3.43 MiB3.87 MiB+ 445.2 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,3778630
JSON30.0%66602
PO File5.5%122541
CSS1.4%3101
JavaScript1.2%2701
Total 2,223 140 35

PHP Code Analysis | More results »

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

[10-Nov-2021 09:28:21 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
[10-Nov-2021 09:28:23 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