Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.70ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Hot products by Category and Vendor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.64 ▼13.21 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.29 ▼1.58 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.66 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.94 ▼11.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.30 ▲2.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Hot products by Category and Vendor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.37 ▼0.98 | 1.77 ▼0.01 | 40.27 ▼3.82 |
Dashboard /wp-admin | 2,215 ▲24 | 5.85 ▲0.93 | 101.14 ▼14.45 | 40.79 ▼6.13 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.06 ▲0.06 | 41.04 ▲3.65 | 37.02 ▲4.54 |
Add New Post /wp-admin/post-new.php | 1,542 ▲19 | 23.30 ▲0.03 | 640.87 ▲42.56 | 53.34 ▲1.33 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▼0.05 | 102.46 ▲5.03 | 43.19 ▼0.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-hot-products-by-category-and-vendor/inc/admin.php:5
- > PHP Notice
Undefined variable: best_seller_categories in wp-content/plugins/woocommerce-hot-products-by-category-and-vendor/inc/widget.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-hot-products-by-category-and-vendor/woocommerce-hot-products-by-seller-and-category.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Screenshot-1), #2 (Screenshot-2)
woocommerce-hot-products-by-category-and-vendor/woocommerce-hot-products-by-seller-and-category.php 77% from 13 tests
"Woocommerce Hot products by Category and Vendor" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-hot-products-by-category-and-vendor.php" instead of "woocommerce-hot-products-by-seller-and-category.php")
- Description: Keep the plugin description shorter than 140 characters (currently 239 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin324 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 37 | 19 | 217 |
CSS | 1 | 0 | 0 | 78 |
PO File | 1 | 5 | 5 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin