Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.55MB] [CPU: ▲6.15ms] Passed 4 tests
Analyzing server-side resources used by Advanced Product Search For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 47.82 ▲6.03 |
Dashboard /wp-admin | 3.92 ▲0.62 | 62.25 ▲12.69 |
Posts /wp-admin/edit.php | 3.98 ▲0.61 | 59.71 ▲11.06 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 94.19 ▲1.66 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 41.96 ▲5.86 |
Advanced Product Search /wp-admin/admin.php?page=advanced-product-search-for-woo | 3.77 | 44.37 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_aspw-widgets-wrap |
widget_recent-comments |
apsw_color_scheme |
widget_recent-posts |
apsw_search_form |
widget_theysaidso_widget |
apsw_search_results |
Browser metrics Passed 4 tests
Advanced Product Search For WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,081 ▲320 | 14.96 ▲0.61 | 7.27 ▲5.21 | 42.70 ▼4.89 |
Dashboard /wp-admin | 2,373 ▲196 | 6.38 ▲0.70 | 115.94 ▲11.51 | 39.24 ▼6.67 |
Posts /wp-admin/edit.php | 2,299 ▲199 | 3.59 ▲1.62 | 53.75 ▲14.76 | 35.36 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.66 ▲0.70 | 645.97 ▼32.49 | 35.31 ▼18.25 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.27 ▲0.06 | 86.76 ▼13.51 | 43.00 ▼1.66 |
Advanced Product Search /wp-admin/admin.php?page=advanced-product-search-for-woo | 3,254 | 4.82 | 132.33 | 63.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-comments
- apsw_search_form
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- apsw_search_results
- apsw_color_scheme
- can_compress_scripts
- widget_recent-posts
- widget_aspw-widgets-wrap
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > 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 '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-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
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-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-select-field.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 47 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #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 92% from 13 tests
This is the main PHP file of "Advanced Product Search For WooCommerce" version 1.1.6, 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:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! 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,202 | 2,929 |
SVG | 2 | 0 | 0 | 2,720 |
CSS | 4 | 34 | 15 | 531 |
JavaScript | 9 | 117 | 56 | 241 |
Sass | 3 | 12 | 0 | 62 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.25MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/search_form_style_5.png | 6.60KB | 3.03KB | ▼ 54.08% |
assets/images/search_form_style_1.png | 3.49KB | 1.81KB | ▼ 48.24% |
screenshot-1.png | 61.64KB | 28.13KB | ▼ 54.37% |
screenshot-0.png | 45.43KB | 20.26KB | ▼ 55.40% |
assets/images/search_form_style_3.png | 2.75KB | 1.29KB | ▼ 53.31% |