Benchmarks
Plugin footprint 83% 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.08MB] [CPU: ▲1.85ms] Passed 4 tests
Server-side resources used by پلاگین پرداخت دلخواه
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.62 ▼1.81 |
Dashboard /wp-admin | 3.44 ▲0.14 | 63.23 ▲11.11 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 45.58 ▲0.12 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 101.64 ▼2.03 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 57.21 ▲20.02 |
Gateway Settings /wp-admin/edit.php?post_type=cupri_pay&page=cupri-gateways | 3.40 | 47.34 |
Export /wp-admin/edit.php?post_type=cupri_pay&page=cupri-export | 3.36 | 48.82 |
Help /wp-admin/edit.php?post_type=cupri_pay&page=cupri-help | 3.36 | 48.66 |
Custom link /wp-admin/edit.php?post_type=cupri_pay&page=cupri-custom-link | 3.35 | 48.43 |
Custom Fields /wp-admin/edit.php?post_type=cupri_pay&page=cupri-fields | 3.35 | 48.50 |
Settings /wp-admin/edit.php?post_type=cupri_pay&page=cupri-settings | 3.44 | 49.82 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by پلاگین پرداخت دلخواه
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲47 | 14.56 ▲0.21 | 1.76 ▼0.78 | 42.16 ▼3.57 |
Dashboard /wp-admin | 2,242 ▲67 | 5.64 ▼0.03 | 95.90 ▼27.23 | 42.45 ▼7.59 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.02 ▲0.02 | 35.19 ▼0.74 | 33.67 ▼4.87 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.10 ▲0.09 | 683.87 ▼42.51 | 59.53 ▲2.97 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.17 ▼0.07 | 95.05 ▼21.39 | 41.61 ▼3.47 |
Gateway Settings /wp-admin/edit.php?post_type=cupri_pay&page=cupri-gateways | 1,197 | 2.06 | 32.47 | 65.70 |
Export /wp-admin/edit.php?post_type=cupri_pay&page=cupri-export | 891 | 2.04 | 25.57 | 31.36 |
Help /wp-admin/edit.php?post_type=cupri_pay&page=cupri-help | 837 | 2.04 | 25.63 | 33.02 |
Custom link /wp-admin/edit.php?post_type=cupri_pay&page=cupri-custom-link | 855 | 2.17 | 24.59 | 39.26 |
Custom Fields /wp-admin/edit.php?post_type=cupri_pay&page=cupri-fields | 1,226 | 2.12 | 31.65 | 30.63 |
Settings /wp-admin/edit.php?post_type=cupri_pay&page=cupri-settings | 2,300 | 6.96 | 155.62 | 82.06 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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
- 15 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cupri_pay&page=cupri-gateways
- > Notice in wp-content/plugins/pardakht-delkhah/gateways.php+117
Trying to access array offset on value of type bool
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cupri_pay&page=cupri-fields
- > Notice in wp-content/plugins/pardakht-delkhah/class-fields-generator.php+489
Undefined index:
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cupri_pay&page=cupri-fields
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 23× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/pardakht-delkhah/help.php
- > /wp-content/plugins/pardakht-delkhah/admin-export.php
- > /wp-content/plugins/pardakht-delkhah/cupri.php
- > /wp-content/plugins/pardakht-delkhah/admin-custom-fields.php
- > /wp-content/plugins/pardakht-delkhah/gateways/initial.php
- > /wp-content/plugins/pardakht-delkhah/class-payments-list-table.php
- > /wp-content/plugins/pardakht-delkhah/admin-table-header.php
- > /wp-content/plugins/pardakht-delkhah/extra.php
- > /wp-content/plugins/pardakht-delkhah/class-meta-box.php
- > /wp-content/plugins/pardakht-delkhah/gateways/class-cupri-melli-gateway.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pardakht-delkhah/assets/styles/1.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pardakht-delkhah/assets/styles/3.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pardakht-delkhah/assets/styles/2.php:90
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in pardakht-delkhah/assets to your readme.txt
pardakht-delkhah/cupri.php 92% from 13 tests
The main file in "پلاگین پرداخت دلخواه" v. 2.9.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pardakht-delkhah.php" instead of "cupri.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
Everything looks great! No dangerous files found in this plugin21,097 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 1,876 | 7,892 | 20,505 |
PO File | 1 | 152 | 171 | 389 |
CSS | 2 | 2 | 2 | 126 |
JavaScript | 1 | 9 | 2 | 76 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 76.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 390.00 |
Average method complexity | 8.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 1 | 1.79% |
▷ Concrete classes | 55 | 98.21% |
▷ Final classes | 0 | 0.00% |
Methods | 550 | |
▷ Static methods | 3 | 0.55% |
▷ Public methods | 544 | 98.91% |
▷ Protected methods | 6 | 1.09% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/cancel.png | 1.73KB | 1.66KB | ▼ 3.84% |
assets/checked.png | 1.41KB | 1.36KB | ▼ 4.07% |