CouponAPI 5.0.1

Does CouponAPI work with WordPress 6.1.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 27.86 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.1.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 300+
WordPress.org page https://wordpress.org/plugins/couponapi/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 7

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=couponapi%2Fcouponapi.php&plugin_status=all&paged=1&s&_wpnonce=5009989d48
Aspect after-activation
HTTP status 200
Load time 0.285 s
Memory usage 3.02 MiB
JS errors None
Resource errors None

Coupon API

Page screenshot: Coupon API
URL /wp-admin/admin.php?page=couponapi
Aspect menu-item
HTTP status 200
Load time 0.331 s
Memory usage 2.99 MiB
JS errors None
Resource errors None

Coupon API → Brandlogos

Page screenshot: Coupon API → Brandlogos
URL /wp-admin/admin.php?page=couponapi-brandlogos-settings
Aspect menu-item
HTTP status 200
Load time 0.116 s
Memory usage N/A
JS errors None
Resource errors None

Coupon API → CSV Upload

Page screenshot: Coupon API → CSV Upload
URL /wp-admin/admin.php?page=couponapi-file-upload
Aspect menu-item
HTTP status 200
Load time 0.101 s
Memory usage N/A
JS errors None
Resource errors None

Coupon API → Logs

Page screenshot: Coupon API → Logs
URL /wp-admin/admin.php?page=couponapi-logs
Aspect menu-item
HTTP status 200
Load time 0.096 s
Memory usage N/A
JS errors None
Resource errors None

Coupon API → Troubleshoot

Page screenshot: Coupon API → Troubleshoot
URL /wp-admin/admin.php?page=couponapi-troubleshoot
Aspect menu-item
HTTP status 200
Load time 0.096 s
Memory usage N/A
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.208 s
Memory usage 2.97 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.265 s0.227 s-0.038 s3.05 MiB3.08 MiB+ 34.53 KiB
/wp-admin/edit.php0.183 s0.182 s-0.001 s3.07 MiB3.11 MiB+ 34.53 KiB
/wp-admin/post-new.php0.733 s0.914 s+0.181 s4.97 MiB5.02 MiB+ 50.49 KiB
/wp-admin/upload.php0.635 s0.241 s-0.394 s2.99 MiB3.01 MiB+ 17.13 KiB
/wp-admin/options-writing.php0.167 s0.130 s-0.037 s2.99 MiB2.99 MiB+ 3.77 KiB
/wp-admin/media-new.php0.259 s0.214 s-0.045 s2.97 MiB3 MiB+ 29.31 KiB
/wp-admin/edit-tags.php?taxonomy=category0.176 s0.185 s+0.009 s2.98 MiB3.01 MiB+ 34.48 KiB
/wp-admin/post-new.php?post_type=page0.606 s0.765 s+0.159 s4.96 MiB5 MiB+ 42.08 KiB
/wp-admin/options-discussion.php0.201 s0.230 s+0.029 s2.97 MiB2.99 MiB+ 17.62 KiB
/wp-admin/edit-comments.php0.190 s0.189 s-0.001 s3 MiB3.02 MiB+ 17.16 KiB
/0.281 s0.199 s-0.082 s2.94 MiB2.97 MiB+ 25.34 KiB
Average 0.336 s0.316 s-0.020 s3.35 MiB3.38 MiB+ 27.86 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
PHP92.6%3,70920813
SVG7.2%28801
CSS0.2%911
Total 4,006 209 15

PHP Code Analysis | More results »

Lines of code 3,764
Total complexity 776
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function couponapi_display_settings()
Classes 0
Methods 0
Functions 72

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 31 lines

[30-Jan-2023 11:12:53 UTC] WordPress database error Table 'wordpress.wp_couponapi_config' doesn't exist for query REPLACE INTO wp_couponapi_config (name,value) VALUES ('last_cron',1675077173.4987) made by activate_plugin, plugin_sandbox_scrape, include_once('/plugins/couponapi/couponapi.php'), couponapi_check_wpcron
[30-Jan-2023 11:12:55 UTC] PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "couponapi_display_brandlogos_settings" not found or invalid function name in /wp-includes/class-wp-hook.php:308
Stack trace:
#0 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#1 /wp-includes/plugin.php(517): WP_Hook->do_action()
#2 /wp-admin/admin.php(259): do_action()
#3 {main}
  thrown in /wp-includes/class-wp-hook.php on line 308
[30-Jan-2023 11:12:56 UTC] PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "couponapi_display_file_upload" not found or invalid function name in /wp-includes/class-wp-hook.php:308
Stack trace:
#0 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#1 /wp-includes/plugin.php(517): WP_Hook->do_action()
#2 /wp-admin/admin.php(259): do_action()
#3 {main}
  thrown in /wp-includes/class-wp-hook.php on line 308
[30-Jan-2023 11:12:57 UTC] PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "couponapi_display_logs" not found or invalid function name in /wp-includes/class-wp-hook.php:308
Stack trace:
#0 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#1 /wp-includes/plugin.php(517): WP_Hook->do_action()
#2 /wp-admin/admin.php(259): do_action()
#3 {main}
  thrown in /wp-includes/class-wp-hook.php on line 308
[30-Jan-2023 11:12:57 UTC] PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "couponapi_display_troubleshoot" not found or invalid function name in /wp-includes/class-wp-hook.php:308
Stack trace:
#0 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#1 /wp-includes/plugin.php(517): WP_Hook->do_action()
#2 /wp-admin/admin.php(259): do_action()
#3 {main}
  thrown in /wp-includes/class-wp-hook.php on line 308
[30-Jan-2023 11:13:00 UTC] PHP Notice:  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>feedcallback/v1/posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /wp-includes/functions.php on line 5835
[30-Jan-2023 11:13:03 UTC] PHP Notice:  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>feedcallback/v1/posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /wp-includes/functions.php on line 5835
See also: All tests for this plugin, How to Hide CouponAPI Admin Menus