73% grouped-variations-table

Code Review | Grouped Variations Table

WordPress plugin Grouped Variations Table scored73%from 54 tests.

About plugin

  • Plugin page: grouped-variation...
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Apr 5, 2018
  • Latest release: May 11, 2019
  • Number of updates: 30
  • Update frequency: every 13.4 days
  • Top authors: mnording10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /871 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼8.37ms] Passed 4 tests

An overview of server-side resources used by Grouped Variations Table
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.77 ▼2.38
Dashboard /wp-admin3.20 ▼0.1046.33 ▼3.42
Posts /wp-admin/edit.php3.27 ▼0.0936.92 ▼12.04
Add New Post /wp-admin/post-new.php5.44 ▼0.4478.01 ▼15.65
Media Library /wp-admin/upload.php3.21 ▼0.0231.56 ▼2.09
Grouped Variations Table /wp-admin/options-general.php?page=grouped-variations-table3.1827.86

Server storage [IO: ▲0.02MB] [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: 13 new files
Database: no new tables, 10 new options
New WordPress options
groupedvartable_option_mainwidth
widget_recent-comments
widget_theysaidso_widget
recovery_mode_email_last_sent
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
groupedvartable_option_buttonsenabled
db_upgraded
groupedvartable_option_mainsorter

Browser metrics Passed 4 tests

Grouped Variations Table: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,486 ▼1,30012.39 ▼1.962.16 ▲0.0242.59 ▼2.80
Dashboard /wp-admin854 ▼1,3171.36 ▼4.2414.10 ▼76.9820.18 ▼21.95
Posts /wp-admin/edit.php865 ▼1,2351.51 ▼0.596.70 ▼30.0022.64 ▼10.22
Add New Post /wp-admin/post-new.php590 ▼9361.71 ▼21.1818.29 ▼666.208.52 ▼53.02
Media Library /wp-admin/upload.php750 ▼6531.71 ▼2.4420.79 ▼85.4919.55 ▼27.38
Grouped Variations Table /wp-admin/options-general.php?page=grouped-variations-table6851.517.6716.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_theysaidso_widget
    • groupedvartable_option_mainsorter
    • groupedvartable_option_mainwidth
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • groupedvartable_option_buttonsenabled
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=grouped-variations-table
    • > Error in wp-content/plugins/grouped-variations-table/grouped-variations-table-settings.php+27
    Uncaught Error: Call to undefined function wc_get_attribute_taxonomies() in wp-content/plugins/grouped-variations-table/grouped-variations-table-settings.php:27
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): groupedvartable_error_notice()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin-header.php(303): do_action()
    #4 wp-admin/admin.php(239): require_once('/var/www/wordpr...')
    #5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #6 {main}
    thrown

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/grouped-variations-table/grouped-variations-table.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/grouped-variations-table/grouped-variations-table-settings.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

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

The main PHP script in "Grouped Variations Table" version 1.5.0 is automatically included on every request by WordPress
68 characters long description:
Allowing you to group variations in sleak tables on the product page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected370 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34932244
PO File2293889
CSS13037

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected