Buy Me a Coffee - Button and Widget 3.6

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: insignificant.
The plugin didn't make the site noticeably slower.

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=962b13e2d3
Aspect after-activation
HTTP status 200
Load time 0.697 s
Memory usage 3.17 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": "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: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.394 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.488 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.294 s0.297 s+0.003 s3.07 MiB3.1 MiB+ 27.27 KiB
/wp-admin/edit.php0.211 s0.199 s-0.012 s3.1 MiB3.12 MiB+ 26.56 KiB
/wp-admin/post-new.php0.784 s0.617 s-0.167 s5.02 MiB5.05 MiB+ 26.14 KiB
/wp-admin/upload.php0.578 s0.314 s-0.264 s3.02 MiB3.03 MiB+ 10.27 KiB
/wp-admin/options-writing.php0.178 s0.287 s+0.109 s3.01 MiB3.01 MiB- 1.46 KiB
/wp-admin/media-new.php0.349 s0.236 s-0.113 s2.99 MiB3.01 MiB+ 22.72 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.198 s+0.008 s3.01 MiB3.03 MiB+ 27.27 KiB
/wp-admin/post-new.php?post_type=page0.596 s0.590 s-0.006 s5.01 MiB5.04 MiB+ 21.73 KiB
/wp-admin/options-discussion.php0.208 s0.246 s+0.038 s3 MiB3.01 MiB+ 12.27 KiB
/wp-admin/edit-comments.php0.219 s0.227 s+0.008 s3.03 MiB3.04 MiB+ 9.94 KiB
/0.314 s0.296 s-0.018 s2.97 MiB3.05 MiB+ 78.6 KiB
Average 0.356 s0.319 s-0.038 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

[22-May-2023 00:50:17 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
[22-May-2023 00:50:17 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
[22-May-2023 00:50:17 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
[22-May-2023 00:50:17 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
[22-May-2023 00:50:19 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
[22-May-2023 00:50:19 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
[22-May-2023 00:50:19 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
[22-May-2023 00:50:19 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
[22-May-2023 00:50:20 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
[22-May-2023 00:50:20 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
[22-May-2023 00:50:20 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
[22-May-2023 00:50:20 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
[22-May-2023 00:50:20 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
[22-May-2023 00:50:20 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
[22-May-2023 00:50:20 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
[22-May-2023 00:50:28 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
[22-May-2023 00:50:28 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
[22-May-2023 00:50:28 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
[22-May-2023 00:50:28 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
[22-May-2023 00:50:28 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
[22-May-2023 00:50:28 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
[22-May-2023 00:50:28 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