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
Installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼1.07ms] Passed 4 tests
A check of server-side resources used by درگاه پرداخت پی استار به همراه افزونه Easy Donations - حمایت مالی آسان
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 40.81 ▲0.03 |
Dashboard /wp-admin | 3.88 ▲0.57 | 53.95 ▲8.56 |
Posts /wp-admin/edit.php | 3.93 ▲0.58 | 50.34 ▲5.45 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 84.84 ▼14.29 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 38.65 ▲4.54 |
Payments List /wp-admin/admin.php?page=edt_payments_info | 3.75 | 34.07 |
General Settings /wp-admin/admin.php?page=edt_plugin_options | 3.78 | 39.66 |
Payments List /wp-admin/admin.php?page=edt_payments_page | 3.79 | 38.88 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_edt_payments |
New WordPress options |
---|
easy_donations_options |
theysaidso_admin_options |
widget_edt_widget |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Checking browser requirements for درگاه پرداخت پی استار به همراه افزونه Easy Donations - حمایت مالی آسان
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲234 | 14.64 ▼0.00 | 1.82 ▼0.30 | 41.02 ▼7.09 |
Dashboard /wp-admin | 2,378 ▲186 | 6.52 ▲1.59 | 126.63 ▲13.93 | 39.69 ▲0.39 |
Posts /wp-admin/edit.php | 2,281 ▲192 | 3.33 ▲1.32 | 50.37 ▲9.56 | 33.01 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 22.10 ▲4.59 | 624.69 ▼31.16 | 39.36 ▼15.49 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.17 ▼0.08 | 79.72 ▼24.33 | 44.16 ▼2.82 |
Payments List /wp-admin/admin.php?page=edt_payments_info | 715 | 1.55 | 13.76 | 22.45 |
General Settings /wp-admin/admin.php?page=edt_plugin_options | 1,660 | 3.22 | 41.32 | 62.65 |
Payments List /wp-admin/admin.php?page=edt_payments_page | 1,216 | 3.06 | 41.74 | 25.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_edt_payments
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- widget_theysaidso_widget
- easy_donations_options
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_edt_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=edt_payments_info
- > Error in wp-content/plugins/paystar-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/paystar-easy-donations/inc/class-easy-donations-admin-payments.php:77
Stack trace:
#0 wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-payments.php(66): Easy_Donations_Admin_Payments->print_the_list()
#1 wp-content/plugins/paystar-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 | 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 items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donations_DB' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-install.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/paystar-easy-donations/inc/widgets/class-easy-donations-widgets.php:9
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donations_DB' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-payments.php:3
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donations_Settings' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-general.php:9
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donations_Settings' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-payments.php:9
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donations_Settings_API' not found in wp-content/plugins/paystar-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/paystar-easy-donations/inc/gateways/class-edt-paystar-gateway.php:8
- > PHP Fatal error
Uncaught Error: Class 'EDT_WP_List_Table' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-payments-list.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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: donation, payment, form, gateway, paystar...
paystar-easy-donations/easy-donations.php 92% from 13 tests
Analyzing the main PHP file in "درگاه پرداخت پی استار به همراه افزونه Easy Donations - حمایت مالی آسان" version 1.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paystar-easy-donations.php" instead of "easy-donations.php")
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
Success! There were no dangerous files found in this plugin2,724 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 571 | 860 | 2,378 |
PO File | 1 | 101 | 124 | 229 |
JavaScript | 1 | 24 | 3 | 91 |
CSS | 1 | 6 | 0 | 26 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 2 | 12.50% |
Methods | 179 | |
▷ Static methods | 4 | 2.23% |
▷ Public methods | 165 | 92.18% |
▷ Protected methods | 6 | 3.35% |
▷ Private methods | 8 | 4.47% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 6 | 30.00% |
▷ Class constants | 14 | 70.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 0.74KB | 0.67KB | ▼ 8.48% |
assets/img/default.png | 14.45KB | 6.69KB | ▼ 53.66% |