Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.95ms] Passed 4 tests
An overview of server-side resources used by Simple Autocomplete Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.02 | 48.65 ▲9.13 |
Dashboard /wp-admin | 3.37 ▼0.02 | 49.43 ▼15.21 |
Posts /wp-admin/edit.php | 3.42 ▲0.02 | 51.77 ▼1.75 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.02 | 97.19 ▼7.97 |
Media Library /wp-admin/upload.php | 3.29 ▲0.02 | 36.56 ▼2.88 |
City Population /wp-admin/options-general.php?page=jquery-autocomplete-search | 3.26 | 35.68 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Autocomplete Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲157 | 13.53 ▼0.63 | 10.22 ▲8.49 | 40.09 ▲0.80 |
Dashboard /wp-admin | 2,192 ▲15 | 5.56 ▼0.11 | 86.92 ▼15.09 | 37.44 ▼8.14 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.01 | 39.53 ▲1.93 | 38.23 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,376 ▼152 | 16.60 ▼6.74 | 585.86 ▼137.55 | 45.80 ▼14.70 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.26 ▲0.15 | 99.01 ▼15.66 | 41.04 ▼7.81 |
City Population /wp-admin/options-general.php?page=jquery-autocomplete-search | 816 | 1.97 | 26.58 | 32.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-autocomplete-search/simple-autocomplete-search.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/simple-autocomplete-search/search.php:6
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/simple-autocomplete-search/search.php on line 6
- > PHP Notice
Undefined index: searchbt in wp-content/plugins/simple-autocomplete-search/search.php on line 4
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: mysql, jquery, search
simple-autocomplete-search/simple-autocomplete-search.php Passed 13 tests
The main PHP script in "Simple Autocomplete Search" version 1.0 is automatically included on every request by WordPress
49 characters long description:
An autocomplete plugin for WordPress using Jquery
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
Good job! No executable or dangerous file extensions detected145 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 37 | 145 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin