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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.71ms] Passed 4 tests
Server-side resources used by annasta Woocommerce Product Filters
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.30 ▼2.04 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.33 ▼17.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.76 ▲1.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.67 ▼12.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.47 ▼3.30 |
Server storage [IO: ▲6.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 305 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
fs_debug_mode |
widget_recent-comments |
can_compress_scripts |
fs_active_plugins |
fs_accounts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
annasta Woocommerce Product Filters: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.72 ▲0.44 | 1.84 ▲0.18 | 45.37 ▲2.47 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.04 | 91.07 ▼9.34 | 38.62 ▼4.19 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.04 | 33.54 ▼5.46 | 35.60 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.48 ▼1.56 | 587.29 ▼5.58 | 58.43 ▼7.17 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.22 ▲0.04 | 98.05 ▲2.67 | 43.31 ▼1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- theysaidso_admin_options
- fs_accounts
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- fs_debug_mode
- widget_theysaidso_widget
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/class-a-w-f-frontend.php
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/class-a-w-f-admin.php
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/themes-support/ecommerce-gem.php
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/themes-support/flatsome.php
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/class-a-w-f-settings.php
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/themes-support/astra.php
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/class-a-w-f-widget.php
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/compatibility-support.php
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/class-a-w-f-preset-frontend.php
- > /wp-content/plugins/annasta-woocommerce-product-filters/code/class-a-w-f-preset.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/annasta-woocommerce-product-filters/code/customizer-controls/class-a-w-f-customizer-alpha-color-picker.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: woocommerce filter, ajax filter, product filter, woocommerce products filter, woocommerce product filter
annasta-woocommerce-product-filters/annasta-woocommerce-product-filters.php 85% from 13 tests
"annasta Woocommerce Product Filters" version 1.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.3")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin77,827 lines of code in 225 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 11,068 | 17,693 | 45,177 |
JavaScript | 22 | 2,422 | 1,155 | 13,138 |
CSS | 30 | 3,060 | 236 | 11,203 |
SVG | 2 | 0 | 0 | 5,835 |
PO File | 1 | 815 | 946 | 2,423 |
XML | 1 | 0 | 0 | 27 |
JSON | 1 | 0 | 0 | 24 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 98.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 2 | 3.03% |
▷ Concrete classes | 64 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 1,622 | |
▷ Static methods | 234 | 14.43% |
▷ Public methods | 1,122 | 69.17% |
▷ Protected methods | 94 | 5.80% |
▷ Private methods | 406 | 25.03% |
Functions | 134 | |
▷ Named functions | 101 | 75.37% |
▷ Anonymous functions | 33 | 24.63% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/images/display-mode-visible-on-s.png | 4.73KB | 3.11KB | ▼ 34.39% |
styles/images/transparency-grid.png | 2.58KB | 2.80KB | 0.00% |
styles/images/display-mode-togglable-on-s-L.png | 1.85KB | 1.48KB | ▼ 20.01% |
styles/images/display-mode-togglable-on-s.png | 7.59KB | 4.54KB | ▼ 40.16% |
styles/images/display-mode-visible.png | 7.11KB | 4.27KB | ▼ 40.00% |