Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▲3.44ms] Passed 4 tests
Analyzing server-side resources used by Variation Swatches for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 42.71 ▲0.85 |
Dashboard /wp-admin | 3.93 ▲0.63 | 57.69 ▲6.45 |
Posts /wp-admin/edit.php | 3.98 ▲0.63 | 60.35 ▲13.44 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.56 | 94.61 ▼0.31 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 39.16 ▲6.76 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 3.80 | 41.82 |
Variation Swatches /wp-admin/admin.php?page=th-variation-swatches | 3.76 | 38.02 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Variation Swatches for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲232 | 14.69 ▲0.48 | 1.74 ▼0.18 | 45.91 ▲3.64 |
Dashboard /wp-admin | 2,372 ▲195 | 6.49 ▲0.82 | 114.50 ▲15.15 | 82.13 ▲38.07 |
Posts /wp-admin/edit.php | 2,309 ▲209 | 3.58 ▲1.58 | 55.91 ▲17.87 | 71.40 ▲36.80 |
Add New Post /wp-admin/post-new.php | 1,570 ▲41 | 23.32 ▲0.25 | 553.49 ▼114.79 | 182.75 ▲123.80 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.42 ▲0.27 | 83.85 ▼17.14 | 83.23 ▲39.88 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 1,426 | 3.42 | 50.57 | 85.07 |
Variation Swatches /wp-admin/admin.php?page=th-variation-swatches | 999 | 3.37 | 44.25 | 24.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/th-variation-swatches/inc/thvs-meta.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/th-option/tab-html.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/plugins-list.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/admin-menu.php:4
- > PHP Warning
Use of undefined constant THEMEHUNK_PDIR - assumed 'THEMEHUNK_PDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/th-option/tab-html.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/admin-menu.php on line 3
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin-install.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/admin-menu.php on line 3
- > PHP Warning
include_once(): Failed opening 'THEMEHUNK_PDIRth-option/header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/th-option/tab-html.php on line 9
- > PHP Warning
include_once(THEMEHUNK_PDIRth-option/header.php): failed to open stream: No such file or directory in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/th-option/tab-html.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/th-option/sidebar.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/th-variation-swatches/inc/themehunk-menu/th-option/header.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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 descriptions for these screenshots #1, #2, #3, #4, #5 in th-variation-swatches/assets to your readme.txt
th-variation-swatches/th-variation-swatches.php 92% from 13 tests
"Variation Swatches for WooCommerce" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 389 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,626 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 734 | 130 | 2,521 |
CSS | 3 | 84 | 24 | 1,089 |
JavaScript | 4 | 255 | 314 | 1,016 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 50.75 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 77 | |
▷ Static methods | 6 | 7.79% |
▷ Public methods | 64 | 83.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 16.88% |
Functions | 36 | |
▷ Named functions | 31 | 86.11% |
▷ Anonymous functions | 5 | 13.89% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.58MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pro3.png | 44.26KB | 46.14KB | 0.00% |
images/icon.png | 8.40KB | 0.67KB | ▼ 91.99% |
inc/themehunk-menu/th-option/assets/images/icon.png | 14.32KB | 7.45KB | ▼ 47.95% |
images/placeholder.png | 3.15KB | 1.12KB | ▼ 64.47% |
images/pro-coming-soonb.png | 6.51KB | 2.33KB | ▼ 64.23% |