Serial Numbers for WooCommerce 1.4.5

Does Serial Numbers for WooCommerce work with WordPress 6.2 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 68.39 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.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 1,000+
WordPress.org page https://wordpress.org/plugins/wc-serial-numbers/
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=wc-serial-numbers%2Fwc-serial-numbers.php&plugin_status=all&paged=1&s&_wpnonce=734547894c
Aspect after-activation
HTTP status 200
Load time 0.327 s
Memory usage 3.09 MiB
JS errors None
Resource errors None

WordPress › Error

Page screenshot: WordPress › Error
URL /
Aspect front-page
HTTP status 500
Load time 0.052 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.285 s0.260 s-0.025 s3.07 MiB3.15 MiB+ 75.74 KiB
/wp-admin/edit.php0.191 s0.180 s-0.011 s3.1 MiB3.17 MiB+ 73.93 KiB
/wp-admin/post-new.php0.790 s1.134 s+0.344 s5.02 MiB5.1 MiB+ 82.64 KiB
/wp-admin/upload.php0.533 s0.426 s-0.107 s3.02 MiB3.08 MiB+ 59.95 KiB
/wp-admin/options-writing.php0.148 s0.139 s-0.009 s3.01 MiB3.06 MiB+ 46.7 KiB
/wp-admin/media-new.php0.283 s0.267 s-0.016 s2.99 MiB3.06 MiB+ 71.4 KiB
/wp-admin/edit-tags.php?taxonomy=category0.181 s0.183 s+0.002 s3.01 MiB3.08 MiB+ 76.48 KiB
/wp-admin/post-new.php?post_type=page0.605 s0.553 s-0.052 s5.01 MiB5.09 MiB+ 78.23 KiB
/wp-admin/options-discussion.php0.204 s0.225 s+0.021 s3 MiB3.06 MiB+ 60.44 KiB
/wp-admin/edit-comments.php0.196 s0.210 s+0.014 s3.03 MiB3.08 MiB+ 58.41 KiB
Average 0.342 s0.358 s+0.016 s3.43 MiB3.49 MiB+ 68.39 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
Language % Lines of code Comment lines Files
PHP97.4%4,5312,86338
JavaScript2.6%12171
XML0.0%201
Total 4,654 2,870 40

PHP Code Analysis | More results »

Lines of code 4,452
Total complexity 942
Median class complexity 15.5
Median method complexity 1.0
Most complex class WC_Serial_Numbers_Query
Most complex function wc_serial_numbers_insert_serial_number()
Classes 26
Methods 275
Functions 38

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 2

Options wp_options 14

Meta Boxes

{
    "shop_order": {
        "order-serial-numbers": {
            "title": "Serial Numbers",
            "context": "advanced"
        }
    }
}

PHP Error Log 39 lines

[02-Apr-2023 02:29:44 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:45 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:45 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_checkout() in /wp-content/plugins/wc-serial-numbers/includes/class-wc-serial-numbers-order-handler.php:87
Stack trace:
#0 /wp-includes/class-wp-hook.php(308): WC_Serial_Numbers_Handler::maybe_autocomplete_order()
#1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/template-loader.php(13): do_action()
#4 /wp-blog-header.php(19): require_once('...')
#5 /index.php(17): require('...')
#6 {main}
  thrown in /wp-content/plugins/wc-serial-numbers/includes/class-wc-serial-numbers-order-handler.php on line 87
[02-Apr-2023 02:29:46 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:46 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:46 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:46 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:49 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:49 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:49 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:49 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:50 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:50 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:50 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:52 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:52 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:52 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:53 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_checkout() in /wp-content/plugins/wc-serial-numbers/includes/class-wc-serial-numbers-order-handler.php:87
Stack trace:
#0 /wp-includes/class-wp-hook.php(308): WC_Serial_Numbers_Handler::maybe_autocomplete_order()
#1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/template-loader.php(13): do_action()
#4 /wp-blog-header.php(19): require_once('...')
#5 /index.php(17): require('...')
#6 {main}
  thrown in /wp-content/plugins/wc-serial-numbers/includes/class-wc-serial-numbers-order-handler.php on line 87
[02-Apr-2023 02:29:53 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:53 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
[02-Apr-2023 02:29:53 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/wc-serial-numbers/lib/Lib/Plugin.php on line 160
See also: All tests for this plugin