Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.03ms] Passed 4 tests
Server-side resources used by MAS Variation Swatches for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.50 ▼8.47 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.78 ▼3.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.02 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.23 ▼2.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 34.15 ▲0.40 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
MAS Variation Swatches for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.44 ▲0.05 | 1.54 ▼0.90 | 40.85 ▼25.82 |
Dashboard /wp-admin | 2,209 ▲21 | 5.89 ▲1.02 | 103.31 ▼2.03 | 38.86 ▼5.50 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.12 | 38.32 ▼2.02 | 35.86 ▼3.50 |
Add New Post /wp-admin/post-new.php | 1,534 ▲10 | 23.27 ▲0.21 | 684.67 ▲85.13 | 53.35 ▲8.13 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.28 ▲0.02 | 94.63 ▼4.14 | 44.16 ▼0.07 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× 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/mas-woocommerce-variation-swatches/includes/mas-wc-variation-swatches-functions.php:95
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: woocommerce, product color, variation swatches, variable products, product size...
mas-woocommerce-variation-swatches/mas-woocommerce-variation-swatches.php 92% from 13 tests
The principal PHP file in "MAS Variation Swatches for WooCommerce" v. 1.0.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,724 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 266 | 355 | 991 |
CSS | 4 | 34 | 2 | 346 |
Sass | 2 | 43 | 0 | 236 |
JavaScript | 4 | 38 | 19 | 151 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 32.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 36 | 75.00% |
▷ Protected methods | 8 | 16.67% |
▷ Private methods | 4 | 8.33% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected