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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.73ms] Passed 4 tests
A check of server-side resources used by Enhanced Search Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.54 ▼2.03 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.41 ▼1.65 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 52.95 ▼0.70 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 95.64 ▼2.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.13 ▲2.55 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Enhanced Search Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 14.11 ▼0.27 | 6.29 ▲4.04 | 46.16 ▲3.74 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼0.01 | 113.61 ▼1.64 | 42.86 ▼1.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.07 | 40.36 ▼4.05 | 35.25 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.56 ▲5.44 | 614.95 ▼13.90 | 56.70 ▲0.42 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.32 ▲0.08 | 99.03 ▼2.11 | 42.42 ▼0.92 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enhanced-search-form/enhanced-search-form.php:167
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Search Form, the "Advanced" button is added by this plugin), #2 (When clicking "Advanced", visitors can set more search conditions...)
enhanced-search-form/enhanced-search-form.php Passed 13 tests
The main file in "Enhanced Search Form" v. 0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
Enhance wordpress search form to allow searching posts in certain category, month archive or tag.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin171 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 38 | 111 |
PO File | 1 | 6 | 12 | 30 |
JavaScript | 1 | 1 | 0 | 19 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.71 |
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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 87.92KB | 39.36KB | ▼ 55.23% |
screenshot-2.png | 123.52KB | 50.18KB | ▼ 59.38% |