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: ▲5.21MB] [CPU: ▲28.91ms] 75% from 4 tests
Server-side resources used by Ultimate SMS Notifications for WooCommerce
Please have a look at the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.21MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.43 | 68.89 ▲26.57 |
Dashboard /wp-admin | 8.91 ▲5.61 | 85.04 ▲35.66 |
Posts /wp-admin/edit.php | 8.91 ▲5.56 | 85.03 ▲35.30 |
Add New Post /wp-admin/post-new.php | 10.13 ▲4.25 | 119.68 ▲18.09 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 77.24 ▲40.61 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.91 | 64.13 |
Server storage [IO: ▲5.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 251 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
fs_accounts |
widget_recent-posts |
fs_active_plugins |
fs_debug_mode |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Ultimate SMS Notifications for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲221 | 14.44 ▲0.04 | 1.88 ▲0.18 | 29.18 ▼14.26 |
Dashboard /wp-admin | 2,347 ▲167 | 5.87 ▲0.29 | 98.17 ▲6.38 | 83.35 ▲47.12 |
Posts /wp-admin/edit.php | 2,268 ▲168 | 2.44 ▲0.48 | 37.06 ▼3.76 | 36.91 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,690 ▲164 | 20.38 ▼2.67 | 682.41 ▲2.45 | 41.09 ▼13.63 |
Media Library /wp-admin/upload.php | 1,558 ▲167 | 4.59 ▲0.37 | 105.37 ▲3.03 | 83.68 ▲38.94 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,093 | 2.02 | 29.04 | 30.10 |
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
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-admin/includes/plugin.php+1941
Undefined offset: 2
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- fs_active_plugins
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- fs_debug_mode
- fs_accounts
- can_compress_scripts
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ultimate-sms-notifications/public/class-woo-usn-public.php:223
- > PHP Warning
require_once(WOO_USN_PATH../vendor/freemius/start.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-sms-notifications/abstract/premium_loading.php on line 17
- > PHP Fatal error
require(): Failed opening required 'WOO_USN_PATHpremium_loading.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-sms-notifications/require.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-sms-notifications/core/class-woo-usn-rest-api.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ultimate-sms-notifications/abstract/constants.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ultimate-sms-notifications/core/class-woo-usn-whatsapp.php:442
- > PHP Warning
Use of undefined constant WOO_USN_PATH - assumed 'WOO_USN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-sms-notifications/require.php on line 3
- > PHP Warning
require(WOO_USN_PATHpremium_loading.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-sms-notifications/require.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'WOO_USN_PATH../vendor/freemius/start.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-sms-notifications/abstract/premium_loading.php on line 17
- > PHP Warning
Use of undefined constant WOO_USN_PATH - assumed 'WOO_USN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-sms-notifications/abstract/premium_loading.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #2, #3, #4, #5, #6, #7, #8, #9 in ultimate-sms-notifications/assets to your readme.txt
ultimate-sms-notifications/woo-usn.php 92% from 13 tests
The principal PHP file in "Ultimate SMS Notifications for WooCommerce" v. 1.10 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-sms-notifications.php" instead of "woo-usn.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin65,576 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 149 | 8,660 | 18,355 | 38,825 |
JavaScript | 19 | 1,478 | 1,154 | 13,724 |
CSS | 23 | 2,586 | 52 | 12,713 |
JSON | 1 | 0 | 0 | 177 |
Markdown | 1 | 20 | 0 | 81 |
SVG | 1 | 0 | 1 | 56 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 70.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 2 | 2.90% |
▷ Concrete classes | 67 | 97.10% |
▷ Final classes | 0 | 0.00% |
Methods | 1,438 | |
▷ Static methods | 289 | 20.10% |
▷ Public methods | 1,029 | 71.56% |
▷ Protected methods | 17 | 1.18% |
▷ Private methods | 392 | 27.26% |
Functions | 112 | |
▷ Named functions | 108 | 96.43% |
▷ Anonymous functions | 4 | 3.57% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.49MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
admin/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
public/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
public/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |