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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼8.44ms] Passed 4 tests
Server-side resources used by افزونه پیامک ایزی دیجتال دانلود ( EDD ) payamito sms easy digital download
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 53.64 ▲8.42 |
Dashboard /wp-admin | 3.43 ▲0.08 | 54.64 ▼10.74 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.11 ▼3.81 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 89.77 ▼15.86 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.63 ▼3.35 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.36 | 39.43 |
Server storage [IO: ▲5.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 294 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_payamito_sms |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
payamito_core_version |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for افزونه پیامک ایزی دیجتال دانلود ( EDD ) payamito sms easy digital download
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲177 | 13.84 ▼0.52 | 10.71 ▲8.81 | 42.22 ▼1.38 |
Dashboard /wp-admin | 2,228 ▲48 | 5.54 ▼0.10 | 90.64 ▼0.39 | 59.45 ▲16.37 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 2.14 ▲0.16 | 36.52 ▼2.88 | 38.36 ▲4.00 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 18.31 ▼4.70 | 610.44 ▼90.36 | 70.18 ▲15.71 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.23 ▲0.05 | 98.36 ▼12.07 | 48.99 ▲0.95 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 974 | 2.02 | 26.61 | 32.22 |
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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_payamito_sms
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- payamito_core_version
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/payamito-easy-digital-downloads-sms/includes/core/payamito-core/public/partials/payamito-public-display.php
- > /wp-content/plugins/payamito-easy-digital-downloads-sms/bootstrap.php
- > /wp-content/plugins/payamito-easy-digital-downloads-sms/includes/core/payamito-core/admin/partials/payamito-admin-display.php
- > /wp-content/plugins/payamito-easy-digital-downloads-sms/includes/Autoloader.php
- > /wp-content/plugins/payamito-easy-digital-downloads-sms/Define-constants.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/payamito-easy-digital-downloads-sms/includes/libraries/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/payamito-easy-digital-downloads-sms/includes/core/payamito-core/includes/direct-send/html-send.php:2
- > PHP Fatal error
Uncaught Error: Class 'KIANFR_Fields' not found in wp-content/plugins/payamito-easy-digital-downloads-sms/includes/core/payamito-core/admin/settings/payamito_show_other_plugins.php:9
- > 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
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: sms payamito
payamito-easy-digital-downloads-sms/bootstrap.php 77% from 13 tests
This is the main PHP file of "افزونه پیامک ایزی دیجتال دانلود ( EDD ) payamito sms easy digital download" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("payamito-easy-digital-downloads-sms.php" instead of "bootstrap.php")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.0.0")
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
Success! There were no dangerous files found in this plugin60,689 lines of code in 226 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 5,148 | 4,305 | 21,764 |
CSS | 27 | 1,857 | 1,059 | 13,668 |
JavaScript | 23 | 1,961 | 785 | 9,505 |
Sass | 20 | 1,424 | 3 | 7,934 |
PO File | 24 | 3,691 | 4,156 | 7,713 |
Markdown | 1 | 15 | 0 | 85 |
JSON | 1 | 1 | 0 | 18 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 25.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 100 | |
▷ Abstract classes | 3 | 3.00% |
▷ Concrete classes | 97 | 97.00% |
▷ Final classes | 1 | 1.03% |
Methods | 616 | |
▷ Static methods | 115 | 18.67% |
▷ Public methods | 547 | 88.80% |
▷ Protected methods | 39 | 6.33% |
▷ Private methods | 30 | 4.87% |
Functions | 54 | |
▷ Named functions | 51 | 94.44% |
▷ Anonymous functions | 3 | 5.56% |
Constants | 22 | |
▷ Global constants | 15 | 68.18% |
▷ Class constants | 7 | 31.82% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and 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/symmary-box-image.png | 28.02KB | 8.15KB | ▼ 70.92% |
includes/core/payamito-core/assets/images/instagram.png | 3.87KB | 2.14KB | ▼ 44.62% |
includes/core/payamito-core/admin/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
includes/core/payamito-core/assets/images/puzzle.png | 2.63KB | 1.87KB | ▼ 28.82% |
includes/core/payamito-core/assets/images/youtube.png | 2.48KB | 1.45KB | ▼ 41.62% |