Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.30ms] Passed 4 tests
Server-side resources used by Erima Zarinpal Donate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.92 ▼5.40 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.79 ▲1.94 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.25 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.45 ▼10.84 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 44.47 ▲8.50 |
حمات مالی /wp-admin/admin.php?page=EZD_MenuItem | 3.27 | 33.90 |
نمایش حامیان مالی /wp-admin/admin.php?page=EZD_Hamian | 3.28 | 34.40 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_erima_donate |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
EZD_TotalAmount |
EZD_IsOK |
EZD_TotalPayment |
EZD_CustomStyle |
EZD_IsError |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Erima Zarinpal Donate: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.27 ▼1.27 | 1.56 ▼0.16 | 45.89 ▲2.63 |
Dashboard /wp-admin | 2,229 ▲50 | 6.03 ▲1.16 | 123.32 ▼0.88 | 48.93 ▲1.51 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.04 ▲0.07 | 40.70 ▼11.91 | 43.64 ▲6.21 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.17 ▼0.20 | 675.58 ▼19.11 | 73.50 ▲19.36 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.21 ▲0.03 | 111.33 ▲3.04 | 55.33 ▲10.95 |
حمات مالی /wp-admin/admin.php?page=EZD_MenuItem | 912 | 2.02 | 27.42 | 58.94 |
نمایش حامیان مالی /wp-admin/admin.php?page=EZD_Hamian | 901 | 2.04 | 30.10 | 46.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_erima_donate
- Zombie WordPress options were found after uninstall: 12 options
- EZD_IsError
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- EZD_TotalAmount
- EZD_IsOK
- EZD_TotalPayment
- db_upgraded
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=EZD_Hamian
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=EZD_Hamian
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=EZD_Hamian
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=EZD_Hamian
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
- > GET request to /wp-admin/admin.php?page=EZD_Hamian
- > Notice in wp-content/plugins/erima-zarinpal-donate/ErimaZarinpalDonate.php+508
Undefined index: HTTPS
- > GET request to /wp-admin/admin.php?page=EZD_Hamian
- > Notice in wp-content/plugins/erima-zarinpal-donate/EZD_Hamian.php+84
Undefined variable: Limit
- > GET request to /wp-admin/admin.php?page=EZD_Hamian
- > Notice in wp-content/plugins/erima-zarinpal-donate/EZD_Hamian.php+86
Undefined variable: resault
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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/erima-zarinpal-donate/EZD_AdminPage.php
- > /wp-content/plugins/erima-zarinpal-donate/ErimaZarinpalDonate.php
- > /wp-content/plugins/erima-zarinpal-donate/EZD_Hamian.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/erima-zarinpal-donate/lib/class.soapclient.php:26
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/erima-zarinpal-donate/lib/class.soap_transport_http.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/erima-zarinpal-donate/lib/class.soap_fault.php:14
- > PHP Warning
require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/erima-zarinpal-donate/lib/nusoapmime.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/erima-zarinpal-donate/lib/class.soap_val.php:17
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/erima-zarinpal-donate/lib/class.soap_parser.php:15
- > PHP Fatal error
require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/erima-zarinpal-donate/lib/nusoapmime.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/erima-zarinpal-donate/lib/class.soap_server.php:16
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/erima-zarinpal-donate/lib/class.xmlschema.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/erima-zarinpal-donate/lib/class.wsdl.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in erima-zarinpal-donate/assets to your readme.txt
erima-zarinpal-donate/ErimaZarinpalDonate.php 85% from 13 tests
The principal PHP file in "Erima Zarinpal Donate" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("erima-zarinpal-donate.php" instead of "ErimaZarinpalDonate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin11,564 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 967 | 5,131 | 11,564 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 78.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 9.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 320 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 320 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin