Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/nirweb-smart-sms/core/core.php+5
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.29MB] [CPU: ▼1.82ms] Passed 4 tests
A check of server-side resources used by افزونه پیامک ووکامرس و وردپرس نیر وب
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 39.43 ▲0.89 |
Dashboard /wp-admin | 3.62 ▲0.32 | 45.57 ▼0.40 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 48.91 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 80.46 ▼8.45 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 35.83 ▲0.70 |
Nirweb SMS General Settings /wp-admin/admin.php?page=nirweb_smart_sms_settings | 3.50 | 96.55 |
Send SMSPRO /wp-admin/admin.php?page=send_sms_nirweb_smart_sms | 3.45 | 35.04 |
SubscribersPRO /wp-admin/admin.php?page=export_billing_phone | 3.45 | 29.23 |
Settings /wp-admin/admin.php?page=nirweb_ticket_settings | 3.42 | 30.12 |
Server storage [IO: ▲4.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 167 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
nirweb_smart_sms_perfix |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for افزونه پیامک ووکامرس و وردپرس نیر وب
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 13.78 ▼0.61 | 5.27 ▲3.38 | 38.43 ▼9.18 |
Dashboard /wp-admin | 2,249 ▲61 | 5.13 ▼0.78 | 110.74 ▲7.60 | 38.54 ▼6.42 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.28 ▲0.28 | 38.16 ▲2.03 | 33.71 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,564 ▲28 | 18.17 ▼5.04 | 622.00 ▼35.41 | 51.92 ▲1.75 |
Media Library /wp-admin/upload.php | 1,434 ▲43 | 4.48 ▲0.31 | 95.83 ▼6.39 | 43.37 ▼2.06 |
Nirweb SMS General Settings /wp-admin/admin.php?page=nirweb_smart_sms_settings | 5,258 | 4.06 | 65.96 | 50.82 |
Send SMSPRO /wp-admin/admin.php?page=send_sms_nirweb_smart_sms | 1,126 | 1.81 | 25.66 | 55.28 |
SubscribersPRO /wp-admin/admin.php?page=export_billing_phone | 1,114 | 1.83 | 28.24 | 34.12 |
Settings /wp-admin/admin.php?page=nirweb_ticket_settings | 807 | 1.83 | 24.77 | 19.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- nirweb_smart_sms_perfix
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=nirweb_ticket_settings
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'nirweb_ticket_settings_func' not found or invalid function name
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nirweb-smart-sms/option/codestar-framework.php
- 30× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CFSSMARTSMS' not found in wp-content/plugins/nirweb-smart-sms/option/options/wp/birthday.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/nirweb-smart-sms/option/options/wp/contact_7.php:2
- > PHP Fatal error
Uncaught Error: Class 'CFSSMARTSMS' not found in wp-content/plugins/nirweb-smart-sms/option/options/wp/learnpress.php:2
- > PHP Fatal error
Uncaught Error: Class 'CFSSMARTSMS' not found in wp-content/plugins/nirweb-smart-sms/option/options/wp/comments.php:2
- > PHP Warning
Illegal string offset 'in_stock' in wp-content/plugins/nirweb-smart-sms/core/core.php on line 5
- > PHP Warning
Use of undefined constant nirweb_smart_sms_option - assumed 'nirweb_smart_sms_option' (this will throw an Error in a future version of PHP) in wp-content/plugins/nirweb-smart-sms/core/core.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'CFSSMARTSMS' not found in wp-content/plugins/nirweb-smart-sms/option/options/wp/post.php:2
- > PHP Fatal error
Uncaught Error: Class 'CFSSMARTSMS' not found in wp-content/plugins/nirweb-smart-sms/option/options/woocommerce/stock-management.php:2
- > PHP Fatal error
Uncaught Error: Class 'CFSSMARTSMS' not found in wp-content/plugins/nirweb-smart-sms/option/options/wp/wordpress_update.php:2
- > PHP Fatal error
Uncaught Error: Class 'CFSSMARTSMS' not found in wp-content/plugins/nirweb-smart-sms/option/options/woocommerce/failed.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: woocommerce sms, sms
nirweb-smart-sms/nirweb-smart-sms.php 92% from 13 tests
"افزونه پیامک ووکامرس و وردپرس نیر وب" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to 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
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
Everything looks great! No dangerous files found in this plugin32,452 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 22 | 3,648 | 4,496 | 7,447 |
PHP | 64 | 1,071 | 592 | 7,036 |
JavaScript | 12 | 1,271 | 524 | 6,623 |
Sass | 16 | 970 | 3 | 5,672 |
CSS | 12 | 445 | 551 | 5,662 |
SVG | 3 | 1 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 31.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 7.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 38 | 36.54% |
▷ Public methods | 100 | 96.15% |
▷ Protected methods | 2 | 1.92% |
▷ Private methods | 2 | 1.92% |
Functions | 51 | |
▷ Named functions | 26 | 50.98% |
▷ Anonymous functions | 25 | 49.02% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
option/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |