Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.70MB] [CPU: ▼0.72ms] Passed 4 tests
This is a short check of server-side resources used by Easy Donations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 48.80 ▲8.02 |
Dashboard /wp-admin | 4.06 ▲0.71 | 61.19 ▲0.01 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 58.19 ▲9.75 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.75 | 87.97 ▼13.17 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 40.92 ▲2.27 |
Payments List /wp-admin/admin.php?page=edt_payments_info | 3.94 | 38.85 |
Payments List /wp-admin/admin.php?page=edt_payments_page | 3.97 | 43.15 |
General Settings /wp-admin/admin.php?page=edt_plugin_options | 3.97 | 42.96 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_edt_payments |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_edt_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
easy_donations_options |
recovery_mode_email_last_sent |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Donations
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲197 | 14.20 ▼0.05 | 1.80 ▲0.06 | 45.64 ▲3.47 |
Dashboard /wp-admin | 2,367 ▲190 | 6.15 ▲0.61 | 116.98 ▲27.12 | 42.32 ▼0.41 |
Posts /wp-admin/edit.php | 2,292 ▲192 | 3.31 ▲1.30 | 57.65 ▲23.77 | 35.05 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 22.54 ▲4.38 | 684.67 ▲63.35 | 37.79 ▼29.78 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.19 ▲0.01 | 94.84 ▼6.23 | 49.23 ▲3.28 |
Payments List /wp-admin/admin.php?page=edt_payments_info | 722 | 1.71 | 14.16 | 22.43 |
Payments List /wp-admin/admin.php?page=edt_payments_page | 1,231 | 3.04 | 40.31 | 23.95 |
General Settings /wp-admin/admin.php?page=edt_plugin_options | 2,382 | 3.23 | 43.41 | 62.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_edt_payments
- The uninstall procedure has failed, leaving 9 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- easy_donations_options
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_edt_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=edt_payments_info
- > Error in wp-content/plugins/easy-donations/inc/class-easy-donations-admin-payments.php+77
Uncaught Error: Call to a member function prepare_items() on null in wp-content/plugins/easy-donations/inc/class-easy-donations-admin-payments.php:77
Stack trace:
#0 wp-content/plugins/easy-donations/inc/class-easy-donations-admin-payments.php(66): Easy_Donations_Admin_Payments->print_the_list()
#1 wp-content/plugins/easy-donations/inc/class-easy-donations-admin-payments.php(52): Easy_Donations_Admin_Payments->choose_content()
#2 wp-includes/class-wp-hook.php(310): Easy_Donations_Admin_Payments->edt_payments_page_content()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donations_Settings_API' not found in wp-content/plugins/easy-donations/inc/abstract/class-easy-donations-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-donations/inc/gateways/class-edt-pardakhtshahr-gateway.php:7
- > PHP Fatal error
Uncaught Error: Class 'EDT_WP_List_Table' not found in wp-content/plugins/easy-donations/inc/class-easy-donations-admin-payments-list.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-donations/inc/gateways/class-edt-pardakhtpal-gateway.php:7
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donations_Settings' not found in wp-content/plugins/easy-donations/inc/class-easy-donations-admin-payments.php:9
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donations_DB' not found in wp-content/plugins/easy-donations/inc/class-easy-donations-payments.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-donations/inc/gateways/class-edt-parspal-gateway.php:7
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donations_Settings' not found in wp-content/plugins/easy-donations/inc/class-easy-donations-admin-general.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-donations/inc/widgets/class-easy-donations-widgets.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-donations/inc/gateways/class-edt-novinpal-gateway.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid plugin version format
- Donate link: Invalid URI found ("wp-src.ir")
easy-donations/easy-donations.php Passed 13 tests
"Easy Donations" version 1.4.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
Using this plugin you can let your users receives donations easily in their website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,125 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 751 | 910 | 3,355 |
PO File | 1 | 226 | 260 | 487 |
CSS | 2 | 41 | 0 | 179 |
JavaScript | 1 | 29 | 3 | 104 |
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.35 |
Average class complexity | 21.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 2 | 9.52% |
Methods | 203 | |
▷ Static methods | 4 | 1.97% |
▷ Public methods | 189 | 93.10% |
▷ Protected methods | 6 | 2.96% |
▷ Private methods | 8 | 3.94% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 7 | 25.93% |
▷ Class constants | 20 | 74.07% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/default.png | 14.45KB | 6.69KB | ▼ 53.66% |