Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Error in wp-content/plugins/extreme-search-suggestion-for-woocommerce/includes/class-extreme-search-activator.php+82
Uncaught Error: Class 'Extreme_Search_Json_Factory' not found in wp-content/plugins/extreme-search-suggestion-for-woocommerce/includes/class-extreme-search-activator.php:82
Stack trace:
#0 wp-content/plugins/extreme-search-suggestion-for-woocommerce/extreme-search.php(66): Extreme_Search_Activator::activate()
#1 wp-includes/class-wp-hook.php(310): activate_extreme_search()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.56ms] Passed 4 tests
An overview of server-side resources used by Extreme Search Suggestion for WooCommerce (AJAX)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.81 ▼0.73 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.88 ▼3.84 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.33 ▼1.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.77 ▼4.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.84 ▲0.38 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 17 new options
New WordPress options |
---|
wc_settings_tab_extreme_search_section_display_terms |
wc_settings_tab_extreme_search_section_search_terms |
wc_settings_tab_extreme_search_popup_search |
wc_settings_tab_extreme_search_redirect |
wc_settings_tab_extreme_search_exclude_product |
wc_settings_tab_extreme_search_section_search_field |
wc_settings_tab_extreme_search_section_search_min_char |
widget_recent-posts |
can_compress_scripts |
wc_settings_tab_extreme_search_section_display_field |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Extreme Search Suggestion for WooCommerce (AJAX)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.78 ▲0.55 | 1.82 ▼0.72 | 44.23 ▼1.92 |
Dashboard /wp-admin | 2,206 ▲18 | 6.06 ▲0.18 | 111.14 ▼5.80 | 41.50 ▼3.89 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 33.28 ▼1.05 | 33.12 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 18.55 ▼4.65 | 592.31 ▼50.41 | 71.15 ▲23.20 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.07 | 94.57 ▲0.79 | 41.25 ▼0.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- extreme_search_prod_json_name
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- extreme_search_cat_json_name
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: search suggestion, ajax search suggestion, extreme fast search suggestion, woocommerce suggestion, fast suggestion...
extreme-search-suggestion-for-woocommerce/extreme-search.php 85% from 13 tests
The main PHP file in "Extreme Search Suggestion for WooCommerce (AJAX)" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("extreme-search-suggestion-for-woocommerce.php" instead of "extreme-search.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 plugin1,104 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 290 | 417 | 842 |
CSS | 3 | 3 | 0 | 148 |
JavaScript | 5 | 30 | 3 | 94 |
JSON | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 50 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 13.79% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin