Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.86MB] [CPU: ▲4.96ms] Passed 4 tests
This is a short check of server-side resources used by Custom Search by BestWebSoft - Advanced WordPress Search Bar Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.90 | 49.49 ▲10.71 |
Dashboard /wp-admin | 4.19 ▲0.89 | 54.74 ▲6.37 |
Posts /wp-admin/edit.php | 4.24 ▲0.89 | 57.32 ▲8.57 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.85 | 101.20 ▼4.21 |
Media Library /wp-admin/upload.php | 4.05 ▲0.82 | 44.01 ▲9.09 |
Server storage [IO: ▲5.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 132 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
cstmsrch_options |
theysaidso_admin_options |
bstwbsftwppdtplgns_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Search by BestWebSoft - Advanced WordPress Search Bar Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲155 | 13.96 ▼0.41 | 11.75 ▲9.86 | 43.03 ▲1.88 |
Dashboard /wp-admin | 2,234 ▲53 | 5.66 ▼0.06 | 92.50 ▼6.51 | 39.40 ▼2.94 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.02 ▲0.08 | 40.71 ▲4.99 | 35.94 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,556 ▲25 | 23.57 ▲0.16 | 682.64 ▲52.29 | 54.09 ▲2.72 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.20 ▼0.11 | 97.54 ▼6.57 | 42.45 ▼4.26 |
Settings /wp-admin/custom_search.php | 26 | 0.42 | 0.07 | 12.56 |
BWS Panel /wp-admin/custom_search.php?page=cstmsrch-bws-panel | 26 | 0.42 | 0.12 | 5.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/custom-search-plugin/includes/class-cstmsrch-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-search-plugin/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-search-plugin/bws_menu/class-bws-settings.php:1453
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-search-plugin/custom-search-plugin.php:800
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/custom_search.php
- > Network (severe)
wp-admin/custom_search.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/custom_search.php?page=cstmsrch-bws-panel
- > Network (severe)
wp-admin/custom_search.php?page=cstmsrch-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Custom Search Settings page.), #2 (Custom Search Appearance page.), #3 (Custom Search Display page.), #4 (Search results displayed by tabs.)
custom-search-plugin/custom-search-plugin.php Passed 13 tests
The main PHP file in "Custom Search by BestWebSoft - Advanced WordPress Search Bar Plugin" ver. 1.49 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
Add custom post types to WordPress website search results.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected23,450 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 16 | 4,924 | 8,633 | 12,153 |
CSS | 9 | 154 | 256 | 5,348 |
PHP | 9 | 521 | 607 | 5,259 |
JavaScript | 6 | 27 | 110 | 523 |
SVG | 4 | 0 | 0 | 167 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 93.33 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 11.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 22.22% |
Functions | 77 | |
▷ Named functions | 77 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
66 PNG files occupy 3.75MB with 1.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pro_screen_1.png | 205.09KB | 64.87KB | ▼ 68.37% |
screenshot-1.png | 121.63KB | 46.35KB | ▼ 61.89% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.21KB | ▼ 34.34% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_2e83ff_256x240.png | 4.49KB | 4.20KB | ▼ 6.46% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |