Benchmarks
Plugin footprint 65% 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.37MB] [CPU: ▼4.79ms] 75% from 4 tests
Server-side resources used by GS Variation Swatches for WooCommerce
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 1,007.84ms on /wp-admin/admin.php?page=gsp-main)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 42.48 ▲2.55 |
Dashboard /wp-admin | 3.71 ▲0.41 | 45.77 ▼8.85 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 44.00 ▼6.91 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 95.78 ▼5.94 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 41.08 ▲7.33 |
GS Plugins FREE /wp-admin/admin.php?page=gs-plugins-free | 3.67 | 707.43 |
Variation Help & Usage /wp-admin/admin.php?page=gs-wv-help | 3.53 | 35.38 |
GS Plugins /wp-admin/admin.php?page=gsp-main | 3.85 | 1,007.84 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_gs_woo_meta |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for GS Variation Swatches for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲127 | 13.68 ▼0.69 | 1.76 ▲0.05 | 44.68 ▲0.06 |
Dashboard /wp-admin | 2,268 ▲79 | 4.79 ▼0.10 | 101.51 ▼3.00 | 41.87 ▼3.22 |
Posts /wp-admin/edit.php | 2,154 ▲62 | 2.15 ▲0.17 | 40.48 ▼10.40 | 37.69 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,585 ▲49 | 23.26 ▲0.20 | 604.27 ▼1.22 | 54.31 ▼3.32 |
Media Library /wp-admin/upload.php | 1,450 ▲62 | 4.25 ▲0.05 | 101.31 ▲5.05 | 42.20 ▲1.10 |
GS Plugins FREE /wp-admin/admin.php?page=gs-plugins-free | 2,677 | 2.06 | 30.43 | 40.41 |
Variation Help & Usage /wp-admin/admin.php?page=gs-wv-help | 1,028 | 3.76 | 56.90 | 63.38 |
GS Plugins /wp-admin/admin.php?page=gsp-main | 1,925 | 2.03 | 27.15 | 58.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_gs_woo_meta
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gs-woo-variation-swatches/includes/class-woo-frontend.php
- > /wp-content/plugins/gs-woo-variation-swatches/includes/templates/admin/function.activation.php
- > /wp-content/plugins/gs-woo-variation-swatches/includes/class-woov-setting.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-woo-variation-swatches/gs-plugins/gs-plugins-free.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-woo-variation-swatches/gs_woo_variation.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gs-woo-variation-swatches/includes/templates/gs-variable-loop.php:11
- > PHP Warning
Use of undefined constant GS_WOO_HACK_MSG - assumed 'GS_WOO_HACK_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/gs-woo-variation-swatches/includes/class-woov-setting.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-woo-variation-swatches/gs-plugins/gs-plugins.php:15
- > PHP Warning
Use of undefined constant GS_WOO_HACK_MSG - assumed 'GS_WOO_HACK_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/gs-woo-variation-swatches/includes/class-woo-frontend.php on line 10
- > PHP Warning
Use of undefined constant GS_WOO_HACK_MSG - assumed 'GS_WOO_HACK_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/gs-woo-variation-swatches/includes/templates/admin/function.activation.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-woo-variation-swatches/gs-plugins/gs-wv-help.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=gs-wv-help
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=gs-wv-help
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
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:
- Tags: Too many tags (35 tag instead of maximum 10); only the first 5 tags are used in your directory listing
gs-woo-variation-swatches/gs_woo_variation.php 77% from 13 tests
The main file in "GS Variation Swatches for WooCommerce" v. 1.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 339 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gs-woo-variation-swatches.php" instead of "gs_woo_variation.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,368 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 619 | 813 | 2,231 |
CSS | 3 | 54 | 31 | 571 |
JavaScript | 2 | 165 | 79 | 566 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 39.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 6 | 5.88% |
▷ Public methods | 81 | 79.41% |
▷ Protected methods | 8 | 7.84% |
▷ Private methods | 13 | 12.75% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
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 |
assets/img/icon-128x128.png | 13.98KB | 7.02KB | ▼ 49.75% |