Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.11ms] Passed 4 tests
This is a short check of server-side resources used by Free SMS for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.07 ▲1.60 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.87 ▼8.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.00 ▲2.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.57 ▼8.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.04 ▲5.00 |
Server storage [IO: ▲18.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,508 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
smsfwc_settings |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Free SMS for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.56 ▼1.03 | 1.60 ▼0.12 | 39.45 ▼6.74 |
Dashboard /wp-admin | 2,215 ▲27 | 5.83 ▼0.03 | 104.09 ▼2.13 | 39.07 ▼2.62 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.99 ▼0.07 | 39.35 ▲0.92 | 35.25 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 23.05 ▼0.47 | 684.40 ▼19.47 | 53.41 ▼11.36 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.31 ▲0.11 | 101.25 ▼8.39 | 44.80 ▼0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'libphonenumber\\Leniency\\AbstractLeniency' not found in wp-content/plugins/free-sms-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/Leniency/Possible.php:8
- > PHP Fatal error
Uncaught Error: Interface 'libphonenumber\\MetadataSourceInterface' not found in wp-content/plugins/free-sms-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/MultiFileMetadataSourceImpl.php:12
- > PHP Fatal error
Uncaught Error: Class 'libphonenumber\\Leniency\\AbstractLeniency' not found in wp-content/plugins/free-sms-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/Leniency/Valid.php:9
- > PHP Fatal error
Uncaught Error: Class 'libphonenumber\\Leniency\\AbstractLeniency' not found in wp-content/plugins/free-sms-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/Leniency/ExactGrouping.php:9
- > PHP Fatal error
Uncaught Error: Interface 'libphonenumber\\MetadataLoaderInterface' not found in wp-content/plugins/free-sms-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/DefaultMetadataLoader.php:5
- > PHP Fatal error
Uncaught Error: Class 'libphonenumber\\Leniency\\AbstractLeniency' not found in wp-content/plugins/free-sms-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/Leniency/StrictGrouping.php:9
- > PHP Fatal error
Uncaught Error: Interface 'libphonenumber\\MatcherAPIInterface' not found in wp-content/plugins/free-sms-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/RegexBasedMatcher.php:10
- > PHP Parse error
syntax error, unexpected 'endif' (T_ENDIF) in wp-content/plugins/free-sms-for-woocommerce/page.php on line 193
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/free-sms-for-woocommerce/index.php:60
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: sms, notifications, woocommerce
free-sms-for-woocommerce/index.php 92% from 13 tests
Analyzing the main PHP file in "Free SMS for WooCommerce" version 1.0.0
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("free-sms-for-woocommerce.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin593,007 lines of code in 1,370 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,360 | 3,266 | 16,911 | 590,796 |
JavaScript | 2 | 505 | 186 | 1,630 |
JSON | 5 | 1 | 0 | 375 |
Markdown | 3 | 86 | 0 | 206 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 22.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 366.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 1 | 2.33% |
▷ Concrete classes | 42 | 97.67% |
▷ Final classes | 1 | 2.38% |
Methods | 527 | |
▷ Static methods | 112 | 21.25% |
▷ Public methods | 430 | 81.59% |
▷ Protected methods | 69 | 13.09% |
▷ Private methods | 28 | 5.31% |
Functions | 60 | |
▷ Named functions | 55 | 91.67% |
▷ Anonymous functions | 5 | 8.33% |
Constants | 124 | |
▷ Global constants | 3 | 2.42% |
▷ Class constants | 121 | 97.58% |
▷ Public constants | 121 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo_withBG.png | 12.64KB | 4.90KB | ▼ 61.24% |
img/arrow.png | 4.50KB | 2.92KB | ▼ 34.96% |