Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.24ms] Passed 4 tests
This is a short check of server-side resources used by Modifier For Color Label Variations For Woocomerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.63 ▲0.29 |
Dashboard /wp-admin | 3.31 ▼0.03 | 58.41 ▼5.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.09 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.75 ▼25.12 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.27 ▲3.53 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
mclv_recently_activated |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Modifier For Color Label Variations For Woocomerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.40 ▲0.09 | 1.95 ▲0.02 | 48.52 ▲0.69 |
Dashboard /wp-admin | 2,206 ▲18 | 5.87 ▲0.99 | 101.24 ▼6.76 | 45.95 ▼1.60 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.02 | 39.18 ▼2.12 | 32.98 ▼8.80 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.08 ▲4.99 | 686.79 ▲72.30 | 74.41 ▲22.20 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.17 ▼0.03 | 100.98 ▼2.81 | 46.56 ▲0.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- mclv_recently_activated
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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 | 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
8 plugin tags: woocommerce variations, woocommerce colors, modifier for display color label variations, woocommerce, mclv woocommerce...
modifier-for-colors-label-variations-for-woocomerce/init.php 85% from 13 tests
The main file in "Modifier For Color Label Variations For Woocomerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("modifier-for-colors-label-variations-for-woocomerce.php" instead of "init.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 157 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
No dangerous file extensions were detected756 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 168 | 219 | 480 |
JavaScript | 3 | 54 | 10 | 226 |
CSS | 4 | 4 | 0 | 50 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 3 | 13.04% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
PNG images were not found in this plugin