Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.92MB] [CPU: ▼34.24ms] Passed 4 tests
This is a short check of server-side resources used by درگاه پرداخت بانک ملت ووکامرس
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.77 ▼3.49 |
Dashboard /wp-admin | 3.03 ▼0.28 | 27.73 ▼26.04 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 28.85 ▼19.54 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 26.76 ▼76.86 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 21.79 ▼14.50 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for درگاه پرداخت بانک ملت ووکامرس
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.56 ▼0.17 | 1.68 ▼0.37 | 42.88 ▼0.11 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▲0.00 | 87.68 ▼12.22 | 40.35 ▼3.68 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.00 | 40.34 ▲1.09 | 36.62 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.63 ▼4.59 | 650.94 ▼1.05 | 64.47 ▲10.83 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.13 ▼0.03 | 102.41 ▼3.49 | 42.13 ▼3.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'pwmellat_dismiss_notice_action' not found or invalid function name
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Settings page), #2 (payment page)
mellat-woocommerce/index.php 85% from 13 tests
"درگاه پرداخت بانک ملت ووکامرس" version 4.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Plugin Name: A shorter plugin name is better (currently 89 characters long instead of max. 70)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mellat-woocommerce.php" instead of "index.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
Good job! No executable or dangerous file extensions detected6,181 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 503 | 2,419 | 6,181 |
PHP code Passed 2 tests
This is a very shot review of 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.49 |
Average class complexity | 99.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 10.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 1 | 0.64% |
▷ Public methods | 155 | 99.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.64% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 0.91KB | 0.72KB | ▼ 20.88% |