Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.40ms] Passed 4 tests
Analyzing server-side resources used by EazyFilter - The Easiest Produt Filter Plugin for WooCommerce (WooCommerce Ajax Product Filter)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.01 ▼3.59 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.98 ▲2.45 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.79 ▲0.09 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.22 ▼0.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.54 ▲2.51 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 102 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
eazyfilter_do_activation_redirect |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
eazyfilter_activation_info |
theysaidso_admin_options |
eazyfilter_do_setup_redirect |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for EazyFilter - The Easiest Produt Filter Plugin for WooCommerce (WooCommerce Ajax Product Filter)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.31 ▼0.98 | 1.76 ▼0.04 | 38.31 ▼12.96 |
Dashboard /wp-admin | 2,228 ▲43 | 5.91 ▲0.06 | 102.83 ▲1.77 | 40.14 ▼1.80 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.01 ▼0.00 | 37.67 ▼5.25 | 33.17 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.10 ▼0.02 | 590.57 ▼40.22 | 49.87 ▼15.73 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.22 ▲0.02 | 98.85 ▼8.23 | 44.40 ▼1.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- eazyfilter_do_setup_redirect
- widget_recent-posts
- widget_recent-comments
- eazyfilter_activation_info
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- eazyfilter_do_activation_redirect
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/text-choose.php
- > /wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/checkbox.php
- > /wp-content/plugins/eazyfilter-for-woocommerce/libs/index.php
- > /wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/button-choose.php
- > /wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/color-swatches.php
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazyfilter-for-woocommerce/libs/global-functions.php:84
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/text-choose.php on line 28
- > PHP Notice
Trying to get property 'settings' of non-object in wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/checkbox.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/color-swatches.php on line 7
- > PHP Notice
Trying to get property 'settings' of non-object in wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/text-choose.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'EazyFilter\\Libs\\Filter_Manager' not found in wp-content/plugins/eazyfilter-for-woocommerce/templates/setup/setup-welcome.php:2
- > PHP Notice
Trying to get property 'settings' of non-object in wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/color-swatches.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'EazyFilter\\App\\Filters\\Action' not found in wp-content/plugins/eazyfilter-for-woocommerce/templates/modal/modal-filter-group.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/select.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/eazyfilter-for-woocommerce/templates/filters/text-choose.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: product filter, woocommerce filters, ajax filter, woocommerce filter, elementor
eazyfilter-for-woocommerce/eazyfilter-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "EazyFilter - The Easiest Produt Filter Plugin for WooCommerce (WooCommerce Ajax Product Filter)" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin7,946 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 1,354 | 353 | 7,484 |
CSS | 18 | 4 | 10 | 249 |
SVG | 2 | 0 | 0 | 132 |
JavaScript | 10 | 1 | 2 | 81 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 35 | |
▷ Abstract classes | 2 | 5.71% |
▷ Concrete classes | 33 | 94.29% |
▷ Final classes | 1 | 3.03% |
Methods | 190 | |
▷ Static methods | 7 | 3.68% |
▷ Public methods | 154 | 81.05% |
▷ Protected methods | 34 | 17.89% |
▷ Private methods | 2 | 1.05% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-20x20.png | 0.40KB | 0.35KB | ▼ 10.84% |
assets/img/logo.png | 4.01KB | 1.87KB | ▼ 53.45% |