Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.82MB] [CPU: ▲1.46ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Search, Filters & Merchandising
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.34 ▲0.88 | 46.48 ▲8.01 |
Dashboard /wp-admin | 4.15 ▲0.85 | 49.64 ▲2.80 |
Posts /wp-admin/edit.php | 4.20 ▲0.85 | 54.82 ▲8.40 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.79 | 83.28 ▼13.37 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 42.26 ▲11.16 |
Server storage [IO: ▲3.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_isp_search_box_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Search, Filters & Merchandising
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.56 ▲0.21 | 18.78 ▲17.31 | 37.18 ▼4.51 |
Dashboard /wp-admin | 2,227 ▲52 | 5.69 ▼0.04 | 92.09 ▼8.99 | 69.91 ▲30.40 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.07 ▼0.07 | 39.27 ▼3.78 | 35.14 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,710 ▲182 | 22.17 ▼0.89 | 723.79 ▲82.87 | 50.01 ▼2.21 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.14 ▼0.08 | 113.20 ▲18.84 | 82.64 ▲41.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/instantsearch-for-woocommerce/public/wcis_plugin.php+618
Non-static method WCISPlugin::get_isp_server_url() should not be called statically
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_isp_search_box_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/instantsearch-for-woocommerce/public/serving.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: product search, merchandising, woocommerce search, search filters, ecommerce search
instantsearch-for-woocommerce/instantsearch-for-woocommerce.php 92% from 13 tests
The entry point to "WooCommerce Search, Filters & Merchandising" version 3.0.26 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.3" instead of "2.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin31,460 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 26,462 |
PHP | 12 | 797 | 612 | 4,796 |
CSS | 5 | 16 | 0 | 79 |
PO File | 2 | 14 | 18 | 68 |
JavaScript | 3 | 10 | 0 | 47 |
Bourne Shell | 1 | 1 | 6 | 7 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 183)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 81.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 891.00 |
Average method complexity | 7.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 183.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 4 | 30.77% |
▷ Concrete classes | 9 | 69.23% |
▷ Final classes | 0 | 0.00% |
Methods | 168 | |
▷ Static methods | 31 | 18.45% |
▷ Public methods | 127 | 75.60% |
▷ Protected methods | 3 | 1.79% |
▷ Private methods | 38 | 22.62% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 22 | 100.00% |
▷ Public constants | 22 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.85MB with 1.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/instantsearchplus_logo_16x16.png | 0.56KB | 0.49KB | ▼ 13.39% |
assets/screenshot-5.png | 58.18KB | 21.36KB | ▼ 63.29% |
assets/screenshot-3.png | 553.86KB | 125.95KB | ▼ 77.26% |
(invalid) assets/screenshot-4.png | 136.27KB | 0.00KB | ▼ 100.00% |
assets/screenshot-2.png | 524.09KB | 144.13KB | ▼ 72.50% |