Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲5.00MB] [CPU: ▲22.06ms] Passed 4 tests
This is a short check of server-side resources used by FiboSearch - Ajax Search for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.90 ▲5.43 | 77.56 ▲40.40 |
Dashboard /wp-admin | 8.92 ▲5.61 | 67.70 ▲18.40 |
Posts /wp-admin/edit.php | 8.92 ▲5.56 | 73.65 ▲27.67 |
Add New Post /wp-admin/post-new.php | 9.28 ▲3.39 | 104.55 ▲8.64 |
Media Library /wp-admin/upload.php | 8.92 ▲5.69 | 67.53 ▲33.52 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.92 | 56.16 |
Server storage [IO: ▲4.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 376 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
fs_active_plugins |
widget_theysaidso_widget |
widget_recent-comments |
fs_accounts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
fs_debug_mode |
Browser metrics Passed 4 tests
A check of browser resources used by FiboSearch - Ajax Search for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.36 ▲0.00 | 1.83 ▲0.24 | 32.89 ▼5.86 |
Dashboard /wp-admin | 2,225 ▲51 | 5.54 ▲0.00 | 83.98 ▼0.38 | 39.24 ▼4.21 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.12 ▲0.11 | 35.37 ▼0.27 | 32.57 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 22.82 ▼0.37 | 662.43 ▼0.17 | 54.26 ▼2.51 |
Media Library /wp-admin/upload.php | 1,430 ▲36 | 4.20 ▲0.03 | 94.42 ▼2.81 | 48.56 ▲3.27 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,069 | 1.66 | 23.76 | 25.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > Notice in wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- fs_accounts
- fs_active_plugins
- fs_debug_mode
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: product search, woocommerce search, ajax search, search by sku, woocommerce
ajax-search-for-woocommerce/ajax-search-for-woocommerce.php 85% from 13 tests
The principal PHP file in "FiboSearch - Ajax Search for WooCommerce" v. 1.26.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.5")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin59,084 lines of code in 317 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 266 | 10,658 | 21,217 | 48,887 |
JavaScript | 18 | 1,161 | 359 | 6,095 |
CSS | 21 | 737 | 34 | 3,782 |
JSON | 6 | 0 | 0 | 214 |
Sass | 2 | 3 | 0 | 48 |
XML | 3 | 3 | 0 | 47 |
SVG | 1 | 0 | 0 | 11 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 53.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 116 | |
▷ Abstract classes | 3 | 2.59% |
▷ Concrete classes | 113 | 97.41% |
▷ Final classes | 1 | 0.88% |
Methods | 1,824 | |
▷ Static methods | 352 | 19.30% |
▷ Public methods | 1,373 | 75.27% |
▷ Protected methods | 22 | 1.21% |
▷ Private methods | 429 | 23.52% |
Functions | 332 | |
▷ Named functions | 127 | 38.25% |
▷ Anonymous functions | 205 | 61.75% |
Constants | 193 | |
▷ Global constants | 115 | 59.59% |
▷ Class constants | 78 | 40.41% |
▷ Public constants | 78 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-128.png | 5.78KB | 5.94KB | 0.00% |
assets/img/placeholder-rtl.png | 0.35KB | 0.37KB | 0.00% |
assets/img/admin-troubleshooting-woof2.png | 44.37KB | 46.71KB | 0.00% |
assets/img/product-preview.png | 21.30KB | 22.06KB | 0.00% |
assets/img/logo-for-review.png | 3.09KB | 3.12KB | 0.00% |