Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.19ms] Passed 4 tests
Analyzing server-side resources used by Pofily - WooCommerce Product Filters
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 49.25 ▲5.24 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.10 ▲2.78 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.80 ▼1.84 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 92.70 ▼3.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.21 ▲1.69 |
Server storage [IO: ▲2.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 105 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
viwcpf_setting_params |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Pofily - WooCommerce Product Filters
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.47 ▼0.15 | 2.12 ▲0.16 | 42.89 ▼3.55 |
Dashboard /wp-admin | 2,215 ▲30 | 5.88 ▲0.06 | 102.38 ▼13.64 | 41.02 ▼1.54 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.05 ▲0.05 | 39.95 ▼1.48 | 36.05 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.13 ▲0.13 | 636.68 ▼37.00 | 63.26 ▲10.25 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.17 ▼0.00 | 99.76 ▼11.38 | 42.05 ▼3.81 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- can_compress_scripts
- viwcpf_setting_params
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pofily-woo-product-filters/public/partials/template/viwcpf-template-image.php:22
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pofily-woo-product-filters/public/partials/template/viwcpf-template-dropdown.php:21
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pofily-woo-product-filters/public/partials/template/viwcpf-template-range_slider.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pofily-woo-product-filters/public/partials/template/viwcpf-template-color_swatches.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pofily-woo-product-filters/admin/partials/widget/viwcpf.widget_menu_filter.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pofily-woo-product-filters/public/partials/template/viwcpf-template-button.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pofily-woo-product-filters/admin/partials/display-detail-filter-menu-page.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pofily-woo-product-filters/public/partials/template/viwcpf-template-checkbox.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pofily-woo-product-filters/admin/partials/display-detail-filter-block-page.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pofily-woo-product-filters/public/partials/template/viwcpf-template-icon_star.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 14 tag instead of maximum 10
pofily-woo-product-filters/pofily-woo-product-filters.php 92% from 13 tests
The main PHP file in "Pofily - WooCommerce Product Filters" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin21,623 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 1,601 | 542 | 8,510 |
PHP | 23 | 783 | 1,117 | 6,977 |
CSS | 30 | 459 | 157 | 3,103 |
SVG | 5 | 0 | 4 | 1,938 |
Sass | 1 | 109 | 2 | 616 |
PO File | 1 | 225 | 303 | 479 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 62.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 379.00 |
Average method complexity | 6.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 88.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 2 | 1.68% |
▷ Public methods | 99 | 83.19% |
▷ Protected methods | 13 | 10.92% |
▷ Private methods | 7 | 5.88% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/bottom-left.png | 0.82KB | 0.45KB | ▼ 44.79% |
admin/images/filter-offcanvas.png | 0.89KB | 0.44KB | ▼ 50.16% |
admin/images/top-left.png | 0.82KB | 0.46KB | ▼ 43.97% |
admin/images/photos-placeholder.png | 6.47KB | 5.17KB | ▼ 20.05% |
admin/images/top-right.png | 0.82KB | 0.46KB | ▼ 44.32% |