Buy Me a Coffee - Button and Widget 4.3

Does "Buy Me a Coffee - Button and Widget" work with WordPress 6.8 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: 18.77 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.8
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=7cccc05a12
Aspect after-activation
HTTP status 200
Load time 0.761 s
Memory usage 3.6 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at /wp-admin/admin.php?page=buy-me-a-coffee:485:26",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: pagespeed is not defined\n    at HTMLImageElement.onerror (/wp-admin/admin.php?page=buy-me-a-coffee:313:328)",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: pagespeed is not defined\n    at HTMLImageElement.onerror (/wp-admin/admin.php?page=buy-me-a-coffee:312:337)",
        "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:516: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.345 s
Memory usage 3.6 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at /wp-admin/admin.php?page=buy-me-a-coffee:485: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:516: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
    },
    {
        "message": "ReferenceError: pagespeed is not defined\n    at HTMLImageElement.onerror (/wp-admin/admin.php?page=buy-me-a-coffee:312:337)",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: pagespeed is not defined\n    at HTMLImageElement.onerror (/wp-admin/admin.php?page=buy-me-a-coffee:313:328)",
        "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.342 s
Memory usage 3.46 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.311 s0.297 s-0.014 s3.51 MiB3.53 MiB+ 24.55 KiB
/wp-admin/edit.php0.204 s0.234 s+0.030 s3.57 MiB3.6 MiB+ 24.59 KiB
/wp-admin/post-new.php0.775 s0.652 s-0.123 s6.06 MiB6.09 MiB+ 28.38 KiB
/wp-admin/upload.php0.582 s0.599 s+0.017 s3.52 MiB3.53 MiB+ 7.18 KiB
/wp-admin/options-writing.php0.225 s0.225 s+0.000 s3.5 MiB3.51 MiB+ 11.17 KiB
/wp-admin/media-new.php0.272 s0.244 s-0.028 s3.49 MiB3.51 MiB+ 19.37 KiB
/wp-admin/edit-tags.php?taxonomy=category0.268 s0.207 s-0.061 s3.5 MiB3.53 MiB+ 30.04 KiB
/wp-admin/post-new.php?post_type=page0.601 s0.821 s+0.220 s6.05 MiB6.07 MiB+ 23.91 KiB
/wp-admin/options-discussion.php0.478 s0.233 s-0.245 s3.5 MiB3.51 MiB+ 7.67 KiB
/wp-admin/edit-comments.php0.419 s0.216 s-0.203 s3.52 MiB3.53 MiB+ 7.17 KiB
/0.322 s0.228 s-0.094 s3.43 MiB3.46 MiB+ 22.41 KiB
Average 0.405 s0.360 s-0.046 s3.97 MiB3.99 MiB+ 18.77 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,87560513
CSS8.5%1,564682
SVG4.3%79719
Total 18,325 2,892 29

PHP Code Analysis | More results »

Lines of code 2,060
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

[16-Apr-2025 19:50:26 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
[16-Apr-2025 19:50:26 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
[16-Apr-2025 19:50:26 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
[16-Apr-2025 19:50:26 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
[16-Apr-2025 19:50:28 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
[16-Apr-2025 19:50:28 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
[16-Apr-2025 19:50:28 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
[16-Apr-2025 19:50:28 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
[16-Apr-2025 19:50:29 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 409
[16-Apr-2025 19:50:29 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 409
[16-Apr-2025 19:50:29 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 409
[16-Apr-2025 19:50:29 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 409
[16-Apr-2025 19:50:29 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 409
[16-Apr-2025 19:50:29 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 409
[16-Apr-2025 19:50:29 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 409
[16-Apr-2025 19:50:37 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 409
[16-Apr-2025 19:50:37 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 409
[16-Apr-2025 19:50:37 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 409
[16-Apr-2025 19:50:37 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 409
[16-Apr-2025 19:50:37 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 409
[16-Apr-2025 19:50:37 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 409
[16-Apr-2025 19:50:37 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 409
See also: All tests for this plugin, How to Hide the "Buy Me a Coffee" Admin Menu