Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/woo-pardakht/index.php+159
Use of undefined constant PR_schedule_time - assumed 'PR_schedule_time' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.18ms] Passed 4 tests
Server-side resources used by Pardakht Cash On Delivery And Online Payment For Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.22 ▲3.69 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.77 ▼12.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.85 ▼4.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.18 ▼20.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.80 ▼3.12 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
woocommerce_cod_settings |
theysaidso_admin_options |
woocommerce_status_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Pardakht Cash On Delivery And Online Payment For Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.72 ▲0.48 | 1.79 ▼0.14 | 42.11 ▲4.19 |
Dashboard /wp-admin | 2,195 ▲20 | 5.55 ▼0.10 | 86.72 ▼12.41 | 40.97 ▼1.24 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.00 | 34.06 ▼1.42 | 32.97 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.71 ▲0.64 | 675.55 ▲41.96 | 54.92 ▲5.27 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.02 | 93.68 ▼0.77 | 41.57 ▼4.18 |
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
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- woocommerce_status_options
- can_compress_scripts
- db_upgraded
- woocommerce_cod_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-pardakht/epay.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% 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
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Please a description for screenshot #4 in woo-pardakht/assets to your readme.txt
woo-pardakht/index.php 85% from 13 tests
This is the main PHP file of "Pardakht Cash On Delivery And Online Payment For Woocommerce" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 244 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("woo-pardakht.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin7,633 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 450 | 46 | 4,930 |
JavaScript | 1 | 13 | 0 | 2,703 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 6.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 41 | 91.11% |
▷ Anonymous functions | 4 | 8.89% |
Constants | 15 | |
▷ Global constants | 15 | 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
5 PNG files occupy 0.35MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 149.40KB | 52.84KB | ▼ 64.63% |
assets/screenshot-3.png | 50.28KB | 16.16KB | ▼ 67.85% |
assets/screenshot-1.png | 63.75KB | 20.94KB | ▼ 67.15% |
assets/screenshot-2.png | 73.50KB | 21.98KB | ▼ 70.10% |
icon.png | 19.73KB | 1.44KB | ▼ 92.71% |