90% woo-variations-table

Code Review | Woo Variations Table

WordPress plugin Woo Variations Table scored 90% from 54 tests.

About plugin

  • Plugin page: woo-variations-table
  • Plugin version: 2.2.16
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.9.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Mar 23, 2022
  • Number of updates: 137
  • Update frequency: every 14.4 days
  • Top authors: Alaa Rihan (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active / 45,911 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.65ms] Passed 4 tests

Server-side resources used by Woo Variations Table
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0722.05 ▼27.12
Dashboard /wp-admin3.32 ▲0.0245.23 ▼0.31
Posts /wp-admin/edit.php3.37 ▲0.0253.82 ▲7.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.54 ▼0.83
Media Library /wp-admin/upload.php3.24 ▲0.0234.73 ▲1.65
Woo Variations Table /wp-admin/admin.php?page=woo_variations_table3.2132.99

Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Variations Table
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,478 ▼26813.16 ▼1.420.52 ▼1.2817.66 ▼26.86
Dashboard /wp-admin2,219 ▲284.86 ▲0.00112.60 ▲1.1441.60 ▼0.20
Posts /wp-admin/edit.php2,108 ▲192.20 ▲0.1640.43 ▲5.5935.18 ▲4.64
Add New Post /wp-admin/post-new.php1,527 ▼1517.80 ▼0.40626.93 ▲8.7967.59 ▲10.90
Media Library /wp-admin/upload.php1,395 ▲44.28 ▲0.0797.39 ▼5.9644.13 ▼0.93
Woo Variations Table /wp-admin/admin.php?page=woo_variations_table1,1422.2536.4932.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • 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 Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: variations table, woocommerce variable, variable product, table, variations...

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

This is the main PHP file of "Woo Variations Table" version 2.2.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Show a table of all the available variations of a variable product to make it easier for users to find the variation they are searching for.

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
No dangerous file extensions were detected3,935 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JSON2001,887
JavaScript62715691
Svelte5260558
PHP12728313
CSS3270237
PO File26366175
Markdown137056
HTML11018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ui/public/favicon.png3.05KB1.47KB▼ 51.87%