Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.97MB] [CPU: ▼293.48ms] Passed 4 tests
A check of server-side resources used by Donation Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲0.97 | 60.90 ▲6.59 |
Dashboard /wp-admin | 4.41 ▲1.00 | 45.72 ▲9.49 |
Posts /wp-admin/edit.php | 4.63 ▲0.99 | 49.70 ▼4.70 |
Add New Post /wp-admin/post-new.php | 7.88 ▲0.91 | 105.00 ▼1,179.53 |
Media Library /wp-admin/upload.php | 4.29 ▲1.00 | 33.43 ▲3.72 |
Add New Goal /wp-admin/post-new.php?post_type=donationgoal | 4.50 | 53.84 |
Paypal Donation /wp-admin/options-general.php?page=donation-button | 4.27 | 35.85 |
All Goals /wp-admin/edit.php?post_type=donationgoal | 4.33 | 36.93 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 254 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_donation_button_admin_widget |
Browser metrics Passed 4 tests
Donation Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,881 ▲137 | 16.41 ▲0.54 | 6.54 ▲0.02 | 2.31 ▲0.12 |
Dashboard /wp-admin | 3,008 ▲128 | 7.43 ▲0.94 | 138.61 ▼2.93 | 179.61 ▲20.20 |
Posts /wp-admin/edit.php | 2,782 ▲94 | 3.93 ▲0.50 | 72.30 ▲9.36 | 159.14 ▲16.73 |
Add New Post /wp-admin/post-new.php | 1,740 ▲44 | 19.19 ▼2.11 | 402.51 ▼53.76 | 191.63 ▲21.89 |
Media Library /wp-admin/upload.php | 1,789 ▲91 | 6.41 ▲0.69 | 118.16 ▼21.71 | 201.34 ▲10.89 |
Add New Goal /wp-admin/post-new.php?post_type=donationgoal | 3,430 | 5.49 | 125.28 | 160.33 |
Paypal Donation /wp-admin/options-general.php?page=donation-button | 1,835 | 3.59 | 62.72 | 176.86 |
All Goals /wp-admin/edit.php?post_type=donationgoal | 1,440 | 3.64 | 71.47 | 124.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 1 option
- widget_donation_button_admin_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 191× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/donation-button/admin/partials/lib/constant_contact/constant_contact_subscribe.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/donation-button/admin/partials/lib/constant_contact/Ctct/Services/CampaignScheduleService.php:15
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_SIPListResource' not found in wp-content/plugins/donation-button/admin/partials/lib/Twilio/Rest/CredentialLists.php:3
- > PHP Warning
include_once(DBP_PLUGIN_DIR_PATH/admin/partials/lib/constant_contact/Ctct/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/donation-button/includes/class-donation-button-constant-contact-helper.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_TaskRouterInstanceResource' not found in wp-content/plugins/donation-button/admin/partials/lib/Twilio/Rest/TaskRouter/Activity.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/donation-button/admin/partials/lib/Twilio/Rest/IncomingPhoneNumber.php:92
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/donation-button/admin/partials/lib/Twilio/Rest/IpAccessControlListMapping.php:30
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_TaskRouterInstanceResource' not found in wp-content/plugins/donation-button/admin/partials/lib/Twilio/Rest/TaskRouter/WorkerStatistics.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_MonitorInstanceResource' not found in wp-content/plugins/donation-button/admin/partials/lib/Twilio/Rest/Monitor/Event.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/donation-button/admin/partials/lib/Twilio/Rest/AvailablePhoneNumbers.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 36 tag instead of maximum 10
donation-button/donation-button.php Passed 13 tests
The entry point to "Donation Button" version 3.0.7 is a PHP file that has certain tags in its header comment area
56 characters long description:
Easy to used PayPal Donation button with Auto Responder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin17,974 lines of code in 237 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 226 | 2,559 | 9,983 | 15,540 |
CSS | 5 | 57 | 193 | 1,202 |
JavaScript | 5 | 174 | 291 | 1,151 |
make | 1 | 27 | 15 | 81 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 245 | |
▷ Abstract classes | 16 | 6.53% |
▷ Concrete classes | 229 | 93.47% |
▷ Final classes | 0 | 0.00% |
Methods | 990 | |
▷ Static methods | 126 | 12.73% |
▷ Public methods | 930 | 93.94% |
▷ Protected methods | 40 | 4.04% |
▷ Private methods | 20 | 2.02% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 46 | |
▷ Global constants | 45 | 97.83% |
▷ Class constants | 1 | 2.17% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/reload.png | 1.10KB | 1.07KB | ▼ 2.74% |
admin/images/add.png | 0.62KB | 0.44KB | ▼ 29.34% |
admin/images/remove.png | 0.82KB | 0.75KB | ▼ 8.66% |
admin/images/donation-button.png | 1.48KB | 0.83KB | ▼ 43.92% |