Woocommerce Gift Wrapper 4.5.2

Does Woocommerce Gift Wrapper work with WordPress 5.8.3 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: 39.74 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.3
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=591d1a6bfd
Aspect after-activation
HTTP status 200
Load time 0.363 s
Memory usage 3.08 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.074 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.315 s0.253 s-0.062 s3.08 MiB3.12 MiB+ 34.91 KiB
/wp-admin/edit.php0.175 s0.174 s-0.001 s3.11 MiB3.21 MiB+ 99.65 KiB
/wp-admin/post-new.php0.916 s1.077 s+0.161 s5.27 MiB5.31 MiB+ 39.27 KiB
/wp-admin/upload.php0.498 s0.311 s-0.187 s3.03 MiB3.06 MiB+ 33.78 KiB
/wp-admin/options-writing.php0.263 s0.129 s-0.134 s3.02 MiB3.04 MiB+ 17.76 KiB
/wp-admin/media-new.php0.332 s0.192 s-0.140 s3.01 MiB3.04 MiB+ 33.95 KiB
/wp-admin/edit-tags.php?taxonomy=category0.183 s0.176 s-0.007 s3.04 MiB3.07 MiB+ 34.86 KiB
/wp-admin/post-new.php?post_type=page0.855 s0.947 s+0.092 s5.26 MiB5.29 MiB+ 34.86 KiB
/wp-admin/options-discussion.php0.217 s0.263 s+0.046 s3 MiB3.04 MiB+ 34.58 KiB
/wp-admin/edit-comments.php0.200 s0.199 s-0.001 s3.04 MiB3.08 MiB+ 33.77 KiB
Average 0.395 s0.372 s-0.023 s3.49 MiB3.53 MiB+ 39.74 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
PHP65.2%1,21050312
PO File31.4%5822512
JavaScript1.8%3321
CSS1.7%3162
Total 1,856 762 17

PHP Code Analysis | More results »

Lines of code 963
Total complexity 245
Median class complexity 20.5
Median method complexity 3.0
Most complex class WCGW_Wrapping
Most complex function WCGW_Wrapping::add_giftwrap_to_order()
Classes 6
Methods 57
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

[08-Jan-2022 00:16:29 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woocommerce-gift-wrapper/woocommerce-gift-wrapper.php:159
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 159
[08-Jan-2022 00:16:35 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woocommerce-gift-wrapper/woocommerce-gift-wrapper.php:159
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 159
See also: All tests for this plugin