Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲2.11MB] [CPU: ▲12.90ms] Passed 4 tests
An overview of server-side resources used by افزونه صباپیامک SabaPayamak
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.36 ▲1.90 | 46.88 ▲4.15 |
Dashboard /wp-admin | 5.49 ▲2.19 | 68.02 ▲16.83 |
Posts /wp-admin/edit.php | 5.61 ▲2.25 | 68.37 ▲19.76 |
Add New Post /wp-admin/post-new.php | 8.07 ▲2.18 | 97.90 ▲11.07 |
Media Library /wp-admin/upload.php | 5.39 ▲2.17 | 57.45 ▲19.55 |
Server storage [IO: ▲0.55MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: 6 new tables, 18 new options
New tables |
---|
wp_sabapayamak_event |
wp_sabapayamak_sms_log |
wp_woocommerce_ir_sms_archive |
wp_sabapayamak_sms_log_single |
wp_sabapayamak_handler |
wp_woocommerce_ir_sms_contacts |
New WordPress options |
---|
sms_product_admin_settings |
sms_notif_settings |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
pwoosms_update_gateway_options |
pwoosms_table_contacts_updated |
pwoosms_table_archive |
sms_buyer_settings |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for افزونه صباپیامک SabaPayamak
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲243 | 15.23 ▲0.87 | 1.75 ▼0.09 | 40.73 ▼6.38 |
Dashboard /wp-admin | 2,396 ▲211 | 6.63 ▲0.81 | 143.64 ▲26.73 | 51.15 ▲5.09 |
Posts /wp-admin/edit.php | 2,299 ▲207 | 3.54 ▲1.55 | 67.90 ▲29.29 | 38.33 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,714 ▲194 | 22.75 ▼0.46 | 636.65 ▼46.72 | 29.71 ▼23.97 |
Media Library /wp-admin/upload.php | 1,438 ▲47 | 4.35 ▲0.16 | 82.98 ▼20.79 | 49.74 ▲5.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 6 tables
- wp_sabapayamak_handler
- wp_woocommerce_ir_sms_archive
- wp_sabapayamak_sms_log_single
- wp_sabapayamak_event
- wp_woocommerce_ir_sms_contacts
- wp_sabapayamak_sms_log
- Zombie WordPress options were found after uninstall: 17 options
- pwoosms_table_contacts_updated
- sms_notif_settings
- pwoosms_table_contacts_created
- sms_super_admin_settings
- sms_contacts
- sms_product_admin_settings
- can_compress_scripts
- pwoosms_update_gateway_options
- pwoosms_update_product_admin_meta
- theysaidso_admin_options
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: There were no tags found
sabapayamak/sabapayamak.php 92% from 13 tests
The main PHP file in "افزونه صباپیامک SabaPayamak" ver. 1.0.0 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:
- Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected9,752 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 2,097 | 593 | 8,913 |
JavaScript | 4 | 64 | 99 | 443 |
CSS | 2 | 92 | 4 | 377 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 26.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 3 | 7.14% |
▷ Concrete classes | 39 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 416 | |
▷ Static methods | 168 | 40.38% |
▷ Public methods | 377 | 90.62% |
▷ Protected methods | 4 | 0.96% |
▷ Private methods | 35 | 8.41% |
Functions | 50 | |
▷ Named functions | 28 | 56.00% |
▷ Anonymous functions | 22 | 44.00% |
Constants | 69 | |
▷ Global constants | 6 | 8.70% |
▷ Class constants | 63 | 91.30% |
▷ Public constants | 63 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
woocommerce/assets/images/false.png | 1.23KB | 0.89KB | ▼ 27.25% |
woocommerce/assets/images/tick.png | 1.10KB | 0.85KB | ▼ 22.61% |
assets/icon.png | 10.38KB | 4.90KB | ▼ 52.78% |