Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼310.89ms] Passed 4 tests
Server-side resources used by WP AutoComplete Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.27 | 57.80 ▲7.43 |
Dashboard /wp-admin | 3.63 ▲0.21 | 35.31 ▲1.69 |
Posts /wp-admin/edit.php | 3.85 ▲0.21 | 39.40 ▲1.48 |
Add New Post /wp-admin/post-new.php | 7.09 ▲0.12 | 93.54 ▼1,246.61 |
Media Library /wp-admin/upload.php | 3.51 ▲0.21 | 26.64 ▼0.13 |
WP AutoSearch /wp-admin/options-general.php?page=wp_autosearch_options | 3.80 | 24.78 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_wizardinfosys_autosearch |
wp-autosearch-suggest |
Browser metrics Passed 4 tests
An overview of browser requirements for WP AutoComplete Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,924 ▲170 | 16.40 ▲0.77 | 11.87 ▲5.41 | 2.94 ▲0.21 |
Dashboard /wp-admin | 2,893 ▲32 | 6.17 ▲0.01 | 122.26 ▼11.26 | 160.24 ▼6.49 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▲0.00 | 65.10 ▼0.77 | 144.53 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,755 ▲94 | 20.92 ▲5.34 | 458.37 ▼4.16 | 172.04 ▲1.76 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.55 ▲0.07 | 146.29 ▲7.62 | 195.58 ▲7.40 |
WP AutoSearch /wp-admin/options-general.php?page=wp_autosearch_options | 2,760 | 2.97 | 68.11 | 147.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 2 options in the database
- wp-autosearch-suggest
- widget_wizardinfosys_autosearch
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-autosearch/widget/widget.php
- > /wp-content/plugins/wp-autosearch/functions.php
- > /wp-content/plugins/wp-autosearch/helper/options.php
- > /wp-content/plugins/wp-autosearch/helper/helper.php
- > /wp-content/plugins/wp-autosearch/ajax/ajax.php
- > /wp-content/plugins/wp-autosearch/assert/css/style.php
- 69× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'results_even_bar' of non-object in wp-content/plugins/wp-autosearch/assert/css/style.php on line 122
- > PHP Notice
Trying to get property 'box_border' of non-object in wp-content/plugins/wp-autosearch/assert/css/style.php on line 19
- > PHP Notice
Trying to get property 'url' of non-object in wp-content/plugins/wp-autosearch/assert/css/style.php on line 65
- > PHP Notice
Trying to get property 'options' of non-object in wp-content/plugins/wp-autosearch/assert/css/style.php on line 63
- > PHP Notice
Trying to get property 'options' of non-object in wp-content/plugins/wp-autosearch/assert/css/style.php on line 64
- > PHP Notice
Trying to get property 'box_background' of non-object in wp-content/plugins/wp-autosearch/assert/css/style.php on line 181
- > PHP Notice
Trying to get property 'url' of non-object in wp-content/plugins/wp-autosearch/assert/css/style.php on line 85
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-autosearch/media/resize.php:345
- > PHP Notice
Trying to get property 'options' of non-object in wp-content/plugins/wp-autosearch/assert/css/style.php on line 162
- > PHP Notice
Trying to get property 'results_odd_text' of non-object in wp-content/plugins/wp-autosearch/assert/css/style.php on line 42
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #7, #8, #9 in wp-autosearch/assets to your readme.txt
wp-autosearch/wp-autosearch.php Passed 13 tests
The principal PHP file in "WP AutoComplete Search" v. 1.0.4 is loaded by WordPress automatically on each request
110 characters long description:
Wordpress realtime auto search suggestions of WordPress posts, pages,custom post,taxonomies and Order of Types
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,082 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 245 | 217 | 1,722 |
PHP | 8 | 412 | 387 | 1,704 |
CSS | 1 | 195 | 57 | 1,268 |
PO File | 2 | 174 | 348 | 388 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
21 PNG files occupy 0.54MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshots/screenshot-2.png | 55.86KB | 16.42KB | ▼ 70.60% |
assets/screenshots/screenshot-4.png | 78.63KB | 23.05KB | ▼ 70.69% |
assert/js/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
assets/screenshots/screenshot-1.png | 149.83KB | 39.39KB | ▼ 73.71% |
assert/css/icons/wp-stat.png | 1.87KB | 1.00KB | ▼ 46.65% |