Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.88ms] Passed 4 tests
This is a short check of server-side resources used by Ultimate WooCommerce Filters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.60 ▼4.31 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.48 ▼12.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.96 ▼5.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.24 ▼13.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.47 ▼0.08 |
Server storage [IO: ▲2.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 209 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ultimate WooCommerce Filters
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.21 ▲0.08 | 1.59 ▲0.07 | 42.14 ▲3.40 |
Dashboard /wp-admin | 2,195 ▲15 | 5.66 ▲0.00 | 98.02 ▲6.18 | 43.95 ▲1.03 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.02 ▲0.05 | 38.76 ▼3.42 | 34.86 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,679 ▲143 | 22.03 ▼1.24 | 595.92 ▼82.45 | 48.45 ▼21.73 |
Media Library /wp-admin/upload.php | 1,391 ▼3 | 4.22 ▼0.01 | 99.96 ▼1.42 | 41.46 ▼3.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/color-filters/ewd-uwcf-templates/table-mode-footer.php
- 58× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/color-filters/ewd-uwcf-templates/filtering-dropdown.php:1
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/color-filters/lib/simple-admin-pages/classes/AdminPageSetting.SelectTaxonomy.class.php:22
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/color-filters/lib/simple-admin-pages/classes/AdminPageSetting.Radio.class.php:22
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/color-filters/ewd-uwcf-templates/filtering-swatch.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/color-filters/ewd-uwcf-templates/filtering-shortcode-args.php:1
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/color-filters/lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/color-filters/ewd-uwcf-templates/table-mode-product-sizes.php:4
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/color-filters/lib/simple-admin-pages/classes/AdminPageSetting.Editor.class.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/color-filters/ewd-uwcf-templates/filtering-ratings.php:2
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/color-filters/lib/simple-admin-pages/classes/AdminPageSetting.ColorPicker.class.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
color-filters/color-filters.php 92% from 13 tests
"Ultimate WooCommerce Filters" version 3.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "7.1")
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
Good job! No executable or dangerous file extensions detected13,961 lines of code in 174 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 81 | 2,179 | 2,023 | 6,623 |
CSS | 21 | 291 | 190 | 3,546 |
JavaScript | 69 | 799 | 408 | 3,456 |
Markdown | 3 | 126 | 0 | 336 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 1 | 1.82% |
▷ Concrete classes | 54 | 98.18% |
▷ Final classes | 0 | 0.00% |
Methods | 303 | |
▷ Static methods | 4 | 1.32% |
▷ Public methods | 284 | 93.73% |
▷ Protected methods | 4 | 1.32% |
▷ Private methods | 15 | 4.95% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
31 PNG files occupy 1.66MB with 0.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/options-asset-info.png | 0.84KB | 0.42KB | ▼ 49.53% |
assets/img/options-asset-lock.png | 1.05KB | 0.50KB | ▼ 52.28% |
assets/img/ewd-uwcf-dashboard-banner.png | 233.72KB | 101.85KB | ▼ 56.42% |
assets/img/dash-asset-badge-old.png | 152.45KB | 44.32KB | ▼ 70.93% |
lib/simple-admin-pages/img/options-asset-lock.png | 1.05KB | 0.50KB | ▼ 52.28% |