Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.53MB] [CPU: ▼0.96ms] Passed 4 tests
This is a short check of server-side resources used by افزونه پیامک ووکامرس Persian WooCommerce SMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.05 ▲1.59 | 49.84 ▲10.13 |
Dashboard /wp-admin | 4.93 ▲1.63 | 45.32 ▼8.70 |
Posts /wp-admin/edit.php | 5.07 ▲1.71 | 47.63 ▼0.00 |
Add New Post /wp-admin/post-new.php | 7.13 ▲1.25 | 84.65 ▼0.56 |
Media Library /wp-admin/upload.php | 4.88 ▲1.65 | 42.60 ▲5.42 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 54 new files
Database: 2 new tables, 24 new options
New tables |
---|
wp_woocommerce_ir_sms_contacts |
wp_woocommerce_ir_sms_archive |
New WordPress options |
---|
sms_contacts |
pwoosms_hide_about_page |
theysaidso_admin_options |
pwoosms_update_gateway_options |
widget_theysaidso_widget |
pwoosms_table_archive |
pwoosms_table_contacts_created |
sms_product_admin_settings |
widget_recent-comments |
sms_main_settings |
... |
Browser metrics Passed 4 tests
افزونه پیامک ووکامرس Persian WooCommerce SMS: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,487 ▼1,248 | 12.92 ▼1.48 | 1.89 ▲0.21 | 38.24 ▼2.84 |
Dashboard /wp-admin | 855 ▼1,333 | 1.73 ▼4.13 | 19.03 ▼83.01 | 19.67 ▼14.45 |
Posts /wp-admin/edit.php | 866 ▼1,223 | 1.52 ▼0.52 | 9.77 ▼24.45 | 21.54 ▼14.66 |
Add New Post /wp-admin/post-new.php | 582 ▼951 | 1.70 ▼19.25 | 10.23 ▼675.75 | 7.02 ▼55.99 |
Media Library /wp-admin/upload.php | 741 ▼641 | 1.70 ▼2.54 | 9.66 ▼98.41 | 19.68 ▼30.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_woocommerce_ir_sms_archive
- wp_woocommerce_ir_sms_contacts
- This plugin does not fully uninstall, leaving 21 options in the database
- sms_archive
- sms_send
- recovery_mode_email_last_sent
- sms_main_settings
- widget_recent-comments
- sms_about
- pwoosms_table_contacts_created
- theysaidso_admin_options
- pwoosms_table_contacts_updated
- sms_notif_settings
- ...
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
Good news, no errors were detected
SRP 50% from 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
The following issues need your attention
- 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/persian-woocommerce-sms/includes/class-functions.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: woocommerce, persian woocommerce, sms
persian-woocommerce-sms/WoocommerceIR_SMS.php 77% from 13 tests
The main PHP script in "افزونه پیامک ووکامرس Persian WooCommerce SMS" version 6.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 389 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("5.8" instead of "5.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("persian-woocommerce-sms.php" instead of "WoocommerceIR_SMS.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected19,627 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 3,265 | 5,167 | 19,317 |
CSS | 2 | 57 | 4 | 236 |
JavaScript | 2 | 2 | 5 | 74 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 68.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 476.00 |
Average method complexity | 7.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 56 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 623 | |
▷ Static methods | 29 | 4.65% |
▷ Public methods | 609 | 97.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 2.25% |
Functions | 32 | |
▷ Named functions | 12 | 37.50% |
▷ Anonymous functions | 20 | 62.50% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.38MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons8-instagram-500(1).png | 13.58KB | 9.20KB | ▼ 32.25% |
assets/images/tick.png | 0.66KB | 0.60KB | ▼ 8.70% |
assets/images/2.png | 51.40KB | 21.00KB | ▼ 59.14% |
assets/images/instagram-48.png | 2.62KB | 1.95KB | ▼ 25.42% |
assets/images/persian-woocommerce-sms-logo.png | 4.92KB | 2.86KB | ▼ 41.90% |