Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'add_main_menu_page' not found or invalid function name
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.76ms] Passed 4 tests
This is a short check of server-side resources used by Smart Features for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 26.17 ▼16.98 |
Dashboard /wp-admin | 3.34 ▼0.01 | 43.93 ▼18.70 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.42 ▲2.26 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.73 ▼7.77 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.26 ▲0.43 |
Trustable Images /wp-admin/admin.php?page=smart-trust-image | 3.20 | 32.55 |
Custom Css /wp-admin/admin.php?page=custom-css | 3.20 | 26.80 |
Tracking Code Fields /wp-admin/admin.php?page=smart-tracking | 3.20 | 26.92 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Smart Features for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲226 | 19.45 ▲4.82 | 15.21 ▲13.48 | 36.01 ▼7.92 |
Dashboard /wp-admin | 2,243 ▲63 | 6.59 ▲0.93 | 124.74 ▲35.40 | 90.87 ▲52.31 |
Posts /wp-admin/edit.php | 2,128 ▲31 | 3.95 ▲1.93 | 47.90 ▲11.66 | 32.37 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 24.39 ▲1.22 | 670.55 ▲21.36 | 40.87 ▼12.19 |
Media Library /wp-admin/upload.php | 1,445 ▲42 | 5.65 ▲1.30 | 102.29 ▲2.74 | 87.73 ▲43.76 |
Trustable Images /wp-admin/admin.php?page=smart-trust-image | 880 | 3.73 | 37.68 | 29.12 |
Custom Css /wp-admin/admin.php?page=custom-css | 998 | 3.80 | 50.18 | 38.00 |
Tracking Code Fields /wp-admin/admin.php?page=smart-tracking | 1,117 | 3.91 | 53.17 | 41.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'add_main_menu_page' not found or invalid function name
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=smart-tracking
- > Notice in wp-content/plugins/all-in-one-smart-features-woocommerce/includes/smart-tracking.php+106
Trying to access array offset on value of type bool
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
all-in-one-smart-features-woocommerce/smart-woo.php 77% from 13 tests
"Smart Features for WooCommerce" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/translations/")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("all-in-one-smart-features-woocommerce.php" instead of "smart-woo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected349 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 147 | 32 | 234 |
JavaScript | 1 | 5 | 0 | 65 |
CSS | 2 | 6 | 1 | 50 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
uploads/trustimage3.png | 114.05KB | 32.80KB | ▼ 71.24% |
uploads/trustimage2.png | 26.24KB | 23.45KB | ▼ 10.62% |
uploads/trustimage1.png | 14.21KB | 14.09KB | ▼ 0.85% |
uploads/plugin-icon.png | 0.80KB | 0.92KB | 0.00% |