78% just-tables

Code Review | JustTables – WooCommerce Product Table

WordPress plugin JustTables – WooCommerce Product Table scored78%from 54 tests.

About plugin

  • Plugin page: just-tables
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 6, 2021
  • Latest release: Oct 12, 2023
  • Number of updates: 36
  • Update frequency: every 27.2 days
  • Top authors: htplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /29,464 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: ▲1.74MB] [CPU: ▲4.87ms] Passed 4 tests

Analyzing server-side resources used by JustTables – WooCommerce Product Table
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.22 ▲1.7546.81 ▲1.48
Dashboard /wp-admin5.06 ▲1.7156.94 ▼1.75
Posts /wp-admin/edit.php5.11 ▲1.7562.57 ▲13.09
Add New Post /wp-admin/post-new.php7.64 ▲1.75108.77 ▲6.67
Media Library /wp-admin/upload.php4.98 ▲1.7556.18 ▲19.12
Recommendations /wp-admin/edit.php?post_type=jt-product-table&page=just-table-recommendations4.7535.95

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for JustTables – WooCommerce Product Table
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.28 ▼0.011.55 ▼0.3439.14 ▼5.53
Dashboard /wp-admin2,206 ▲265.61 ▼0.0994.60 ▲6.7343.52 ▲4.05
Posts /wp-admin/edit.php2,119 ▲192.17 ▲0.1840.03 ▲4.7036.46 ▼0.81
Add New Post /wp-admin/post-new.php1,547 ▲2117.98 ▼5.06637.26 ▼30.2569.50 ▲17.78
Media Library /wp-admin/upload.php1,419 ▲164.30 ▲0.14109.43 ▲13.5945.55 ▲1.11
Recommendations /wp-admin/edit.php?post_type=jt-product-table&page=just-table-recommendations280.420.083.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • just_tables_installed

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_height() on null in wp-content/plugins/just-tables/includes/Frontend/views/elements/height.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/just-tables/includes/Frontend/views/table.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/just-tables/includes/Frontend/views/config-options.php:66
    • > PHP Notice
      Undefined variable: product_min_purchase_quantity in wp-content/plugins/just-tables/includes/Frontend/views/elements/quantity.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_availability() on null in wp-content/plugins/just-tables/includes/Frontend/views/elements/stock.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_description() on null in wp-content/plugins/just-tables/includes/Frontend/views/elements/description.php:2
    • > PHP Notice
      Undefined variable: available_for_backorder_status_text in wp-content/plugins/just-tables/includes/Frontend/views/table.php on line 29
    • > PHP Notice
      Undefined variable: product in wp-content/plugins/just-tables/includes/Frontend/views/elements/width.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_short_description() on null in wp-content/plugins/just-tables/includes/Frontend/views/elements/short-description.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/just-tables/includes/Frontend/views/elements/id.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=jt-product-table&page=just-table-recommendations
    • > Network (severe)
    wp-admin/edit.php?post_type=jt-product-table&page=just-table-recommendations - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce product table, justtables, woocommerce table, product table, woocommerce

just-tables/just-tables.php Passed 13 tests

The principal PHP file in "JustTables – WooCommerce Product Table" v. 1.5.3 is loaded by WordPress automatically on each request
38 characters long description:
Display WooCommerce products as table.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin47,850 lines of code in 241 files:
LanguageFilesBlank linesComment linesLines of code
PHP1454,5383,01920,790
JavaScript121,5737777,690
CSS104726887,090
PO File203,1983,5916,500
Sass1697035,674
SVG360078
JSON20028

PHP code Passed 2 tests

A short 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.59
Average class complexity23.10
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity6.03
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes78
▷ Abstract classes22.56%
▷ Concrete classes7697.44%
▷ Final classes11.32%
Methods347
▷ Static methods6318.16%
▷ Public methods33496.25%
▷ Protected methods61.73%
▷ Private methods72.02%
Functions60
▷ Named functions5591.67%
▷ Anonymous functions58.33%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
28 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/extensions/whols-pro.png15.30KB7.40KB▼ 51.65%
(invalid) assets/images/extensions/was-this-helpful.png1.21KB0.00KB▼ 100.00%
assets/images/dataTables/sort_both.png0.27KB0.29KB0.00%
assets/images/extensions/woolentor-addons-pro.png3.20KB1.69KB▼ 47.09%
assets/images/select2/selector-icon.png0.15KB0.17KB0.00%