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.05MB] [CPU: ▼12.52ms] Passed 4 tests
An overview of server-side resources used by Smart WooCommerce Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.01 ▼1.52 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.87 ▼2.19 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.31 ▲3.39 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.83 ▼49.68 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.75 ▲3.30 |
Synonyms /wp-admin/admin.php?page=smart-search-synonyms | 3.27 | 31.14 |
Widgets /wp-admin/admin.php?page=smart-search | 3.30 | 28.38 |
Stop Words /wp-admin/admin.php?page=smart-search-stop-words | 3.27 | 31.90 |
Upgrade to Pro /wp-admin/admin.php?page=smart-search-update-to-pro | 3.22 | 28.88 |
Add New /wp-admin/admin.php?page=smart-search-custom-new | 3.34 | 37.92 |
Server storage [IO: ▲0.47MB] [DB: ▲0.31MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_ysm_search_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart WooCommerce Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲153 | 13.80 ▼0.71 | 9.11 ▲7.54 | 29.27 ▼13.22 |
Dashboard /wp-admin | 2,233 ▲53 | 5.63 ▼0.03 | 93.35 ▼4.05 | 43.16 ▼1.84 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 1.95 ▼0.06 | 40.76 ▲2.74 | 43.50 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,557 ▲21 | 23.34 ▲5.01 | 622.53 ▼43.34 | 59.40 ▼10.19 |
Media Library /wp-admin/upload.php | 1,432 ▲29 | 4.21 ▲0.06 | 102.65 ▲5.27 | 43.45 ▲1.00 |
Synonyms /wp-admin/admin.php?page=smart-search-synonyms | 903 | 2.35 | 41.83 | 32.47 |
Widgets /wp-admin/admin.php?page=smart-search | 979 | 2.38 | 42.22 | 35.64 |
Stop Words /wp-admin/admin.php?page=smart-search-stop-words | 898 | 2.12 | 32.94 | 29.57 |
Upgrade to Pro /wp-admin/admin.php?page=smart-search-update-to-pro | 703 | 1.12 | 6.85 | 16.12 |
Add New /wp-admin/admin.php?page=smart-search-custom-new | 4,193 | 3.26 | 115.53 | 55.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_ysm_search_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=smart-search-update-to-pro
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
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
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function YSM\\Rest\\add_action() in wp-content/plugins/smart-woocommerce-search/inc/custom/rest.php:4
- > PHP Notice
Undefined variable: w_id in wp-content/plugins/smart-woocommerce-search/templates/admin-tab-styling.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function YSWS\\Compat\\Elementor\\add_filter() in wp-content/plugins/smart-woocommerce-search/inc/compat/compat-elementor.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function ysm_setting() in wp-content/plugins/smart-woocommerce-search/templates/admin-tab-spellcheck.php:6
- > PHP Notice
Undefined variable: w_id in wp-content/plugins/smart-woocommerce-search/templates/admin-tab-styling.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/smart-woocommerce-search/templates/admin-tab-general.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function YSM\\Hooks\\add_filter() in wp-content/plugins/smart-woocommerce-search/inc/custom/hooks.php:4
- > PHP Notice
Undefined variable: w_id in wp-content/plugins/smart-woocommerce-search/templates/admin-tab-general.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/smart-woocommerce-search/inc/compat/class-module-elementor.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smart-woocommerce-search/inc/custom/class-ysm-search-widget.php:7
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 52 tag instead of maximum 10
smart-woocommerce-search/index.php 85% from 13 tests
"Smart WooCommerce Search" version 2.7.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.4" instead of "4.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-woocommerce-search.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin5,939 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 685 | 808 | 3,179 |
JavaScript | 8 | 418 | 463 | 1,900 |
Sass | 13 | 138 | 5 | 845 |
SVG | 1 | 0 | 0 | 12 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 66 | 66.00% |
▷ Public methods | 81 | 81.00% |
▷ Protected methods | 7 | 7.00% |
▷ Private methods | 12 | 12.00% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/search-icon.png | 3.06KB | 2.40KB | ▼ 21.40% |