Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.39ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Colors
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.81 ▼1.11 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.96 ▼14.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.74 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.15 ▼8.19 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 30.24 ▼6.11 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Colors
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.14 ▼0.15 | 1.67 ▲0.10 | 37.75 ▼1.76 |
Dashboard /wp-admin | 2,204 ▲27 | 5.65 ▲0.02 | 93.54 ▲2.67 | 39.14 ▼1.32 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.11 ▲0.09 | 40.13 ▲5.73 | 38.56 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,543 ▲8 | 18.22 ▲0.12 | 633.20 ▼3.21 | 75.42 ▲10.16 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▲0.00 | 94.83 ▼3.94 | 41.79 ▼0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: shortcodes, woocommerce
woocommerce-colors/woocommerce-colors.php 77% from 13 tests
The main PHP script in "WooCommerce Colors" version 1.0.7 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
- Domain Path: Prefix the domain path with a forward slash character ("/languages/")
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,019 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 858 | 637 | 4,002 |
JavaScript | 4 | 174 | 171 | 964 |
PO File | 1 | 18 | 20 | 53 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 101.22 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 474.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 242 | |
▷ Static methods | 7 | 2.89% |
▷ Public methods | 50 | 20.66% |
▷ Protected methods | 190 | 78.51% |
▷ Private methods | 2 | 0.83% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin