Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.46MB] [CPU: ▼1.25ms] Passed 4 tests
This is a short check of server-side resources used by افزونه پیامک ووکامرس فوق حرفه ای (جدید) payamito sms woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 43.79 ▲3.08 |
Dashboard /wp-admin | 3.77 ▲0.43 | 52.06 ▼17.04 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 54.12 ▲0.11 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 99.87 ▲10.94 |
Media Library /wp-admin/upload.php | 3.69 ▲0.47 | 42.06 ▲8.87 |
پیامیتو /wp-admin/admin.php?page=payamito | 3.80 | 50.11 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.72 | 108.92 |
Logs /wp-admin/admin.php?page=payamito_logs | 3.67 | 38.42 |
Server storage [IO: ▲5.77MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 313 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_payamito_wc_cart_abandonment |
wp_payamito_wc_history |
wp_payamito_sms |
New WordPress options |
---|
payamito_core_version |
db_upgraded |
payamito |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for افزونه پیامک ووکامرس فوق حرفه ای (جدید) payamito sms woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,057 ▲296 | 13.77 ▼0.37 | 6.98 ▲5.14 | 36.84 ▼3.91 |
Dashboard /wp-admin | 2,375 ▲172 | 5.98 ▲0.19 | 99.82 ▲0.21 | 47.30 ▲7.24 |
Posts /wp-admin/edit.php | 2,220 ▲120 | 2.42 ▲0.43 | 40.88 ▲0.69 | 42.32 ▲4.10 |
Add New Post /wp-admin/post-new.php | 1,591 ▲60 | 22.45 ▼0.72 | 636.67 ▼22.36 | 56.81 ▲7.67 |
Media Library /wp-admin/upload.php | 1,559 ▲159 | 4.41 ▲0.19 | 102.56 ▼5.21 | 50.15 ▲3.43 |
پیامیتو /wp-admin/admin.php?page=payamito | 3,457 | 4.74 | 100.31 | 124.08 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,011 | 2.09 | 27.48 | 36.36 |
Logs /wp-admin/admin.php?page=payamito_logs | 1,481 | 2.38 | 46.28 | 42.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_payamito_wc_cart_abandonment
- wp_payamito_wc_history
- wp_payamito_sms
- Zombie WordPress options were found after uninstall: 8 options
- payamito_core_version
- widget_recent-posts
- payamito
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/payamito-sms-woocommerce/includes/core/payamito-core/admin/partials/payamito-admin-display.php
- > /wp-content/plugins/payamito-sms-woocommerce/includes/payamito-woocommerce.php
- > /wp-content/plugins/payamito-sms-woocommerce/includes/Autoloader.php
- > /wp-content/plugins/payamito-sms-woocommerce/includes/core/payamito-core/public/partials/payamito-public-display.php
- > /wp-content/plugins/payamito-sms-woocommerce/bootstrap.php
- > /wp-content/plugins/payamito-sms-woocommerce/modules/class-modules.php
- > /wp-content/plugins/payamito-sms-woocommerce/Define-constants.php
- > /wp-content/plugins/payamito-sms-woocommerce/includes/class-woocommerce.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'KIANFR_Fields' not found in wp-content/plugins/payamito-sms-woocommerce/includes/core/payamito-core/admin/settings/payamito_show_other_plugins.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/payamito-sms-woocommerce/includes/core/payamito-core/includes/direct-send/html-send.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/payamito-sms-woocommerce/includes/lib/class-tgm-plugin-activation.php:1996
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: sms payamito
payamito-sms-woocommerce/bootstrap.php 77% from 13 tests
The entry point to "افزونه پیامک ووکامرس فوق حرفه ای (جدید) payamito sms woocommerce" version 1.2.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("payamito-sms-woocommerce.php" instead of "bootstrap.php")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.4.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin77,098 lines of code in 245 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 144 | 5,096 | 7,213 | 37,334 |
CSS | 25 | 2,520 | 1,059 | 13,299 |
JavaScript | 24 | 1,854 | 739 | 9,412 |
PO File | 24 | 4,152 | 4,832 | 8,811 |
Sass | 20 | 1,538 | 3 | 7,935 |
JSON | 4 | 0 | 0 | 149 |
Markdown | 2 | 41 | 0 | 142 |
SVG | 2 | 0 | 0 | 16 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 108)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 34.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 391.00 |
Average method complexity | 5.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 128 | |
▷ Abstract classes | 3 | 2.34% |
▷ Concrete classes | 125 | 97.66% |
▷ Final classes | 2 | 1.60% |
Methods | 920 | |
▷ Static methods | 164 | 17.83% |
▷ Public methods | 845 | 91.85% |
▷ Protected methods | 44 | 4.78% |
▷ Private methods | 31 | 3.37% |
Functions | 68 | |
▷ Named functions | 58 | 85.29% |
▷ Anonymous functions | 10 | 14.71% |
Constants | 35 | |
▷ Global constants | 28 | 80.00% |
▷ Class constants | 7 | 20.00% |
▷ Public constants | 7 | 100.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
8 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/core/payamito-core/assets/images/aparat.png | 3.96KB | 2.35KB | ▼ 40.60% |
includes/core/payamito-core/assets/images/puzzle.png | 2.63KB | 1.87KB | ▼ 28.82% |
includes/core/payamito-core/assets/images/telegram.png | 2.98KB | 1.83KB | ▼ 38.72% |
includes/core/payamito-core/assets/images/symmary-box-image.png | 28.02KB | 8.15KB | ▼ 70.92% |
includes/core/payamito-core/assets/images/instagram.png | 3.87KB | 2.14KB | ▼ 44.62% |