Menu Cart For Woocommerce 1.8

Does Menu Cart For Woocommerce work with WordPress 6.4.3 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP fatal errors
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 28.29 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 version6.4.3
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 100+
WordPress.org page https://wordpress.org/plugins/menu-cart-for-woocommerce/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 2

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=menu-cart-for-woocommerce%2Fmenu-cart-for-woocommerce.php&plugin_status=all&paged=1&s&_wpnonce=41f269c2bb
Aspect after-activation
HTTP status 200
Load time 0.601 s
Memory usage 3.36 MiB
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.231 s
Memory usage N/A
JS errors
[
    {
        "message": "ReferenceError: wc_add_to_cart_params is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/menu-cart-for-woocommerce/assets/js/front-script.js?ver=1.8:5:25)\n    at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)\n    at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.411 s0.392 s-0.019 s3.38 MiB3.42 MiB+ 37.05 KiB
/wp-admin/edit.php0.229 s0.233 s+0.004 s3.41 MiB3.44 MiB+ 35.8 KiB
/wp-admin/post-new.php0.945 s0.674 s-0.271 s5.46 MiB5.49 MiB+ 35.37 KiB
/wp-admin/upload.php0.624 s0.653 s+0.029 s3.33 MiB3.34 MiB+ 18.13 KiB
/wp-admin/options-writing.php0.226 s0.241 s+0.015 s3.32 MiB3.33 MiB+ 11.54 KiB
/wp-admin/media-new.php0.326 s0.237 s-0.089 s3.3 MiB3.33 MiB+ 34.64 KiB
/wp-admin/edit-tags.php?taxonomy=category0.212 s0.218 s+0.006 s3.31 MiB3.35 MiB+ 36.12 KiB
/wp-admin/post-new.php?post_type=page0.623 s0.646 s+0.023 s5.45 MiB5.48 MiB+ 34.95 KiB
/wp-admin/options-discussion.php0.413 s0.445 s+0.032 s3.3 MiB3.32 MiB+ 19.96 KiB
/wp-admin/edit-comments.php0.284 s0.243 s-0.041 s3.34 MiB3.36 MiB+ 19.32 KiB
/0.312 s0.206 s-0.106 s3.31 MiB
Average 0.419 s0.381 s-0.038 s3.72 MiB3.79 MiB+ 28.29 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
CSS
Sass
Language % Lines of code Comment lines Files
PHP44.2%1,9102612
CSS28.8%1,24492
Sass22.7%98302
JavaScript3.5%15192
SVG0.9%37010
Total 4,325 44 28

PHP Code Analysis | More results »

Lines of code 1,909
Total complexity 346
Median class complexity 27.0
Median method complexity 3.0
Most complex class mcfw_general_settings
Most complex function mcfw_update_flyout()
Classes 9
Methods 55
Functions 13

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 4

PHP Error Log 32 lines

[05-Feb-2024 16:35:56 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function WC() in /wp-content/plugins/menu-cart-for-woocommerce/front/sticky-cart.php:28
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): mcfw_sticky_cart->mcfw_add_sticky_cart()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3068): do_action()
#4 /wp-content/themes/twentyseventeen/footer.php(48): wp_footer()
#5 /wp-includes/template.php(790): require_once('...')
#6 /wp-includes/template.php(725): load_template()
#7 /wp-includes/general-template.php(92): locate_template()
#8 /wp-content/themes/twentyseventeen/index.php(75): get_footer()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/menu-cart-for-woocommerce/front/sticky-cart.php on line 28
[05-Feb-2024 16:36:06 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function WC() in /wp-content/plugins/menu-cart-for-woocommerce/front/sticky-cart.php:28
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): mcfw_sticky_cart->mcfw_add_sticky_cart()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3068): do_action()
#4 /wp-content/themes/twentyseventeen/footer.php(48): wp_footer()
#5 /wp-includes/template.php(790): require_once('...')
#6 /wp-includes/template.php(725): load_template()
#7 /wp-includes/general-template.php(92): locate_template()
#8 /wp-content/themes/twentyseventeen/index.php(75): get_footer()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/menu-cart-for-woocommerce/front/sticky-cart.php on line 28
See also: All tests for this plugin