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.09MB] [CPU: ▼5.94ms] Passed 4 tests
This is a short check of server-side resources used by Show Variations On Shop & Category WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.95 ▼5.82 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.08 ▼7.70 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 51.37 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.16 ▼8.90 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 41.11 ▼1.34 |
Woo Variation Settings /wp-admin/options-general.php?page=WSSVSC | 3.27 | 35.02 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Show Variations On Shop & Category WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▼0.01 | 1.76 ▼0.30 | 43.04 ▼1.87 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▼0.01 | 89.38 ▼6.19 | 38.70 ▼5.96 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.04 | 37.31 ▲2.95 | 35.37 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.26 ▲0.20 | 680.80 ▼11.94 | 53.37 ▼19.33 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.02 | 111.13 ▼7.74 | 47.82 ▼1.09 |
Woo Variation Settings /wp-admin/options-general.php?page=WSSVSC | 871 | 2.03 | 25.16 | 37.91 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=WSSVSC
- > Notice in wp-admin/includes/template.php+118
Trying to get property 'cap' of non-object
- > GET request to /wp-admin/options-general.php?page=WSSVSC
- > Notice in wp-admin/includes/template.php+118
Trying to get property 'assign_terms' of non-object
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=WSSVSC
- > Notice in wp-admin/includes/class-walker-category-checklist.php+114
Trying to get property 'term_id' of non-object
- > GET request to /wp-admin/options-general.php?page=WSSVSC
- > Warning in wp-admin/includes/class-walker-category-checklist.php+89
array_map(): Expected parameter 2 to be an array, object given
- > GET request to /wp-admin/options-general.php?page=WSSVSC
- > Warning in wp-admin/includes/class-walker-category-checklist.php+91
in_array() expects parameter 2 to be array, null given
- > GET request to /wp-admin/options-general.php?page=WSSVSC
- > Notice in wp-admin/includes/class-walker-category-checklist.php+118
Trying to get property 'name' of non-object
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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:
- Contributors: The plugin contributors field is not present
- Screenshots: Add descriptions for screenshots #1, #3, #4, #5, #6 in woo-show-single-variations-shop-category/assets to your readme.txt
woo-show-single-variations-shop-category/woo-show-single-variations.php 85% from 13 tests
The entry point to "Show Variations On Shop & Category WooCommerce" version 2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-show-single-variations-shop-category.php" instead of "woo-show-single-variations.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 detected3,440 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 544 | 373 | 2,534 |
CSS | 1 | 112 | 19 | 515 |
PHP | 4 | 87 | 70 | 391 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/select2.png | 0.51KB | 0.99KB | 0.00% |