Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/smart-donations/smart-donations-widget.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; rednao_smart_donations_widget has a deprecated constructor
Server metrics [RAM: ▼2.21MB] [CPU: ▼344.44ms] Passed 4 tests
A check of server-side resources used by Donations Made Easy - Smart Donations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.36 | 4.61 ▼45.28 |
Dashboard /wp-admin | 2.17 ▼1.23 | 4.81 ▼27.80 |
Posts /wp-admin/edit.php | 2.17 ▼1.46 | 5.48 ▼30.39 |
Add New Post /wp-admin/post-new.php | 2.17 ▼4.80 | 4.83 ▼1,274.30 |
Media Library /wp-admin/upload.php | 2.17 ▼1.12 | 4.29 ▼21.52 |
Smart Donations /wp-admin/admin.php?page=smart_donations_menu | 2.17 | 6.09 |
Analytics /wp-admin/admin.php?page=smart-donations/smartdonations.phpanalytics | 2.17 | 5.04 |
Settings /wp-admin/admin.php?page=smart-donations/smartdonations.phpsettings | 2.17 | 5.67 |
Wish List/Support /wp-admin/admin.php?page=smart-donations/smartdonations.phpwishlist | 2.17 | 4.91 |
Progress Indicators /wp-admin/admin.php?page=smart-donations/smartdonations.phpprogress_indicators | 2.17 | 5.20 |
Campaigns /wp-admin/admin.php?page=smart-donations/smartdonations.phpcampaigns | 2.17 | 4.37 |
Server storage [IO: ▲4.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 172 new files
Database: 4 new tables, 3 new options
New tables |
---|
wp_smart_donations_transaction_table |
wp_smart_donations_progress_table |
wp_smart_donations_donation_item |
wp_smart_donations_campaign_table |
New WordPress options |
---|
REDNAO_SMART_DONATIONS_DB_VERSION |
widget_rednao_smart_donations_progress_widget |
widget_rednao_smart_donations_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Donations Made Easy - Smart Donations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲84 | 16.15 ▲0.39 | 6.17 ▼0.10 | 2.21 ▼0.43 |
Dashboard /wp-admin | 2,945 ▲87 | 6.18 ▼0.00 | 117.88 ▼15.03 | 179.65 ▲14.52 |
Posts /wp-admin/edit.php | 2,741 ▲47 | 3.12 ▼0.12 | 63.60 ▼0.72 | 141.02 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,723 ▲33 | 18.58 ▼2.37 | 415.89 ▼47.60 | 172.75 ▲8.67 |
Media Library /wp-admin/upload.php | 1,751 ▲50 | 5.53 ▲0.05 | 126.15 ▼14.11 | 210.46 ▲20.69 |
Smart Donations /wp-admin/admin.php?page=smart_donations_menu | 1,206 | 2.44 | 55.71 | 130.48 |
Analytics /wp-admin/admin.php?page=smart-donations/smartdonations.phpanalytics | 1,168 | 3.71 | 69.95 | 108.20 |
Settings /wp-admin/admin.php?page=smart-donations/smartdonations.phpsettings | 1,126 | 2.45 | 54.20 | 88.43 |
Wish List/Support /wp-admin/admin.php?page=smart-donations/smartdonations.phpwishlist | 1,060 | 2.48 | 54.67 | 139.15 |
Progress Indicators /wp-admin/admin.php?page=smart-donations/smartdonations.phpprogress_indicators | 1,160 | 3.51 | 66.05 | 102.11 |
Campaigns /wp-admin/admin.php?page=smart-donations/smartdonations.phpcampaigns | 1,526 | 3.82 | 68.66 | 110.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/smart-donations/smart-donations-widget.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; rednao_smart_donations_widget has a deprecated constructor
- Zombie tables were found after uninstall: 4 tables
- wp_smart_donations_progress_table
- wp_smart_donations_donation_item
- wp_smart_donations_transaction_table
- wp_smart_donations_campaign_table
- Zombie WordPress options were found after uninstall: 3 options
- widget_rednao_smart_donations_progress_widget
- widget_rednao_smart_donations_widget
- REDNAO_SMART_DONATIONS_DB_VERSION
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=smart-donations/smartdonations.phpcampaigns
- > Deprecated in wp-content/plugins/smart-donations/smart-donations-widget.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; rednao_smart_donations_widget has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=smart-donations/smartdonations.phpcampaigns
- > Deprecated in wp-content/plugins/smart-donations/smart-donations-progress-widget.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; rednao_smart_donations_progress_widget has a deprecated constructor
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
Almost there! Just fix the following items
- 9× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/smart-donations/smartdonations-settings.php
- > /wp-content/plugins/smart-donations/smart-donations-config.php
- > /wp-content/plugins/smart-donations/smart-donations-add-new.php
- > /wp-content/plugins/smart-donations/smart-donations-messages.php
- > /wp-content/plugins/smart-donations/smart-donations-campaigns.php
- > /wp-content/plugins/smart-donations/smartdonations.php
- > /wp-content/plugins/smart-donations/smart-donations-progress-indicators.php
- > /wp-content/plugins/smart-donations/smart-donations-progress-add.php
- > /wp-content/plugins/smart-donations/wepay-ipn.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-donations/smart-donations-progress-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/smart-donations/smart-donations-wishlist.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-donations/smart-donations-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-donations/smart-donations-wall-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/smart-donations/smart-donations-list.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/smart-donations/smart-donations-progress-pro.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/smart-donations/smart-donations-analytics-pro.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/smart-donations/smart-donations-support-links.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/smart-donations/smart-donations-analytics.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smart-donations/donation_provider/donation_provider_config.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% 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 require attention:
- Tags: You are using too many tags: 18 tag instead of maximum 10
smart-donations/smartdonations.php 77% from 13 tests
"Donations Made Easy - Smart Donations" version 4.0.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("smart-donations.php" instead of "smartdonations.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin33,215 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 41 | 2,593 | 1,522 | 15,732 |
CSS | 15 | 1,488 | 204 | 13,570 |
PHP | 30 | 1,136 | 146 | 3,559 |
SVG | 2 | 0 | 1 | 354 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 81.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 18.46% |
Functions | 48 | |
▷ Named functions | 48 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
62 PNG files occupy 1.26MB with 0.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/slider_donation_wepay.png | 14.02KB | 4.32KB | ▼ 69.19% |
images/threeButtonsStyle2.png | 30.65KB | 0.96KB | ▼ 96.86% |
css/smartDonationsSlider/images/ui-icons_ffd27a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/threeButtonsStyle1.png | 30.65KB | 1.18KB | ▼ 96.14% |
css/smartDonationsSlider/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |