90% wpc-variations-table

Code Review | WPC Variations Table for WooCommerce

WordPress plugin WPC Variations Table for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-variations-table
  • Plugin version: 3.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 3, 2021
  • Latest release: Oct 9, 2023
  • Number of updates: 47
  • Update frequency: every 20.8 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /7,318 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.54ms] Passed 4 tests

Analyzing server-side resources used by WPC Variations Table for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.20 ▼6.49
Dashboard /wp-admin3.33 ▲0.0243.95 ▼3.07
Posts /wp-admin/edit.php3.44 ▲0.0848.50 ▲5.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.25 ▼2.41
Media Library /wp-admin/upload.php3.25 ▲0.0233.85 ▲1.81
About /wp-admin/admin.php?page=wpclever3.2127.62
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.5629.44

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPC Variations Table for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13114.37 ▼0.061.64 ▼0.1242.49 ▼1.39
Dashboard /wp-admin2,286 ▲1014.89 ▲0.03111.38 ▼3.3581.08 ▲38.87
Posts /wp-admin/edit.php2,172 ▲802.03 ▲0.0237.01 ▲0.2933.47 ▲0.70
Add New Post /wp-admin/post-new.php1,607 ▲8718.01 ▼5.09737.21 ▲61.6367.48 ▲10.78
Media Library /wp-admin/upload.php1,468 ▲864.20 ▼0.02103.92 ▲6.0646.39 ▲2.65
About /wp-admin/admin.php?page=wpclever1,3962.1632.9637.29
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7242.1733.8354.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

wpc-variations-table/wpc-variations-table.php Passed 13 tests

The entry point to "WPC Variations Table for WooCommerce" version 3.5.6 is a PHP file that has certain tags in its header comment area
74 characters long description:
WPC Variations Table will replace dropdown selects with a beautiful table.

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 plugin2,056 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP5204421,298
CSS41088561
JavaScript3292168
SVG10029

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity43.50
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods45
▷ Static methods36.67%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin