Benchmarks
Plugin footprint 65% 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: ▲5.17MB] [CPU: ▲31.54ms] 75% from 4 tests
Server-side resources used by Variation Swatches and Gallery for WooCommerce
Please have a look at the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.17MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.47 | 73.51 ▲35.54 |
Dashboard /wp-admin | 8.95 ▲5.65 | 84.65 ▲35.39 |
Posts /wp-admin/edit.php | 8.95 ▲5.60 | 78.99 ▲28.07 |
Add New Post /wp-admin/post-new.php | 9.85 ▲3.97 | 123.82 ▲27.17 |
Media Library /wp-admin/upload.php | 8.95 ▲5.73 | 74.03 ▲41.97 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.95 | 64.23 |
Server storage [IO: ▲3.64MB] [DB: ▲0.03MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 248 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
fs_accounts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for Variation Swatches and Gallery for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,256 ▲521 | 15.31 ▲0.93 | 7.52 ▲5.82 | 32.15 ▼19.87 |
Dashboard /wp-admin | 2,531 ▲340 | 6.67 ▲1.77 | 125.87 ▲17.17 | 103.39 ▲58.81 |
Posts /wp-admin/edit.php | 2,339 ▲250 | 3.56 ▲1.51 | 57.22 ▲21.24 | 87.48 ▲52.39 |
Add New Post /wp-admin/post-new.php | 1,747 ▲376 | 22.41 ▲5.65 | 636.35 ▲69.75 | 35.41 ▼24.28 |
Media Library /wp-admin/upload.php | 1,478 ▲90 | 4.35 ▲0.13 | 85.09 ▼12.71 | 84.24 ▲39.44 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,308 | 3.36 | 47.67 | 89.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/variation-swatches-and-gallery/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_accounts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- fs_active_plugins
- widget_recent-comments
- can_compress_scripts
- fs_debug_mode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/variation-swatches-and-gallery/admin/partials/variation-swatches-and-gallery-admin-display.php
- > /wp-content/plugins/variation-swatches-and-gallery/public/partials/variation-swatches-and-gallery-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #7, #8, #9 in variation-swatches-and-gallery/assets to your readme.txt
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
variation-swatches-and-gallery/variation-swatches-and-gallery.php Passed 13 tests
The main PHP script in "Variation Swatches and Gallery for WooCommerce" version 1.0.2 is automatically included on every request by WordPress
46 characters long description:
Variation Swatches and Gallery for WooCommerce
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin38,505 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 146 | 8,544 | 19,225 | 35,792 |
JavaScript | 11 | 50 | 238 | 1,980 |
CSS | 18 | 13 | 8 | 337 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 3 | 0 | 0 | 154 |
XML | 1 | 3 | 0 | 16 |
SVG | 1 | 0 | 0 | 12 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 74.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,441 | |
▷ Static methods | 234 | 16.24% |
▷ Public methods | 1,027 | 71.27% |
▷ Protected methods | 17 | 1.18% |
▷ Private methods | 397 | 27.55% |
Functions | 106 | |
▷ Named functions | 103 | 97.17% |
▷ Anonymous functions | 3 | 2.83% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/zqelab/wp-term-meta/src/imgs/placeholder.png | 100.24KB | 73.05KB | ▼ 27.12% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |