90% wpc-variation-swatches

Code Review | WPC Variation Swatches for WooCommerce

WordPress plugin WPC Variation Swatches for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-variation-swa...
  • Plugin version: 4.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 24, 2021
  • Latest release: Nov 16, 2023
  • Number of updates: 56
  • Update frequency: every 17.8 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /33,467 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.33MB] [CPU: ▼3.02ms] Passed 4 tests

Server-side resources used by WPC Variation Swatches for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3240.53 ▲0.88
Dashboard /wp-admin3.63 ▲0.3245.20 ▼3.99
Posts /wp-admin/edit.php3.74 ▲0.3848.63 ▲2.39
Add New Post /wp-admin/post-new.php6.23 ▲0.3481.89 ▼11.34
Media Library /wp-admin/upload.php3.55 ▲0.3238.46 ▲6.79
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.5236.00
About /wp-admin/admin.php?page=wpclever3.5232.59

Server storage [IO: ▲0.42MB] [DB: ▲0.02MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WPC Variation Swatches for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲10514.32 ▲0.041.73 ▼0.0040.18 ▲0.03
Dashboard /wp-admin2,257 ▲865.53 ▼0.0597.22 ▼0.8383.01 ▲38.71
Posts /wp-admin/edit.php2,185 ▲851.98 ▲0.0239.74 ▼1.5035.48 ▼6.11
Add New Post /wp-admin/post-new.php1,753 ▲21621.81 ▼1.35745.23 ▲83.2151.13 ▼11.74
Media Library /wp-admin/upload.php1,474 ▲774.15 ▼0.08113.10 ▲12.2545.61 ▲1.42
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7392.1335.6160.56
About /wp-admin/admin.php?page=wpclever1,3962.1434.3834.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

wpc-variation-swatches/wpc-variation-swatches.php Passed 13 tests

Analyzing the main PHP file in "WPC Variation Swatches for WooCommerce" version 4.0.0
42 characters long description:
WooCommerce Variation Swatches by WPClever

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,190 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP6230661,513
CSS52521521,146
JavaScript611133502
SVG10029

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity58.75
▷ Minimum class complexity1.00
▷ Maximum class complexity187.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods47
▷ Static methods48.51%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected