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
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼0.65ms] Passed 4 tests
Analyzing server-side resources used by SF Autosuggest Product Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 44.92 ▼0.26 |
Dashboard /wp-admin | 3.45 ▲0.15 | 51.78 ▼1.24 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.76 ▲1.27 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 89.23 ▼2.39 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.90 ▲5.63 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
SF Autosuggest Product Search: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲151 | 13.46 ▼0.89 | 10.22 ▲8.45 | 42.96 ▼2.17 |
Dashboard /wp-admin | 2,226 ▲49 | 5.75 ▲0.10 | 92.38 ▼12.71 | 50.62 ▲6.16 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.41 ▲0.39 | 39.29 ▲0.98 | 47.10 ▲11.64 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.33 ▲0.31 | 714.69 ▲31.58 | 33.60 ▼27.96 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.40 ▲0.16 | 113.34 ▲4.07 | 45.80 ▼0.66 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× 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/sf-autosuggest-product-search/classes/AdminClass.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sf-autosuggest-product-search/classes/FeedbackClass.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sf-autosuggest-product-search/sf_products_autosuggest.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 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
5 plugin tags: products, search, woocommerce, ecommerce, woocommerce search
sf-autosuggest-product-search/sf_products_autosuggest.php 85% from 13 tests
Analyzing the main PHP file in "SF Autosuggest Product Search" version 1.3.2
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.8.8" instead of "3.0.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sf-autosuggest-product-search.php" instead of "sf_products_autosuggest.php")
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
There were no executable files found in this plugin959 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 96 | 19 | 773 |
CSS | 2 | 25 | 0 | 117 |
JavaScript | 2 | 11 | 4 | 69 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/search-example.png | 20.84KB | 7.43KB | ▼ 64.36% |