Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.19MB] [CPU: ▼43.91ms] Passed 4 tests
A check of server-side resources used by Bank Melli EDD gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 13.41 ▼22.99 |
Dashboard /wp-admin | 2.82 ▼0.49 | 15.37 ▼33.26 |
Posts /wp-admin/edit.php | 2.82 ▼0.54 | 17.57 ▼28.11 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.07 | 21.40 ▼91.26 |
Media Library /wp-admin/upload.php | 2.82 ▼0.41 | 16.45 ▼15.45 |
About /wp-admin/admin.php?page=melli_bank_gate_about | 2.82 | 17.01 |
Sadad for EDD /wp-admin/admin.php?page=melli_bank_gate | 2.82 | 16.29 |
Newsletters /wp-admin/admin.php?page=melli_bank_gate_news | 2.82 | 15.55 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Bank Melli EDD gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.29 ▼1.02 | 1.79 ▲0.16 | 40.45 ▲0.79 |
Dashboard /wp-admin | 2,236 ▲48 | 5.83 ▲0.93 | 95.89 ▼5.94 | 75.04 ▲30.67 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.02 ▲0.01 | 37.61 ▲2.34 | 34.34 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 18.29 ▼0.10 | 701.25 ▲94.37 | 63.47 ▲9.53 |
Media Library /wp-admin/upload.php | 1,421 ▲36 | 4.22 ▲0.00 | 94.37 ▼0.46 | 45.54 ▼0.40 |
About /wp-admin/admin.php?page=melli_bank_gate_about | 815 | 2.02 | 26.38 | 43.22 |
Sadad for EDD /wp-admin/admin.php?page=melli_bank_gate | 857 | 2.14 | 31.41 | 43.96 |
Newsletters /wp-admin/admin.php?page=melli_bank_gate_news | 835 | 2.02 | 22.18 | 37.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/bank-melli-edd-gateway/Melli_for_EDD.php+174
Trying to access array offset on value of type null
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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
Smoke test failed, please fix the following
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melli_bank_gate_news
- > Notice in wp-content/plugins/bank-melli-edd-gateway/Melli_for_EDD.php+176
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bank-melli-edd-gateway/Melli_for_EDD.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bank-melli-edd-gateway/news.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bank-melli-edd-gateway/melli.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bank-melli-edd-gateway/about.php:13
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Screen shot (screenshot-1.png) English Payement gateways setting.), #2 (Screen shot (screenshot-2.png) Persian Payement gateways setting.), #3 (Screen shot (screenshot-3.png) Bank melli Merchant ID , username and password fields.)
bank-melli-edd-gateway/Melli_for_EDD.php 85% from 13 tests
The main PHP file in "Bank Melli EDD gateway" ver. 1.5.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bank-melli-edd-gateway.php" instead of "Melli_for_EDD.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
Good job! No executable or dangerous file extensions detected455 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 59 | 36 | 379 |
PO File | 1 | 23 | 23 | 76 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 14.72KB | 6.79KB | ▼ 53.85% |
screenshot-2.png | 40.43KB | 15.24KB | ▼ 62.30% |
images/logo.png | 21.92KB | 3.16KB | ▼ 85.58% |
screenshot-1.png | 42.81KB | 15.58KB | ▼ 63.62% |
images/icon.png | 0.78KB | 0.81KB | 0.00% |