Buy Me a Coffee - Button and Widget 3.1

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

Summary

Errors
24PHP notices
4JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 16.9 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.1.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=b1470e7cf2
Aspect after-activation
HTTP status 200
Load time 0.774 s
Memory usage 3.57 MiB
JS errors
[
    {
        "message": "SyntaxError: Invalid or unexpected token",
        "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:512:55)\n    at i (https://www.buymeacoffee.com/assets/js/jquery.min.js:1:27449)\n    at Object.fireWith [as resolveWith] (https://www.buymeacoffee.com/assets/js/jquery.min.js:1:28213)\n    at Function.ready (https://www.buymeacoffee.com/assets/js/jquery.min.js:1:30006)\n    at HTMLDocument.K (https://www.buymeacoffee.com/assets/js/jquery.min.js:1: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.346 s
Memory usage 3.57 MiB
JS errors
[
    {
        "message": "SyntaxError: Invalid or unexpected token",
        "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:512:55)\n    at i (https://www.buymeacoffee.com/assets/js/jquery.min.js:1:27449)\n    at Object.fireWith [as resolveWith] (https://www.buymeacoffee.com/assets/js/jquery.min.js:1:28213)\n    at Function.ready (https://www.buymeacoffee.com/assets/js/jquery.min.js:1:30006)\n    at HTMLDocument.K (https://www.buymeacoffee.com/assets/js/jquery.min.js:1: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.539 s
Memory usage 3.43 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.312 s0.297 s-0.015 s3.54 MiB3.57 MiB+ 23.84 KiB
/wp-admin/edit.php0.186 s0.201 s+0.015 s3.57 MiB3.59 MiB+ 23.13 KiB
/wp-admin/post-new.php0.790 s0.952 s+0.162 s5.46 MiB5.49 MiB+ 28.2 KiB
/wp-admin/upload.php0.365 s0.274 s-0.091 s3.41 MiB3.43 MiB+ 22.71 KiB
/wp-admin/options-writing.php0.379 s0.163 s-0.216 s3.4 MiB3.41 MiB+ 4.55 KiB
/wp-admin/media-new.php0.247 s0.380 s+0.133 s3.39 MiB3.41 MiB+ 22.88 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.205 s+0.007 s3.48 MiB3.5 MiB+ 23.79 KiB
/wp-admin/post-new.php?post_type=page0.813 s0.988 s+0.175 s5.46 MiB5.48 MiB+ 23.75 KiB
/wp-admin/options-discussion.php0.232 s0.202 s-0.030 s3.38 MiB3.41 MiB+ 22.57 KiB
/wp-admin/edit-comments.php0.216 s0.225 s+0.009 s3.48 MiB3.5 MiB+ 22.73 KiB
/0.280 s0.411 s+0.131 s3.47 MiB3.43 MiB- 32.22 KiB
Average 0.365 s0.391 s+0.025 s3.82 MiB3.84 MiB+ 16.9 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
JavaScript78.1%14,0892,2185
PHP8.9%1,59960613
CSS8.6%1,557682
SVG4.4%79719
Total 18,042 2,893 29

PHP Code Analysis | More results »

Lines of code 1,777
Total complexity 115
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

User Metadata wp_usermeta 1

PHP Error Log 24 lines

[17-Nov-2022 02:56:43 UTC] PHP Notice:  Undefined index: name in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 316
[17-Nov-2022 02:56:43 UTC] PHP Notice:  Undefined index: widget_text in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1031
[17-Nov-2022 02:56:43 UTC] PHP Notice:  Undefined index: background_color in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1032
[17-Nov-2022 02:56:43 UTC] PHP Notice:  Undefined index: text_color in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1033
[17-Nov-2022 02:56:43 UTC] PHP Notice:  Undefined index: font_family in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1034
[17-Nov-2022 02:56:44 UTC] PHP Notice:  Undefined index: name in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 316
[17-Nov-2022 02:56:44 UTC] PHP Notice:  Undefined index: widget_text in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1031
[17-Nov-2022 02:56:44 UTC] PHP Notice:  Undefined index: background_color in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1032
[17-Nov-2022 02:56:44 UTC] PHP Notice:  Undefined index: text_color in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1033
[17-Nov-2022 02:56:44 UTC] PHP Notice:  Undefined index: font_family in /wp-content/plugins/buymeacoffee/admin/partials/buy-me-a-coffee-admin-display.php on line 1034
[17-Nov-2022 02:56:45 UTC] PHP Notice:  Trying to get property 'name' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:45 UTC] PHP Notice:  Trying to get property 'description' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:45 UTC] PHP Notice:  Trying to get property 'message' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:45 UTC] PHP Notice:  Trying to get property 'widget_color' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:45 UTC] PHP Notice:  Trying to get property 'align' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:45 UTC] PHP Notice:  Trying to get property 'side_spacing' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:45 UTC] PHP Notice:  Trying to get property 'bottom_spacing' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:54 UTC] PHP Notice:  Trying to get property 'name' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:54 UTC] PHP Notice:  Trying to get property 'description' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:54 UTC] PHP Notice:  Trying to get property 'message' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:54 UTC] PHP Notice:  Trying to get property 'widget_color' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:54 UTC] PHP Notice:  Trying to get property 'align' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:54 UTC] PHP Notice:  Trying to get property 'side_spacing' of non-object in /wp-content/plugins/buymeacoffee/admin/class-buy-me-a-coffee-admin.php on line 388
[17-Nov-2022 02:56:54 UTC] PHP Notice:  Trying to get property 'bottom_spacing' of non-object 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