Buy Me a Coffee - Button and Widget 4.4

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

Summary

Errors
29PHP 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.1
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=4f9aca11db
Aspect after-activation
HTTP status 200
Load time 0.740 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: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
    },
    {
        "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.355 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.258 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.344 s0.310 s-0.034 s3.51 MiB3.53 MiB+ 24.55 KiB
/wp-admin/edit.php0.198 s0.253 s+0.055 s3.57 MiB3.6 MiB+ 24.59 KiB
/wp-admin/post-new.php0.781 s0.669 s-0.112 s6.06 MiB6.09 MiB+ 28.38 KiB
/wp-admin/upload.php0.563 s0.568 s+0.005 s3.52 MiB3.53 MiB+ 7.18 KiB
/wp-admin/options-writing.php0.225 s0.216 s-0.009 s3.5 MiB3.51 MiB+ 11.17 KiB
/wp-admin/media-new.php0.284 s0.245 s-0.039 s3.49 MiB3.51 MiB+ 19.37 KiB
/wp-admin/edit-tags.php?taxonomy=category0.250 s0.198 s-0.052 s3.5 MiB3.53 MiB+ 30.04 KiB
/wp-admin/post-new.php?post_type=page0.598 s0.572 s-0.026 s6.05 MiB6.07 MiB+ 23.91 KiB
/wp-admin/options-discussion.php0.266 s0.471 s+0.205 s3.5 MiB3.51 MiB+ 7.67 KiB
/wp-admin/edit-comments.php0.416 s0.262 s-0.154 s3.52 MiB3.53 MiB+ 7.17 KiB
/0.312 s0.247 s-0.065 s3.43 MiB3.46 MiB+ 22.41 KiB
Average 0.385 s0.365 s-0.021 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 29 lines

[01-May-2025 21:22:37 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
[01-May-2025 21:22:37 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
[01-May-2025 21:22:37 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
[01-May-2025 21:22:37 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
[01-May-2025 21:22:38 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
[01-May-2025 21:22:38 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
[01-May-2025 21:22:38 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
[01-May-2025 21:22:38 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
[01-May-2025 21:22:38 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
[01-May-2025 21:22:38 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
[01-May-2025 21:22:38 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
[01-May-2025 21:22:39 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
[01-May-2025 21:22:39 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
[01-May-2025 21:22:39 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
[01-May-2025 21:22:39 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
[01-May-2025 21:22:40 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
[01-May-2025 21:22:40 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
[01-May-2025 21:22:40 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
[01-May-2025 21:22:40 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
[01-May-2025 21:22:40 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
[01-May-2025 21:22:40 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
[01-May-2025 21:22:40 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
[01-May-2025 21:22:48 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
[01-May-2025 21:22:48 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
[01-May-2025 21:22:48 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
[01-May-2025 21:22:48 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
[01-May-2025 21:22:48 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
[01-May-2025 21:22:48 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
[01-May-2025 21:22:48 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