Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.92ms] Passed 4 tests
Analyzing server-side resources used by Best Selling in Category Woo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.03 | 28.68 ▼18.78 |
Dashboard /wp-admin | 3.38 ▲0.07 | 56.13 ▲3.39 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.89 ▲0.69 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.00 ▼5.49 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.47 ▼0.11 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Best Selling in Category Woo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,454 ▼307 | 14.65 ▲0.30 | 0.54 ▼1.15 | 19.84 ▼22.80 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▲0.06 | 92.12 ▼10.26 | 39.63 ▼3.40 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▲0.06 | 36.89 ▼0.05 | 33.15 ▼6.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▲1 | 21.06 ▼2.69 | 665.64 ▲6.10 | 71.38 ▲11.51 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.25 ▲0.01 | 101.47 ▼6.51 | 46.18 ▼0.11 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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
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 errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/best-selling-in-category/admin/view.php:36
- > 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 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: A description for screenshot #1 is missing in best-selling-in-category/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
best-selling-in-category/best-selling-in-category-woo.php 77% from 13 tests
"Best Selling in Category Woo" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("best-selling-in-category.php" instead of "best-selling-in-category-woo.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.5.0" instead of "5.8")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin897 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 18 | 5 | 439 |
PHP | 6 | 163 | 263 | 339 |
JavaScript | 2 | 16 | 4 | 79 |
PO File | 1 | 12 | 12 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 22 | |
▷ Static methods | 7 | 31.82% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 22.73% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 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
No PNG images were found in this plugin