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.00MB] [CPU: ▼3.69ms] Passed 4 tests
An overview of server-side resources used by Live Search for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.44 ▼4.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.56 ▼5.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.23 ▲1.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.21 ▼3.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.92 ▼1.54 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Live Search for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.60 ▲0.25 | 1.68 ▲0.01 | 37.33 ▼7.61 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.09 | 95.89 ▼1.17 | 41.90 ▼0.67 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.13 ▲0.16 | 39.52 ▲2.15 | 34.26 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.66 ▲0.56 | 677.24 ▲63.33 | 49.45 ▼0.72 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.14 ▼0.06 | 94.40 ▼3.58 | 42.04 ▲0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Congratulations! This plugin passed the SRP test
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 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
ajax-product-search-woocommerce/ajax-product-search-woocommerce.php 92% from 13 tests
This is the main PHP file of "Live Search for WooCommerce" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,288 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 180 | 610 | 1,021 |
PO File | 1 | 47 | 52 | 138 |
JavaScript | 2 | 1 | 27 | 129 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 5.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 57 | 95.00% |
▷ Protected methods | 1 | 1.67% |
▷ Private methods | 2 | 3.33% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/autocomplete.png | 8.85KB | 7.98KB | ▼ 9.85% |
assets/images/widget.png | 18.97KB | 6.70KB | ▼ 64.70% |
assets/images/multiple-selection.png | 10.15KB | 9.30KB | ▼ 8.40% |