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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼12.32ms] Passed 4 tests
This is a short check of server-side resources used by WCBoost - Variation Swatches
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.75 ▼8.82 |
Dashboard /wp-admin | 3.32 ▼0.03 | 41.56 ▼19.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.46 ▲1.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.58 ▼16.55 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.10 ▼4.30 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WCBoost - Variation Swatches
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.72 ▲0.37 | 1.60 ▼0.14 | 37.67 ▼6.06 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▲0.00 | 92.96 ▼0.80 | 42.29 ▲4.47 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.02 | 38.66 ▲3.40 | 36.62 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.94 ▼0.62 | 678.91 ▼53.32 | 62.00 ▲5.01 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.02 | 96.10 ▼14.20 | 41.57 ▼6.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in wcboost-variation-swatches/assets to your readme.txt
wcboost-variation-swatches/wcboost-variation-swatches.php Passed 13 tests
The entry point to "WCBoost - Variation Swatches" version 1.0.14 is a PHP file that has certain tags in its header comment area
135 characters long description:
Transform boring dropdown variants into attractive and intuitive swatches, improving user experience and simplifying product selection.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,332 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 451 | 732 | 1,784 |
JavaScript | 6 | 78 | 46 | 278 |
CSS | 2 | 47 | 5 | 265 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 25.64 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 95 | |
▷ Static methods | 14 | 14.74% |
▷ Public methods | 92 | 96.84% |
▷ Protected methods | 3 | 3.16% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.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
There are no PNG files in this plugin