Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.39ms] Passed 4 tests
Analyzing server-side resources used by Better Category Selector for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.31 ▲0.36 |
Dashboard /wp-admin | 3.39 ▲0.04 | 46.94 ▼12.55 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.05 ▲0.08 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.50 ▼5.46 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.46 ▲4.24 |
/wp-admin/admin.php?page=bcs-category-selector | 3.29 | 30.91 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
HD_BCS_db_version |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Better Category Selector for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.74 ▲0.40 | 1.81 ▼0.01 | 44.89 ▲2.46 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▼0.11 | 86.12 ▼13.26 | 38.08 ▼4.49 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.00 | 36.81 ▼6.13 | 38.06 ▲4.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.47 ▲0.21 | 635.48 ▲50.01 | 49.22 ▼3.30 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.00 | 96.62 ▲2.01 | 40.27 ▼0.41 |
/wp-admin/admin.php?page=bcs-category-selector | 738 | 2.02 | 27.38 | 9.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- HD_BCS_db_version
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bcs-category-selector
- > Notice in wp-content/plugins/better-category-selector-for-woocommerce/bcs-category-selector.php+61
Trying to get property 'labels' of non-object
- > GET request to /wp-admin/admin.php?page=bcs-category-selector
- > Notice in wp-content/plugins/better-category-selector-for-woocommerce/bcs-category-selector.php+60
Trying to get property 'all_items' of non-object
- > GET request to /wp-admin/admin.php?page=bcs-category-selector
- > Notice in wp-content/plugins/better-category-selector-for-woocommerce/bcs-category-selector.php+61
Trying to get property 'most_used' of non-object
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bcs-category-selector
- > Notice in wp-content/plugins/better-category-selector-for-woocommerce/includes/bcs-walker.class.php+111
Trying to get property 'term_id' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bcs-category-selector
- > Notice in wp-admin/includes/template.php+118
Trying to get property 'cap' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bcs-category-selector
- > Notice in wp-admin/includes/template.php+118
Trying to get property 'assign_terms' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bcs-category-selector
- > Notice in wp-content/plugins/better-category-selector-for-woocommerce/includes/bcs-walker.class.php+115
Trying to get property 'name' of non-object
- > GET request to /wp-admin/admin.php?page=bcs-category-selector
- > Notice in wp-content/plugins/better-category-selector-for-woocommerce/bcs-category-selector.php+84
Trying to get property 'ID' of non-object
SRP 0% 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/better-category-selector-for-woocommerce/better-category-selector-for-woocommerce.php
- > /wp-content/plugins/better-category-selector-for-woocommerce/includes/bcs-loader.class.php
- > /wp-content/plugins/better-category-selector-for-woocommerce/bcs-category-selector.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/better-category-selector-for-woocommerce/includes/bcs-walker.class.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #5, #6 in better-category-selector-for-woocommerce/assets to your readme.txt
better-category-selector-for-woocommerce/better-category-selector-for-woocommerce.php Passed 13 tests
The primary PHP file in "Better Category Selector for WooCommerce" version 1.0.5 is used by WordPress to initiate all plugin functionality
119 characters long description:
Better Category Selector for WooCommerce provides an alternative, easier to use GUI for putting products in categories.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin878 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 168 | 470 | 615 |
JavaScript | 1 | 33 | 55 | 190 |
CSS | 1 | 17 | 13 | 73 |
PHP code Passed 2 tests
A brief analysis 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.29 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 30 | |
▷ Static methods | 15 | 50.00% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/nobrainer_logo_220209.png | 12.88KB | 6.20KB | ▼ 51.88% |