Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.42MB] [CPU: ▲20.11ms] Passed 4 tests
A check of server-side resources used by Product Filter by WBW
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.05 ▲2.59 | 62.40 ▲23.33 |
Dashboard /wp-admin | 7.08 ▲3.77 | 68.23 ▲11.53 |
Posts /wp-admin/edit.php | 7.21 ▲3.85 | 75.28 ▲29.62 |
Add New Post /wp-admin/post-new.php | 9.37 ▲3.48 | 109.22 ▲15.94 |
Media Library /wp-admin/upload.php | 7.14 ▲3.92 | 65.07 ▲35.55 |
Overview /wp-admin/admin.php?page=wpf-filters&tab=overview | 7.17 | 63.40 |
Show All Filters /wp-admin/admin.php?page=wpf-filters&tab=woofilters | 7.17 | 59.46 |
Settings /wp-admin/admin.php?page=wpf-filters&tab=settings | 7.17 | 58.94 |
Server storage [IO: ▲7.77MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 375 new files
Database: 8 new tables, 13 new options
New tables |
---|
wp_wpf_usage_stat |
wp_wpf_filters |
wp_wpf_meta_values_bk |
wp_wpf_modules |
wp_wpf_modules_type |
wp_wpf_meta_values |
wp_wpf_meta_keys |
wp_wpf_meta_data |
New WordPress options |
---|
wpf_plugin_activation_errors |
wp_wpf_db_installed |
_overview_wpf |
wpf_opts_data |
wpf_plug_was_used |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_wpfwoofilterswidget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Product Filter by WBW
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,015 ▲228 | 14.32 ▲0.13 | 10.71 ▲8.61 | 37.37 ▼8.38 |
Dashboard /wp-admin | 2,261 ▲81 | 5.77 ▲0.11 | 95.43 ▲6.96 | 42.68 ▲0.71 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 2.25 ▲0.27 | 39.61 ▼2.25 | 38.08 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,589 ▲54 | 23.09 ▼0.15 | 720.54 ▲2.68 | 35.75 ▼26.22 |
Media Library /wp-admin/upload.php | 1,479 ▲79 | 4.51 ▲0.35 | 107.51 ▲4.35 | 48.64 ▲6.58 |
Add New Filter /wp-admin/admin.php?page=wpf-filters&tab=woofilters#wpfadd | 1,907 | 5.59 | 128.70 | 81.50 |
Overview /wp-admin/admin.php?page=wpf-filters&tab=overview | 1,792 | 3.97 | 80.77 | 40.97 |
Show All Filters /wp-admin/admin.php?page=wpf-filters&tab=woofilters | 1,857 | 5.32 | 95.02 | 41.44 |
Settings /wp-admin/admin.php?page=wpf-filters&tab=settings | 2,006 | 4.49 | 74.14 | 40.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 4 tables
- wp_wpf_meta_values
- wp_wpf_meta_values_bk
- wp_wpf_filters
- wp_wpf_meta_keys
- Zombie WordPress options detected upon uninstall: 11 options
- _overview_wpf
- wpf_plug_was_used
- wpf_plugin_activation_errors
- can_compress_scripts
- wpf_opts_data
- theysaidso_admin_options
- db_upgraded
- widget_wpfwoofilterswidget
- widget_recent-comments
- widget_theysaidso_widget
- ...
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-product-filter/modules/woofilters_widget/views/tpl/widget.php
- > /wp-content/plugins/woo-product-filter/modules/promo/views/tpl/overviewTabContent.php
- > /wp-content/plugins/woo-product-filter/modules/promo/views/tpl/adminTour.php
- > /wp-content/plugins/woo-product-filter/modules/promo/views/tpl/layeredStylePromo.php
- > /wp-content/plugins/woo-product-filter/modules/promo/views/tpl/welcomePage.php
- 101× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woo-product-filter/modules/woofilters_widget/views/tpl/form.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-product-filter/modules/woofilters/views/tpl/woofiltersEditAdmin.php:2
- > PHP Fatal error
Uncaught Error: Class 'ModuleWpf' not found in wp-content/plugins/woo-product-filter/modules/overview/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'ModuleWpf' not found in wp-content/plugins/woo-product-filter/modules/user/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'HtmlWpf' not found in wp-content/plugins/woo-product-filter/modules/woofilters/views/tpl/woofiltersHtml.php:2
- > PHP Fatal error
Uncaught Error: Class 'ModuleWpf' not found in wp-content/plugins/woo-product-filter/modules/admin_nav/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'ModuleWpf' not found in wp-content/plugins/woo-product-filter/modules/woofilters/mod.php:3
- > PHP Fatal error
Uncaught Error: Class 'TableWpf' not found in wp-content/plugins/woo-product-filter/classes/tables/tables.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-product-filter/modules/woofilters/views/tpl/woofiltersEditTabCommonTitle.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-product-filter/modules/woofilters/views/tpl/woofiltersEditTabFilters.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #8 (Product filter admin panel. Design tab) image not found
woo-product-filter/woo-product-filter.php 92% from 13 tests
"Product Filter by WBW" version 2.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.4.0" instead of "3.4.1")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected55,276 lines of code in 281 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 2,008 | 2,571 | 22,345 |
JavaScript | 102 | 1,257 | 2,154 | 15,500 |
PO File | 5 | 4,081 | 8,108 | 9,692 |
CSS | 39 | 470 | 223 | 4,999 |
SVG | 5 | 0 | 0 | 2,740 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,041)
- Method cyclomatic complexity should be reduced to less than 100 (currently 139)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 50.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,041.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 139.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 9 | 10.98% |
▷ Concrete classes | 73 | 89.02% |
▷ Final classes | 0 | 0.00% |
Methods | 1,057 | |
▷ Static methods | 246 | 23.27% |
▷ Public methods | 966 | 91.39% |
▷ Protected methods | 61 | 5.77% |
▷ Private methods | 30 | 2.84% |
Functions | 32 | |
▷ Named functions | 19 | 59.38% |
▷ Anonymous functions | 13 | 40.62% |
Constants | 73 | |
▷ Global constants | 59 | 80.82% |
▷ Class constants | 14 | 19.18% |
▷ Public constants | 14 | 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
73 PNG files occupy 0.87MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/woofilters/img/ad/attributes_slider.png | 79.55KB | 27.28KB | ▼ 65.70% |
css/images/ui-icons_f29a00_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
modules/woofilters/img/assets/bullets/circle_big_new.png | 0.90KB | 1.01KB | 0.00% |
img/pointer-up.png | 1.15KB | 0.36KB | ▼ 68.53% |
modules/woofilters/img/assets/close_btns/close-red.png | 1.25KB | 0.38KB | ▼ 69.92% |