Buy Me a Coffee - Button and Widget 3.7

Does "Buy Me a Coffee - Button and Widget" work with WordPress 6.2.2 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: 23.76 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.025 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.2.2
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=de0bd5bcc6
Aspect after-activation
HTTP status 200
Load time 0.815 s
Memory usage 3.17 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

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.358 s
Memory usage 3.17 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.511 s
Memory usage 2.99 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.291 s0.283 s-0.008 s3.07 MiB3.1 MiB+ 27.27 KiB
/wp-admin/edit.php0.195 s0.204 s+0.009 s3.1 MiB3.12 MiB+ 26.56 KiB
/wp-admin/post-new.php0.754 s0.893 s+0.139 s5.02 MiB5.05 MiB+ 26.14 KiB
/wp-admin/upload.php0.546 s0.264 s-0.282 s3.02 MiB3.03 MiB+ 10.27 KiB
/wp-admin/options-writing.php0.184 s0.337 s+0.153 s3.01 MiB3.01 MiB- 1.46 KiB
/wp-admin/media-new.php0.343 s0.248 s-0.095 s2.99 MiB3.01 MiB+ 22.72 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.187 s-0.003 s3.01 MiB3.03 MiB+ 27.27 KiB
/wp-admin/post-new.php?post_type=page0.601 s0.908 s+0.307 s5.01 MiB5.04 MiB+ 21.73 KiB
/wp-admin/options-discussion.php0.209 s0.246 s+0.037 s3 MiB3.01 MiB+ 12.27 KiB
/wp-admin/edit-comments.php0.208 s0.218 s+0.010 s3.03 MiB3.04 MiB+ 9.94 KiB
/0.317 s0.327 s+0.010 s2.97 MiB3.05 MiB+ 78.6 KiB
Average 0.349 s0.374 s+0.025 s3.38 MiB3.41 MiB+ 23.76 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
JavaScript77.0%14,0892,2185
PHP10.1%1,84061113
CSS8.6%1,564682
SVG4.4%79719
Total 18,290 2,898 29

PHP Code Analysis | More results »

Lines of code 2,031
Total complexity 135
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 43
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

[06-Jun-2023 05:42:18 UTC] PHP Warning:  Undefined array key "widget_text" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1090
[06-Jun-2023 05:42:18 UTC] PHP Warning:  Undefined array key "background_color" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1091
[06-Jun-2023 05:42:18 UTC] PHP Warning:  Undefined array key "text_color" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1092
[06-Jun-2023 05:42:18 UTC] PHP Warning:  Undefined array key "font_family" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1093
[06-Jun-2023 05:42:20 UTC] PHP Warning:  Undefined array key "widget_text" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1090
[06-Jun-2023 05:42:20 UTC] PHP Warning:  Undefined array key "background_color" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1091
[06-Jun-2023 05:42:20 UTC] PHP Warning:  Undefined array key "text_color" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1092
[06-Jun-2023 05:42:20 UTC] PHP Warning:  Undefined array key "font_family" in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1093
[06-Jun-2023 05:42:21 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 388
[06-Jun-2023 05:42:21 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 388
[06-Jun-2023 05:42:21 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 388
[06-Jun-2023 05:42:21 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 388
[06-Jun-2023 05:42:21 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 388
[06-Jun-2023 05:42:21 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 388
[06-Jun-2023 05:42:21 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 388
[06-Jun-2023 05:42: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 388
[06-Jun-2023 05:42: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 388
[06-Jun-2023 05:42: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 388
[06-Jun-2023 05:42: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 388
[06-Jun-2023 05:42: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 388
[06-Jun-2023 05:42: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 388
[06-Jun-2023 05:42: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 388
See also: All tests for this plugin, How to Hide the "Buy Me a Coffee" Admin Menu