87% variation-table-for-woocommerce

Code Review | Variation Table For Woocommerce

WordPress plugin Variation Table For Woocommerce scored 87% from 54 tests.

About plugin

  • Plugin page: variation-table-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Feb 16, 2021
  • Latest release: Oct 28, 2021
  • Number of updates: 12
  • Update frequency: every 21.3 days
  • Top authors: vp956009 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 222 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.21MB] [CPU: ▼140.60ms] 75% from 4 tests

An overview of server-side resources used by Variation Table For Woocommerce
Please have a look at the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 7,627.95ms on /wp-admin/admin.php?page=woo_pv_kit)
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.3138.79 ▲19.78
Dashboard /wp-admin3.26 ▲0.2048.88 ▲5.18
Posts /wp-admin/edit.php3.37 ▲0.2643.61 ▼2.14
Add New Post /wp-admin/post-new.php5.62 ▲0.1893.86 ▼561.85
Media Library /wp-admin/upload.php3.20 ▲0.1937.27 ▼3.58
Woo Variations Table /wp-admin/admin.php?page=woopv3.1730.91
Essential Kit /wp-admin/admin.php?page=woo_pv_kit3.397,627.95

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Variation Table For Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲18716.32 ▲0.6512.48 ▲2.2146.94 ▼9.86
Dashboard /wp-admin3,036 ▲1056.64 ▲0.69145.16 ▲1.09115.73 ▲4.11
Posts /wp-admin/edit.php2,811 ▲722.85 ▼0.0067.91 ▲1.98109.19 ▲19.28
Add New Post /wp-admin/post-new.php1,665 ▼1821.73 ▲3.25271.65 ▼95.69135.49 ▲31.42
Media Library /wp-admin/upload.php1,879 ▲725.46 ▲0.44132.87 ▼54.47119.07 ▼28.91
Woo Variations Table /wp-admin/admin.php?page=woopv2,2573.5098.12131.97
Essential Kit /wp-admin/admin.php?page=woo_pv_kit2,5082.6655.53106.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/variation-table-for-woocommerce/variable-table-for-woocommerce.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woopv
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woopv
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woopv
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
    wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woopv
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
    wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: You can take inspiration from this readme.txt

variation-table-for-woocommerce/variable-table-for-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Variation Table For Woocommerce" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("variation-table-for-woocommerce.php" instead of "variable-table-for-woocommerce.php")

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
Everything looks great! No dangerous files found in this plugin1,998 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP6263181,145
JavaScript574181565
CSS51313286
SVG2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity23.17
▷ Minimum class complexity3.00
▷ Maximum class complexity75.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods35
▷ Static methods514.29%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
9 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/images/review.png15.87KB11.90KB▼ 25.01%
include/images/star.png39.75KB10.35KB▼ 73.95%
include/images/sort_desc.png0.15KB0.25KB0.00%
include/images/sort_asc_disabled.png0.14KB0.25KB0.00%
include/images/right-arrow.png0.16KB0.19KB0.00%