90% wpc-linked-variation

Code Review | WPC Linked Variation for WooCommerce

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

About plugin

  • Plugin page: wpc-linked-variation
  • Plugin version: 4.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 15, 2021
  • Latest release: Oct 23, 2023
  • Number of updates: 54
  • Update frequency: every 17.1 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /21,517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼2.97ms] Passed 4 tests

This is a short check of server-side resources used by WPC Linked Variation for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3243.20 ▲4.03
Dashboard /wp-admin3.62 ▲0.3247.03 ▼8.44
Posts /wp-admin/edit.php3.73 ▲0.3849.09 ▼0.43
Add New Post /wp-admin/post-new.php6.22 ▲0.3383.21 ▼5.91
Media Library /wp-admin/upload.php3.54 ▲0.3136.50 ▲2.89
About /wp-admin/admin.php?page=wpclever3.5132.13
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.5132.21

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WPC Linked Variation for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13014.48 ▲0.202.12 ▲0.6044.34 ▲1.12
Dashboard /wp-admin2,260 ▲835.60 ▼0.0484.52 ▼27.0370.27 ▲24.44
Posts /wp-admin/edit.php2,178 ▲782.01 ▲0.0636.59 ▲3.2432.53 ▼6.34
Add New Post /wp-admin/post-new.php1,596 ▲6823.72 ▲0.59626.05 ▼90.70136.96 ▲82.46
Media Library /wp-admin/upload.php1,474 ▲744.12 ▼0.0994.40 ▼5.9472.89 ▲27.04
About /wp-admin/admin.php?page=wpclever1,4052.1429.7534.21
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7352.1332.0559.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woo, woocommerce, wpc, variations, linked

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

"WPC Linked Variation for WooCommerce" version 4.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
WPC Linked Variation built to link separate products together by attributes.

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 plugin2,990 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP5240371,561
CSS52501471,177
JavaScript63110223
SVG10029

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity75.00
▷ Minimum class complexity1.00
▷ Maximum class complexity252.00
Average method complexity5.95
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods45
▷ Static methods920.00%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin