Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▼298.11ms] Passed 4 tests
An overview of server-side resources used by Advanced Product Search For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.50 | 56.06 ▲5.11 |
Dashboard /wp-admin | 3.97 ▲0.57 | 44.79 ▲11.75 |
Posts /wp-admin/edit.php | 4.26 ▲0.62 | 45.41 ▲7.71 |
Add New Post /wp-admin/post-new.php | 7.48 ▲0.51 | 94.35 ▼1,210.54 |
Media Library /wp-admin/upload.php | 3.90 ▲0.60 | 28.66 ▲5.27 |
Advanced Product Search /wp-admin/admin.php?page=advanced-product-search-for-woo | 3.90 | 30.48 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 4 new options
New WordPress options |
---|
apsw_search_results |
apsw_color_scheme |
widget_aspw-widgets-wrap |
apsw_search_form |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Product Search For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,148 ▲394 | 17.98 ▲2.26 | 9.26 ▲3.61 | 2.01 ▼0.89 |
Dashboard /wp-admin | 3,136 ▲275 | 8.35 ▲2.16 | 142.40 ▲11.20 | 156.43 ▼4.53 |
Posts /wp-admin/edit.php | 2,971 ▲283 | 4.98 ▲1.75 | 79.61 ▲14.59 | 138.66 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,703 ▲35 | 16.09 ▼1.89 | 393.93 ▲9.71 | 160.33 ▲9.01 |
Media Library /wp-admin/upload.php | 1,750 ▲55 | 5.89 ▲0.40 | 107.53 ▼37.26 | 181.84 ▲0.41 |
Advanced Product Search /wp-admin/admin.php?page=advanced-product-search-for-woo | 4,908 | 6.29 | 150.55 | 130.93 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 4 options
- apsw_color_scheme
- apsw_search_form
- apsw_search_results
- widget_aspw-widgets-wrap
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-product-search-for-woo/lib/predic-widget/class/class-predic-widget-factory.php:6
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-search-for-woo/lib/predic-widget/class/fields/class-predic-widget-select-field.php:6
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-search-for-woo/lib/predic-widget/class/fields/class-predic-widget-fa-iconpicker-field.php:6
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-search-for-woo/lib/predic-widget/class/fields/class-predic-widget-input-field.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/advanced-product-search-for-woo/includes/classes/widgets.php:93
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-search-for-woo/lib/predic-widget/class/fields/class-predic-widget-color-field.php:6
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-search-for-woo/lib/predic-widget/class/fields/class-predic-widget-textarea-field.php:6
- > PHP Fatal error
Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-search-for-woo/lib/predic-widget/class/fields/class-predic-widget-image-uploader-field.php:6
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 47 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (preview screen 0), #2 (Plugins Options 1), #3 (Plugins Options 2), #4 (Plugins Options 3)
advanced-product-search-for-woo/advanced-product-search-for-woo.php 85% from 13 tests
The main PHP file in "Advanced Product Search For WooCommerce" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "3.0.0")
- 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 not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,483 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 732 | 1,203 | 2,929 |
SVG | 2 | 0 | 0 | 2,720 |
CSS | 4 | 35 | 15 | 531 |
JavaScript | 9 | 117 | 56 | 241 |
Sass | 3 | 12 | 0 | 62 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 17.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 6 | 5.71% |
▷ Public methods | 95 | 90.48% |
▷ Protected methods | 2 | 1.90% |
▷ Private methods | 8 | 7.62% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.25MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/search_form_style_4.png | 7.86KB | 3.36KB | ▼ 57.25% |
assets/images/search_form_style_3.png | 2.75KB | 1.29KB | ▼ 53.31% |
assets/images/search_form_style_6.png | 5.54KB | 2.59KB | ▼ 53.29% |
screenshot-1.png | 61.64KB | 28.13KB | ▼ 54.37% |
assets/images/search_form_style_1.png | 3.49KB | 1.81KB | ▼ 48.24% |