Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼10.11ms] Passed 4 tests
A check of server-side resources used by متد درگاه پرداخت آنلاین تومن برای ووکامرس
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 35.97 ▼3.60 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.74 ▼5.30 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 43.55 ▼8.68 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.62 ▼22.84 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.46 ▲0.54 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
tomanipg_do_activation_redirect |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for متد درگاه پرداخت آنلاین تومن برای ووکامرس
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.31 ▼1.29 | 4.42 ▲2.68 | 41.05 ▼3.56 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.03 | 94.70 ▼23.46 | 39.35 ▼6.06 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.00 | 35.60 ▼2.86 | 32.01 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.09 ▲0.45 | 644.95 ▼34.08 | 59.64 ▲1.13 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.00 | 95.55 ▼4.54 | 39.95 ▼5.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- tomanipg_do_activation_redirect
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tomanpay-ipg-method-for-woocommerce/toman-ipg.php:14
- > 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 Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: toman, woocommerce, payment, gateway, wordpress...
tomanpay-ipg-method-for-woocommerce/toman-ipg.php 85% from 13 tests
The main PHP file in "متد درگاه پرداخت آنلاین تومن برای ووکامرس" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tomanpay-ipg-method-for-woocommerce.php" instead of "toman-ipg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin390 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 10 | 310 |
PO File | 1 | 29 | 29 | 80 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
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 |
images/logo.png | 4.21KB | 1.57KB | ▼ 62.60% |