Woocommerce Gift Wrapper 4.5

Does Woocommerce Gift Wrapper work with WordPress 5.8.1 and PHP 7.4.8? A smoke test was performed on .

Summary

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

Memory usage: 34.49 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.8.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 3,000+
WordPress.org page https://wordpress.org/plugins/woocommerce-gift-wrapper/
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=woocommerce-gift-wrapper%2Fwoocommerce-gift-wrapper.php&plugin_status=all&paged=1&s&_wpnonce=ba3cd09234
Aspect after-activation
HTTP status 200
Load time 0.252 s
Memory usage 3.07 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 500
Load time 0.068 s
Memory usage N/A
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.312 s0.234 s-0.078 s3.08 MiB3.11 MiB+ 29.66 KiB
/wp-admin/edit.php0.181 s0.330 s+0.149 s3.11 MiB3.21 MiB+ 94.4 KiB
/wp-admin/post-new.php0.759 s0.930 s+0.171 s5.27 MiB5.3 MiB+ 34.02 KiB
/wp-admin/upload.php0.384 s0.301 s-0.083 s3.03 MiB3.06 MiB+ 28.53 KiB
/wp-admin/options-writing.php0.274 s0.152 s-0.122 s3.02 MiB3.04 MiB+ 12.51 KiB
/wp-admin/media-new.php0.461 s0.197 s-0.264 s3.01 MiB3.04 MiB+ 28.7 KiB
/wp-admin/edit-tags.php?taxonomy=category0.182 s0.205 s+0.023 s3.04 MiB3.07 MiB+ 29.61 KiB
/wp-admin/post-new.php?post_type=page0.646 s0.606 s-0.040 s5.26 MiB5.29 MiB+ 29.61 KiB
/wp-admin/options-discussion.php0.249 s0.340 s+0.091 s3 MiB3.03 MiB+ 29.33 KiB
/wp-admin/edit-comments.php0.222 s0.238 s+0.016 s3.04 MiB3.07 MiB+ 28.52 KiB
Average 0.367 s0.353 s-0.014 s3.49 MiB3.52 MiB+ 34.49 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
PO File
Language % Lines of code Comment lines Files
PHP64.6%1,13146612
PO File31.8%5582342
JavaScript1.8%3221
CSS1.8%3162
Total 1,752 708 17

PHP Code Analysis | More results »

Lines of code 882
Total complexity 219
Median class complexity 19.0
Median method complexity 2.5
Most complex class WCGW_Wrapping
Most complex function WCGW_Wrapping::add_giftwrap_to_order()
Classes 6
Methods 52
Functions 2

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 1

PHP Error Log 22 lines

[04-Oct-2021 16:41:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woocommerce-gift-wrapper/woocommerce-gift-wrapper.php:216
Stack trace:
#0 /wp-includes/class-wp-hook.php(303): WC_Gift_Wrapper->wp_enqueue_scripts()
#1 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(470): WP_Hook->do_action()
#3 /wp-includes/script-loader.php(2083): do_action()
#4 /wp-includes/class-wp-hook.php(303): wp_enqueue_scripts()
#5 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(470): WP_Hook->do_action()
#7 /wp-includes/general-template.php(3015): do_action()
#8 /wp-content/themes/twentyseventeen/header.php(22 in /wp-content/plugins/woocommerce-gift-wrapper/woocommerce-gift-wrapper.php on line 216
[04-Oct-2021 16:41:10 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woocommerce-gift-wrapper/woocommerce-gift-wrapper.php:216
Stack trace:
#0 /wp-includes/class-wp-hook.php(303): WC_Gift_Wrapper->wp_enqueue_scripts()
#1 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(470): WP_Hook->do_action()
#3 /wp-includes/script-loader.php(2083): do_action()
#4 /wp-includes/class-wp-hook.php(303): wp_enqueue_scripts()
#5 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(470): WP_Hook->do_action()
#7 /wp-includes/general-template.php(3015): do_action()
#8 /wp-content/themes/twentyseventeen/header.php(22 in /wp-content/plugins/woocommerce-gift-wrapper/woocommerce-gift-wrapper.php on line 216
See also: All tests for this plugin