Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.51ms] Passed 4 tests
An overview of server-side resources used by Wash Care Symbols for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 43.55 ▲3.41 |
Dashboard /wp-admin | 3.50 ▲0.20 | 56.87 ▲5.56 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 52.23 ▲1.13 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 100.80 ▼17.41 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 41.44 ▲2.82 |
Wash Care Symbols for WooCommerce /wp-admin/options-general.php?page=wash-care-symbols-for-woocommerce | 3.39 | 37.22 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Wash Care Symbols for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.16 ▼1.59 | 1.98 ▼0.51 | 45.69 ▲4.99 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.05 | 131.68 ▲16.82 | 41.47 ▲1.84 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▲0.02 | 37.85 ▼5.38 | 31.82 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.26 ▲2.35 | 653.44 ▼33.75 | 47.33 ▼9.33 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▲0.07 | 108.60 ▼1.89 | 42.37 ▼6.09 |
Wash Care Symbols for WooCommerce /wp-admin/options-general.php?page=wash-care-symbols-for-woocommerce | 840 | 2.04 | 28.91 | 25.15 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wash-care-symbols-for-woocommerce/templates/below-short-desc.php
- > /wp-content/plugins/wash-care-symbols-for-woocommerce/templates/vertical.php
- > /wp-content/plugins/wash-care-symbols-for-woocommerce/templates/horizontal.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/horizontal.php on line 10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/vertical.php on line 11
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/vertical.php on line 18
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/below-short-desc.php on line 11
- > PHP Notice
Undefined variable: layout in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/horizontal.php on line 8
- > PHP Notice
Undefined variable: product_values in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/below-short-desc.php on line 11
- > PHP Notice
Undefined variable: product_values in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/horizontal.php on line 10
- > PHP Notice
Undefined variable: layout in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/minimal.php on line 8
- > PHP Notice
Undefined variable: product_values in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/vertical.php on line 18
- > PHP Notice
Undefined variable: product_values in wp-content/plugins/wash-care-symbols-for-woocommerce/templates/vertical.php on line 11
- > PHP Warning
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: wash, clothes, woocommerce, symbols, care
wash-care-symbols-for-woocommerce/wash-care-symbols-for-woocommerce.php Passed 13 tests
"Wash Care Symbols for WooCommerce" version 4.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
Display wash/care symbols in WooCommerce products
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
There were no executable files found in this plugin5,567 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,193 | 336 | 4,625 |
PHP | 9 | 85 | 116 | 733 |
CSS | 2 | 53 | 41 | 195 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 22 | 61.11% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
84 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
symbols/drying_13.png | 1.12KB | 0.72KB | ▼ 36.12% |
symbols/dry_cleaning_9.png | 1.16KB | 0.70KB | ▼ 39.77% |
symbols/wash_25.png | 1.63KB | 1.00KB | ▼ 38.75% |
symbols/wash_3.png | 1.01KB | 0.63KB | ▼ 37.63% |
symbols/wash_2.png | 1.07KB | 0.64KB | ▼ 40.15% |