Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.30ms] Passed 4 tests
Analyzing server-side resources used by PWF - Products Filter for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.81 ▼2.33 |
Dashboard /wp-admin | 3.47 ▲0.17 | 44.57 ▼14.22 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 45.50 ▲2.47 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 95.10 ▲13.01 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.64 ▲4.87 |
Add new /wp-admin/post-new.php?post_type=pwf_woofilter | 4.01 | 44.10 |
Filters /wp-admin/edit.php?post_type=pwf_woofilter | 3.37 | 36.32 |
Settings /wp-admin/edit.php?post_type=pwf_woofilter&page=pwf-settings | 3.30 | 26.67 |
Anyalytics /wp-admin/edit.php?post_type=pwf_woofilter&page=pwf-anyalytics | 3.51 | 80.78 |
Server storage [IO: ▲2.42MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 162 new files
Database: 5 new tables, 9 new options
New tables |
---|
wp_wc_pwf_terms |
wp_wc_pwf_filters_terms |
wp_wc_pwf_range_sliders |
wp_wc_pwf_filters |
wp_wc_pwf_searches |
New WordPress options |
---|
theysaidso_admin_options |
pwf_woocommerce_free_version |
pwf_woocommerce_free_version_update_message |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_pwf-woo-filter |
Browser metrics Passed 4 tests
Checking browser requirements for PWF - Products Filter for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲110 | 13.41 ▼0.97 | 1.76 ▼0.12 | 46.92 ▼0.09 |
Dashboard /wp-admin | 2,241 ▲56 | 5.84 ▲0.02 | 100.75 ▼4.98 | 40.20 ▼3.71 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.06 ▲0.05 | 37.15 ▲0.98 | 33.62 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,562 ▲29 | 23.09 ▼0.01 | 618.41 ▼61.90 | 54.75 ▼1.05 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.23 ▲0.05 | 97.82 ▼3.00 | 41.98 ▼5.67 |
Add new /wp-admin/post-new.php?post_type=pwf_woofilter | 2,134 | 5.08 | 114.66 | 53.01 |
Filters /wp-admin/edit.php?post_type=pwf_woofilter | 1,112 | 1.93 | 30.25 | 30.35 |
Settings /wp-admin/edit.php?post_type=pwf_woofilter&page=pwf-settings | 936 | 2.06 | 22.62 | 25.38 |
Anyalytics /wp-admin/edit.php?post_type=pwf_woofilter&page=pwf-anyalytics | 868 | 2.79 | 44.69 | 37.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% 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 tables were found after uninstall: 5 tables
- wp_wc_pwf_filters_terms
- wp_wc_pwf_filters
- wp_wc_pwf_terms
- wp_wc_pwf_searches
- wp_wc_pwf_range_sliders
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_pwf-woo-filter
- pwf_woocommerce_free_version_update_message
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- pwf_woocommerce_free_version
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pwf_woofilter
- > Notice in wp-content/plugins/pwf-wc-product-filters/includes/classes/admin/meta/class-pwf-meta-data.php+161
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pwf_woofilter
- > Notice in wp-content/plugins/pwf-wc-product-filters/includes/classes/admin/meta/class-pwf-meta-data.php+162
Trying to get property 'name' of non-object
SRP 50% 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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pwf-wc-product-filters/includes/classes/class-pwf-autoloader.php:21
- > PHP Fatal error
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 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #5, #7 in pwf-wc-product-filters/assets to your readme.txt
pwf-wc-product-filters/pwfwoofilter.php 69% from 13 tests
The main PHP file in "PWF - Products Filter for WooCommerce" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pwf-wc-product-filters.php" instead of "pwfwoofilter.php")
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
- 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
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.6.0")
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
Success! There were no dangerous files found in this plugin30,739 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 77 | 3,693 | 1,467 | 16,998 |
PHP | 28 | 1,232 | 909 | 6,684 |
CSS | 22 | 338 | 208 | 5,135 |
PO File | 2 | 854 | 2,302 | 1,907 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 36.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 330 | |
▷ Static methods | 56 | 16.97% |
▷ Public methods | 187 | 56.67% |
▷ Protected methods | 94 | 28.48% |
▷ Private methods | 49 | 14.85% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/frontend/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/css/frontend/jquery-ui/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
assets/css/frontend/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
assets/css/frontend/jquery-ui/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
assets/css/frontend/jquery-ui/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |