Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼311.89ms] Passed 4 tests
Server-side resources used by Woolense - Similar Color Products for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 55.45 ▲0.16 |
Dashboard /wp-admin | 3.41 ▲0.00 | 34.25 ▼21.31 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 42.21 ▼8.01 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 90.35 ▼1,218.41 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 25.61 ▲1.25 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Woolense - Similar Color Products for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,808 ▲62 | 16.01 ▲1.32 | 5.74 ▼1.37 | 2.98 ▲0.88 |
Dashboard /wp-admin | 2,902 ▲45 | 6.09 ▲0.01 | 132.52 ▲0.77 | 174.17 ▲7.06 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.13 | 63.81 ▼29.12 | 143.19 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,661 ▼35 | 16.15 ▼5.65 | 401.91 ▼78.27 | 214.96 ▲56.20 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.52 ▲0.01 | 170.30 ▲31.12 | 247.45 ▲48.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woolense/public/partials/woolense-public-display.php
- > /wp-content/plugins/woolense/admin/partials/woolense-admin-display.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'ColorThief\\Image\\Adapter\\ImageAdapter' not found in wp-content/plugins/woolense/admin/vendor/ksubileau/color-thief-php/lib/ColorThief/Image/Adapter/ImagickImageAdapter.php:7
- > PHP Fatal error
Uncaught Error: Class 'ColorThief\\Image\\Adapter\\ImageAdapter' not found in wp-content/plugins/woolense/admin/vendor/ksubileau/color-thief-php/lib/ColorThief/Image/Adapter/GDImageAdapter.php:5
- > PHP Fatal error
Uncaught Error: Interface 'ColorThief\\Image\\Adapter\\IImageAdapter' not found in wp-content/plugins/woolense/admin/vendor/ksubileau/color-thief-php/lib/ColorThief/Image/Adapter/ImageAdapter.php:8
- > PHP Fatal error
Uncaught Error: Class 'ColorThief\\Image\\Adapter\\ImageAdapter' not found in wp-content/plugins/woolense/admin/vendor/ksubileau/color-thief-php/lib/ColorThief/Image/Adapter/GmagickImageAdapter.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: Please describe screenshot #2 in woolense/assets to your readme.txt
woolense/woolense.php 92% from 13 tests
The main PHP script in "Woolense - Similar Color Products for WooCommerce" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.2")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin2,229 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 460 | 1,134 | 1,688 |
CSS | 3 | 75 | 25 | 379 |
JSON | 3 | 5 | 0 | 93 |
JavaScript | 2 | 27 | 61 | 69 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 18 | 12.16% |
▷ Public methods | 133 | 89.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 10.14% |
Functions | 12 | |
▷ Named functions | 6 | 50.00% |
▷ Anonymous functions | 6 | 50.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 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
PNG images were not found in this plugin