Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.42MB] [CPU: ▼5.60ms] Passed 4 tests
This is a short check of server-side resources used by Fancy Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 39.42 ▼0.90 |
Dashboard /wp-admin | 3.72 ▲0.41 | 46.90 ▼4.25 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 47.74 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 82.24 ▼18.16 |
Media Library /wp-admin/upload.php | 3.65 ▲0.41 | 37.88 ▲5.85 |
Fancy Search /wp-admin/admin.php?page=fancy-search | 3.59 | 32.16 |
Add-ons /wp-admin/admin.php?page=Fancy_Search_Callback_Addons | 3.59 | 32.58 |
Documentation /wp-admin/admin.php?page=Fancy_Search_Callback_Documentation | 3.61 | 30.18 |
Server storage [IO: ▲2.63MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The plugin illegally modified 2 files (1.70KB) outside of "wp-content/plugins/fancy-search/" and "wp-content/uploads/"
- (modified) wp-content/themes/twentytwentyone/search.php
- (new file) wp-content/themes/twentytwentyone/search-fancy-copy.php
Filesystem: 58 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_fancysearch |
wp_autosuggest |
New WordPress options |
---|
db_upgraded |
Fancy_Search_version |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Fancy Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 14.07 ▼0.31 | 4.74 ▲3.05 | 38.79 ▼4.19 |
Dashboard /wp-admin | 2,239 ▲48 | 5.83 ▲0.95 | 94.88 ▼9.93 | 75.28 ▲32.02 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.06 ▲0.03 | 34.48 ▼6.35 | 33.38 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,698 ▲179 | 22.41 ▼1.03 | 652.05 ▼16.52 | 41.88 ▼6.38 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.26 ▲0.05 | 111.53 ▲12.32 | 44.08 ▲1.92 |
Fancy Search /wp-admin/admin.php?page=fancy-search | 2,105 | 2.18 | 25.22 | 58.24 |
Add-ons /wp-admin/admin.php?page=Fancy_Search_Callback_Addons | 842 | 2.07 | 26.15 | 28.99 |
Documentation /wp-admin/admin.php?page=Fancy_Search_Callback_Documentation | 1,028 | 2.16 | 29.21 | 41.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- Fancy_Search_version
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Fancy_Search_Callback_Addons
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Fancy_Search_Callback_Addons
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: post search, advanced search, page search, search form, search...
fancy-search/fancy-search.php 92% from 13 tests
The principal PHP file in "Fancy Search" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 330 characters long)
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
There were no executable files found in this plugin28,611 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 1 | 1 | 2 | 13,061 |
CSS | 9 | 382 | 501 | 8,484 |
JavaScript | 12 | 356 | 299 | 3,654 |
PHP | 11 | 419 | 579 | 2,772 |
SVG | 1 | 0 | 0 | 640 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 45.80 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 9.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.67% |
Functions | 37 | |
▷ Named functions | 37 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/warning.png | 1.71KB | 0.86KB | ▼ 49.89% |
assets/img/screenshot-7.png | 19.23KB | 18.70KB | ▼ 2.76% |
assets/img/screenshot-6.png | 18.90KB | 18.42KB | ▼ 2.59% |
assets/img/screenshot-5.png | 26.44KB | 25.73KB | ▼ 2.68% |
assets/img/icon-17.png | 3.63KB | 0.82KB | ▼ 77.39% |