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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.38ms] Passed 4 tests
Analyzing server-side resources used by Variation Swatches for WooCommerce - Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.82 ▲2.02 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.74 ▼1.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.11 ▼2.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.25 ▼18.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.49 ▲0.42 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Variation Swatches for WooCommerce - Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.60 ▼0.79 | 4.54 ▲2.82 | 42.12 ▼1.29 |
Dashboard /wp-admin | 2,203 ▲18 | 5.88 ▲0.79 | 102.30 ▼11.26 | 39.00 ▼6.47 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.06 | 39.60 ▼2.28 | 35.15 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.38 ▲5.13 | 656.42 ▲52.07 | 50.42 ▼5.10 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.03 | 96.77 ▼11.45 | 41.54 ▼4.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-advanced-variation/includes/functions-ajax.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were not plugin tags detected
woo-advanced-variation/woo-advanced-variation.php Passed 13 tests
The primary PHP file in "Variation Swatches for WooCommerce - Lite" version 3.0.3 is used by WordPress to initiate all plugin functionality
100 characters long description:
Advanced multifunctional product variation swatches for WooCommerce with Colors, Images and Buttons.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,696 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 629 | 513 | 1,941 |
CSS | 3 | 140 | 9 | 648 |
JavaScript | 1 | 50 | 21 | 107 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 71.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 82.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 17.57% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin