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.52MB] [CPU: ▲2.25ms] Passed 4 tests
A check of server-side resources used by SMS for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 51.83 ▲9.58 |
Dashboard /wp-admin | 3.89 ▲0.58 | 55.50 ▲2.21 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 51.78 ▲2.08 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 88.21 ▼4.89 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 44.91 ▲11.90 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.02 | 41.14 |
Server storage [IO: ▲6.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 223 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
fs_accounts |
can_compress_scripts |
widget_theysaidso_widget |
fs_active_plugins |
theysaidso_admin_options |
widget_recent-posts |
fs_debug_mode |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SMS for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.70 ▲0.11 | 1.61 ▼0.27 | 32.75 ▼11.62 |
Dashboard /wp-admin | 2,233 ▲53 | 5.58 ▼0.04 | 93.21 ▲2.54 | 46.12 ▲5.18 |
Posts /wp-admin/edit.php | 2,148 ▲45 | 2.10 ▲0.10 | 35.40 ▼0.80 | 36.71 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.13 ▲0.09 | 645.53 ▲5.69 | 51.81 ▼10.56 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.24 ▲0.05 | 109.67 ▲0.52 | 49.66 ▲0.52 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,098 | 1.69 | 27.01 | 29.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wc-sms/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- fs_accounts
- fs_active_plugins
- widget_theysaidso_widget
- db_upgraded
- fs_debug_mode
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wc-sms/languages/index.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: woocommerce, order notifications, sms, sms order updates, customer sms...
wc-sms/wc-sms.php Passed 13 tests
The main file in "SMS for WooCommerce" v. 2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Order SMS Notifications for Woocommerce
Code Analysis 95% from 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 detected36,139 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,351 | 17,750 | 35,835 |
JavaScript | 5 | 53 | 67 | 290 |
CSS | 14 | 0 | 0 | 14 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 86.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,336 | |
▷ Static methods | 197 | 14.75% |
▷ Public methods | 938 | 70.21% |
▷ Protected methods | 26 | 1.95% |
▷ Private methods | 372 | 27.84% |
Functions | 106 | |
▷ Named functions | 104 | 98.11% |
▷ Anonymous functions | 2 | 1.89% |
Constants | 153 | |
▷ Global constants | 106 | 69.28% |
▷ Class constants | 47 | 30.72% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.58MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/wc_sms_250.png | 15.56KB | 6.57KB | ▼ 57.77% |
assets/images/wcsms-settings.png | 296.10KB | 103.72KB | ▼ 64.97% |
assets/images/icon-256x256.png | 15.85KB | 6.55KB | ▼ 58.70% |
assets/images/sms-texts.png | 95.94KB | 33.57KB | ▼ 65.01% |