Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.72ms] Passed 4 tests
Server-side resources used by WooSearch
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.76 ▼0.55 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.37 ▼14.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.69 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.51 ▼1.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.56 ▼1.95 |
Server storage [IO: ▲2.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_woosearch_keywords |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_side_woosearch-widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WooSearch: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.62 ▲0.09 | 1.90 ▼0.12 | 44.13 ▲2.96 |
Dashboard /wp-admin | 2,195 ▲28 | 5.63 ▲0.10 | 88.46 ▼6.73 | 36.34 ▼3.34 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.03 | 41.68 ▲0.10 | 37.72 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 21.24 ▲3.05 | 700.57 ▲26.39 | 60.65 ▼16.34 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▲0.03 | 103.75 ▼2.85 | 45.34 ▲0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_woosearch_keywords
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_side_woosearch-widget
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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× 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/woosearch/includes/woosearch-apis.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/woosearch/views/woosearch-options.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Promotion Keywords.), #2 (Real-time Ajax Search.)
woosearch/woosearch.php Passed 13 tests
The entry point to "WooSearch" version 1.0.0 is a PHP file that has certain tags in its header comment area
69 characters long description:
An search engine that helps you search products based on WooCommerce.
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
No dangerous file extensions were detected2,987 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 3 | 764 |
CSS | 4 | 85 | 3 | 650 |
PHP | 6 | 84 | 57 | 568 |
JavaScript | 8 | 76 | 41 | 531 |
Sass | 3 | 31 | 20 | 347 |
PO File | 2 | 40 | 44 | 127 |
PHP code Passed 2 tests
An short overview of 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.17 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-arrow-down.png | 1.14KB | 0.37KB | ▼ 67.87% |