Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/woocommerce-category-best-seller-widget/plugin.php+273
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.02ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce Category Best Seller Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.93 ▼37.25 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.50 ▼42.20 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.20 ▼42.04 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.95 ▼86.57 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.73 ▼28.65 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
widget_woocommerce-category-best-seller |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce Category Best Seller Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.48 ▼1.16 | 7.98 ▲6.22 | 44.50 ▼0.57 |
Dashboard /wp-admin | 2,202 ▲31 | 5.55 ▼0.12 | 84.55 ▼15.55 | 42.05 ▼1.02 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.00 | 34.02 ▼2.79 | 30.64 ▼4.41 |
Add New Post /wp-admin/post-new.php | 1,530 ▲1 | 22.93 ▼0.24 | 670.22 ▲65.56 | 53.93 ▼5.39 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.19 ▼0.02 | 95.24 ▲0.80 | 43.05 ▲1.78 |
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
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/woocommerce-category-best-seller-widget/plugin.php+273
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_woocommerce-category-best-seller
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: best_seller_categories in wp-content/plugins/woocommerce-category-best-seller-widget/views/widget.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-category-best-seller-widget/views/admin.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woocommerce-category-best-seller-widget/plugin.php:32
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
woocommerce-category-best-seller-widget/plugin.php 85% from 13 tests
The main PHP script in "Woocommerce Category Best Seller Widget" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-category-best-seller-widget.php" instead of "plugin.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected301 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 56 | 89 | 207 |
CSS | 2 | 0 | 1 | 67 |
PO File | 1 | 0 | 0 | 17 |
JavaScript | 2 | 0 | 2 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected