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: ▲1.00MB] [CPU: ▲2.96ms] Passed 4 tests
This is a short check of server-side resources used by Better Search - Relevant search results for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.74 | 49.01 ▲1.30 |
Dashboard /wp-admin | 4.39 ▲1.09 | 60.85 ▲10.76 |
Posts /wp-admin/edit.php | 4.44 ▲1.09 | 57.79 ▲4.58 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 97.24 ▼0.67 |
Media Library /wp-admin/upload.php | 4.31 ▲1.08 | 44.52 ▲6.62 |
Settings /wp-admin/admin.php?page=bsearch_options_page | 4.27 | 40.06 |
Daily Popular Searches /wp-admin/admin.php?page=bsearch_popular_searches&orderby=daily_count&order=desc | 4.25 | 54.48 |
Tools /wp-admin/admin.php?page=bsearch_tools_page | 4.25 | 38.66 |
Popular Searches /wp-admin/admin.php?page=bsearch_popular_searches | 4.25 | 45.63 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 71 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_bsearch |
wp_bsearch_daily |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
bsearch_db_version |
bsearch_settings |
widget_recent-comments |
widget_bsearch_search_box |
widget_theysaidso_widget |
widget_widget_bsearch_pop |
db_upgraded |
Browser metrics Passed 4 tests
Better Search - Relevant search results for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 13.38 ▼0.87 | 1.85 ▼0.16 | 38.04 ▼8.00 |
Dashboard /wp-admin | 2,323 ▲135 | 5.82 ▼0.07 | 106.64 ▲1.24 | 41.20 ▼4.93 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.05 ▲0.00 | 38.93 ▼0.77 | 34.15 ▼4.40 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 17.64 ▼0.62 | 628.42 ▼23.32 | 49.55 ▼14.24 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.22 ▲0.01 | 101.54 ▼3.49 | 43.43 ▲0.83 |
Settings /wp-admin/admin.php?page=bsearch_options_page | 2,150 | 5.04 | 138.72 | 83.67 |
Daily Popular Searches /wp-admin/admin.php?page=bsearch_popular_searches&orderby=daily_count&order=desc | 1,333 | 4.56 | 85.56 | 62.49 |
Tools /wp-admin/admin.php?page=bsearch_tools_page | 1,257 | 4.37 | 50.38 | 71.52 |
Popular Searches /wp-admin/admin.php?page=bsearch_popular_searches | 1,339 | 4.49 | 49.98 | 64.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_bsearch_search_box
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_widget_bsearch_pop
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 16× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/better-search/includes/template-redirect.php
- > /wp-content/plugins/better-search/includes/main-functions.php
- > /wp-content/plugins/better-search/includes/modules/tracker.php
- > /wp-content/plugins/better-search/includes/modules/shortcode.php
- > /wp-content/plugins/better-search/includes/activation.php
- > /wp-content/plugins/better-search/includes/deprecated.php
- > /wp-content/plugins/better-search/uninstall.php
- > /wp-content/plugins/better-search/includes/general-template.php
- > /wp-content/plugins/better-search/includes/l10n.php
- > /wp-content/plugins/better-search/better-search.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: heatmap, relevant search, top searches, popular searches, contextual search...
better-search/better-search.php 92% from 13 tests
The main PHP script in "Better Search - Relevant search results for WordPress" version 3.2.2 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
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
No dangerous file extensions were detected6,602 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,531 | 3,416 | 4,984 |
CSS | 4 | 38 | 34 | 694 |
PO File | 1 | 230 | 235 | 619 |
JavaScript | 6 | 35 | 13 | 259 |
Markdown | 1 | 32 | 0 | 46 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 3 | 6.12% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 2 | 4.08% |
▷ Private methods | 0 | 0.00% |
Functions | 161 | |
▷ Named functions | 160 | 99.38% |
▷ Anonymous functions | 1 | 0.62% |
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
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
includes/admin/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
includes/admin/css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
includes/admin/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
includes/admin/css/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |