Buy Me a Coffee - Button and Widget 3.8

Does "Buy Me a Coffee - Button and Widget" work with WordPress 6.3 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
22PHP warnings
8JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 17.38 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.3
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 6,000+
WordPress.org page https://wordpress.org/plugins/buymeacoffee/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Buy Me a Coffee ‹ Test site — WordPress

Page screenshot: Buy Me a Coffee ‹ Test site — WordPress
URL /wp-admin/admin.php?page=buy-me-a-coffee
Requested URL /wp-admin/plugins.php?action=activate&plugin=buymeacoffee%2Fbuy-me-a-coffee.php&plugin_status=all&paged=1&s&_wpnonce=f16d299e2f
Aspect after-activation
HTTP status 200
Load time 0.639 s
Memory usage 2.92 MiB
JS errors
[
    {
        "message": "ReferenceError: pagespeed is not defined\n    at HTMLImageElement.onerror (/wp-admin/admin.php?page=buy-me-a-coffee:310:337)",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: pagespeed is not defined\n    at HTMLImageElement.onerror (/wp-admin/admin.php?page=buy-me-a-coffee:311:328)",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at /wp-admin/admin.php?page=buy-me-a-coffee:483:26",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'style')\n    at HTMLDocument.<anonymous> (/wp-admin/admin.php?page=buy-me-a-coffee:514:55)\n    at i (https://www.buymeacoffee.com/assets/js/jquery.min.js:2:27449)\n    at Object.fireWith [as resolveWith] (https://www.buymeacoffee.com/assets/js/jquery.min.js:2:28213)\n    at Function.ready (https://www.buymeacoffee.com/assets/js/jquery.min.js:2:30006)\n    at HTMLDocument.K (https://www.buymeacoffee.com/assets/js/jquery.min.js:2:30368)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Buy Me a Coffee

Page screenshot: Buy Me a Coffee
URL /wp-admin/admin.php?page=buy-me-a-coffee
Aspect menu-item
HTTP status 200
Load time 0.373 s
Memory usage 2.92 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at /wp-admin/admin.php?page=buy-me-a-coffee:483:26",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: pagespeed is not defined\n    at HTMLImageElement.onerror (/wp-admin/admin.php?page=buy-me-a-coffee:310:337)",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: pagespeed is not defined\n    at HTMLImageElement.onerror (/wp-admin/admin.php?page=buy-me-a-coffee:311:328)",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'style')\n    at HTMLDocument.<anonymous> (/wp-admin/admin.php?page=buy-me-a-coffee:514:55)\n    at i (https://www.buymeacoffee.com/assets/js/jquery.min.js:2:27449)\n    at Object.fireWith [as resolveWith] (https://www.buymeacoffee.com/assets/js/jquery.min.js:2:28213)\n    at Function.ready (https://www.buymeacoffee.com/assets/js/jquery.min.js:2:30006)\n    at HTMLDocument.K (https://www.buymeacoffee.com/assets/js/jquery.min.js:2:30368)",
        "trace": null,
        "code": null
    }
]
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.367 s
Memory usage 3.14 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.360 s0.355 s-0.005 s2.82 MiB2.84 MiB+ 20.84 KiB
/wp-admin/edit.php0.207 s0.216 s+0.009 s2.85 MiB2.87 MiB+ 20.13 KiB
/wp-admin/post-new.php0.778 s0.602 s-0.176 s5.21 MiB5.26 MiB+ 45.26 KiB
/wp-admin/upload.php0.810 s0.419 s-0.391 s2.77 MiB2.77 MiB+ 3.84 KiB
/wp-admin/options-writing.php0.233 s0.191 s-0.042 s2.76 MiB2.76 MiB- 4.57 KiB
/wp-admin/media-new.php0.297 s0.261 s-0.036 s2.74 MiB2.76 MiB+ 16.28 KiB
/wp-admin/edit-tags.php?taxonomy=category0.205 s0.202 s-0.003 s2.76 MiB2.78 MiB+ 20.83 KiB
/wp-admin/post-new.php?post_type=page0.683 s0.566 s-0.117 s5.21 MiB5.25 MiB+ 40.84 KiB
/wp-admin/options-discussion.php0.281 s0.253 s-0.028 s2.75 MiB2.75 MiB+ 5.84 KiB
/wp-admin/edit-comments.php0.405 s0.206 s-0.199 s2.78 MiB2.78 MiB+ 3.49 KiB
/0.327 s0.238 s-0.089 s3.13 MiB3.14 MiB+ 18.39 KiB
Average 0.417 s0.319 s-0.098 s3.25 MiB3.27 MiB+ 17.38 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.

JavaScript
PHP
CSS
Language % Lines of code Comment lines Files
JavaScript76.9%14,0892,2185
PHP10.2%1,86561113
CSS8.5%1,564682
SVG4.4%79719
Total 18,315 2,898 29

PHP Code Analysis | More results »

Lines of code 2,056
Total complexity 145
Median class complexity 7.0
Median method complexity 1.0
Most complex class Buy_Me_A_Coffee_Admin_View
Most complex function Buy_Me_A_Coffee_Admin_View::dashboard()
Classes 9
Methods 44
Functions 3

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 2

PHP Error Log 22 lines

[11-Aug-2023 20:33:22 UTC] PHP Warning:  Undefined array key "widget_text" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1096
[11-Aug-2023 20:33:22 UTC] PHP Warning:  Undefined array key "background_color" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1097
[11-Aug-2023 20:33:22 UTC] PHP Warning:  Undefined array key "text_color" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1098
[11-Aug-2023 20:33:22 UTC] PHP Warning:  Undefined array key "font_family" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1099
[11-Aug-2023 20:33:24 UTC] PHP Warning:  Undefined array key "widget_text" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1096
[11-Aug-2023 20:33:24 UTC] PHP Warning:  Undefined array key "background_color" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1097
[11-Aug-2023 20:33:24 UTC] PHP Warning:  Undefined array key "text_color" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1098
[11-Aug-2023 20:33:24 UTC] PHP Warning:  Undefined array key "font_family" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1099
[11-Aug-2023 20:33:25 UTC] PHP Warning:  Attempt to read property "name" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:25 UTC] PHP Warning:  Attempt to read property "description" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:25 UTC] PHP Warning:  Attempt to read property "message" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:25 UTC] PHP Warning:  Attempt to read property "widget_color" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:25 UTC] PHP Warning:  Attempt to read property "align" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:25 UTC] PHP Warning:  Attempt to read property "side_spacing" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:25 UTC] PHP Warning:  Attempt to read property "bottom_spacing" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:33 UTC] PHP Warning:  Attempt to read property "name" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:33 UTC] PHP Warning:  Attempt to read property "description" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:33 UTC] PHP Warning:  Attempt to read property "message" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:33 UTC] PHP Warning:  Attempt to read property "widget_color" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:33 UTC] PHP Warning:  Attempt to read property "align" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:33 UTC] PHP Warning:  Attempt to read property "side_spacing" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
[11-Aug-2023 20:33:33 UTC] PHP Warning:  Attempt to read property "bottom_spacing" on null in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 405
See also: All tests for this plugin, How to Hide the "Buy Me a Coffee" Admin Menu