79% wash-care-symbols-for-woocommerce

Code Review | Wash Care Symbols for WooCommerce

WordPress plugin Wash Care Symbols for WooCommerce scored79%from 54 tests.

About plugin

  • Plugin page: wash-care-symbols...
  • Plugin version: 4.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2020
  • Latest release: Apr 1, 2023
  • Number of updates: 21
  • Update frequency: every 40.7 days
  • Top authors: charlieetienne (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /3,210 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2043.55 ▲3.41
Dashboard /wp-admin3.50 ▲0.2056.87 ▲5.56
Posts /wp-admin/edit.php3.61 ▲0.2652.23 ▲1.13
Add New Post /wp-admin/post-new.php6.08 ▲0.20100.80 ▼17.41
Media Library /wp-admin/upload.php3.42 ▲0.2041.44 ▲2.82
Wash Care Symbols for WooCommerce /wp-admin/options-general.php?page=wash-care-symbols-for-woocommerce3.3937.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.16 ▼1.591.98 ▼0.5145.69 ▲4.99
Dashboard /wp-admin2,210 ▲194.85 ▼0.05131.68 ▲16.8241.47 ▲1.84
Posts /wp-admin/edit.php2,093 ▲11.99 ▲0.0237.85 ▼5.3831.82 ▼0.94
Add New Post /wp-admin/post-new.php1,536 ▲223.26 ▲2.35653.44 ▼33.7547.33 ▼9.33
Media Library /wp-admin/upload.php1,392 ▲44.19 ▲0.07108.60 ▼1.8942.37 ▼6.09
Wash Care Symbols for WooCommerce /wp-admin/options-general.php?page=wash-care-symbols-for-woocommerce8402.0428.9125.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,1933364,625
PHP985116733
CSS25341195
XML10014

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 code0.45
Average class complexity14.60
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods2261.11%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
symbols/drying_13.png1.12KB0.72KB▼ 36.12%
symbols/dry_cleaning_9.png1.16KB0.70KB▼ 39.77%
symbols/wash_25.png1.63KB1.00KB▼ 38.75%
symbols/wash_3.png1.01KB0.63KB▼ 37.63%
symbols/wash_2.png1.07KB0.64KB▼ 40.15%