Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼300.93ms] 75% from 4 tests
A check of server-side resources used by Donate Button by GoFundMe
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,843.53ms on /wp-admin/admin.php?page=gofundme-donate-button-widgets)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.23 | 62.55 ▲2.02 |
Dashboard /wp-admin | 3.62 ▲0.21 | 37.34 ▲2.79 |
Posts /wp-admin/edit.php | 3.84 ▲0.20 | 44.33 ▼5.98 |
Add New Post /wp-admin/post-new.php | 7.12 ▲0.15 | 97.87 ▼1,202.56 |
Media Library /wp-admin/upload.php | 3.54 ▲0.24 | 39.13 ▲14.13 |
Buttons /wp-admin/admin.php?page=gofundme-donate-button-widgets | 4.58 | 1,843.53 |
Settings /wp-admin/admin.php?page=gofundme-donate-button-settings | 3.55 | 27.24 |
Create /wp-admin/admin.php?page=gofundme-donate-button-widgets-create | 3.55 | 26.81 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 2 new options
New WordPress options |
---|
gfmdb_settings |
widget_gfmdb_donate_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Donate Button by GoFundMe
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,020 ▲266 | 17.71 ▲1.94 | 6.27 ▲0.51 | 2.00 ▼0.25 |
Dashboard /wp-admin | 3,143 ▲285 | 8.43 ▲2.25 | 148.95 ▲5.01 | 152.45 ▼75.08 |
Posts /wp-admin/edit.php | 2,968 ▲277 | 5.13 ▲1.91 | 102.11 ▲27.67 | 159.89 ▲13.66 |
Add New Post /wp-admin/post-new.php | 1,708 ▲47 | 16.34 ▼4.56 | 425.26 ▼38.12 | 161.23 ▼3.34 |
Media Library /wp-admin/upload.php | 1,767 ▲69 | 6.15 ▲0.60 | 113.16 ▼25.41 | 194.76 ▲2.20 |
Buttons /wp-admin/admin.php?page=gofundme-donate-button-widgets | 1,337 | 5.15 | 71.82 | 100.26 |
Settings /wp-admin/admin.php?page=gofundme-donate-button-settings | 1,453 | 5.05 | 72.07 | 134.00 |
Create /wp-admin/admin.php?page=gofundme-donate-button-widgets-create | 1,298 | 4.91 | 77.99 | 101.03 |
Uninstaller [IO: ▲1.18MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attentionZombie WordPress options detected upon uninstall: 2 options
- The plugin did not uninstall successfully, leaving 40 files (1.18MB) in the plugin directory
- (new file) admin/js/gofundme-donate-button-admin.js
- (new file) admin/partials/gofundme-donate-button-admin-notice.php
- (new file) admin/partials/gofundme-donate-button-admin-widgets-create.php
- (new file) README.txt
- (new file) admin/gofundme-donate-button-admin.php
- (new file) admin/partials/gofundme-donate-button-admin-opt-in-notice.php
- (new file) admin/index.php
- (new file) admin/partials/gofundme-donate-button-admin-settings.php
- (new file) admin/css/gofundme-donate-button-admin.css
- (new file) LICENSE.txt
- ...
- widget_gfmdb_donate_widget
- gfmdb_settings
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/donate-button-by-gofundme/admin/partials/gofundme-donate-button-admin-notice.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/donate-button-by-gofundme/includes/gofundme-donate-button-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/donate-button-by-gofundme/uninstall.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/donate-button-by-gofundme/admin/partials/gofundme-donate-button-admin-widgets.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/donate-button-by-gofundme/admin/partials/gofundme-donate-button-admin-widgets-create.php:10
- > PHP Fatal error
Uncaught Error: Class 'GoFundMeDonateButtonOptions' not found in wp-content/plugins/donate-button-by-gofundme/admin/partials/gofundme-donate-button-admin-opt-in-notice.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/donate-button-by-gofundme/admin/partials/gofundme-donate-button-admin-settings.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gofundme-donate-button-widgets-create
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.2 1:31592 "jQuery.Deferred exception: Cannot set properties of undefined (setting '_renderItem')" "TypeError: Cannot set properties of undefined (setting '_renderItem')\n at setupCharitySearchInput (/wp-content/plugins/donate-button-by-gofundme/admin/js/gofundme-donate-button-admin.js?ver=1.0.0:45:26)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/donate-button-by-gofundme/admin/js/gofundme-donate-button-admin.js?ver=1.0.0:6:9)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.2:2:30340)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gofundme-donate-button-widgets-create
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.2 1:31702 Uncaught TypeError: Cannot set properties of undefined (setting '_renderItem')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
donate-button-by-gofundme/gofundme-donate-button.php 85% from 13 tests
The main file in "Donate Button by GoFundMe" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("donate-button-by-gofundme.php" instead of "gofundme-donate-button.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,449 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 248 | 665 | 1,219 |
JavaScript | 2 | 47 | 12 | 195 |
CSS | 1 | 5 | 0 | 24 |
Markdown | 1 | 7 | 0 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 2 | 2.60% |
▷ Public methods | 65 | 84.42% |
▷ Protected methods | 6 | 7.79% |
▷ Private methods | 6 | 7.79% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 1 | 6.25% |
▷ Class constants | 15 | 93.75% |
▷ Public constants | 15 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.10MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 77.66KB | 24.96KB | ▼ 67.87% |
assets/banner-772x250.png | 98.61KB | 53.41KB | ▼ 45.83% |
assets/screenshot-2.png | 37.79KB | 14.29KB | ▼ 62.18% |
assets/banner-1544x500-rtl.png | 360.99KB | 196.40KB | ▼ 45.59% |
assets/screenshot-4.png | 24.67KB | 9.07KB | ▼ 63.23% |