83% product-table-for-group-products

Code Review | Product Table For Group Products

WordPress plugin Product Table For Group Products scored83%from 54 tests.

About plugin

  • Plugin page: product-table-for...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Nov 16, 2023
  • Number of updates: 11
  • Update frequency: every 37.1 days
  • Top authors: fazlebari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /482 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.20ms] Passed 4 tests

A check of server-side resources used by Product Table For Group Products
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1037.34 ▼1.22
Dashboard /wp-admin3.43 ▲0.1243.66 ▼4.25
Posts /wp-admin/edit.php3.54 ▲0.1847.87 ▲0.35
Add New Post /wp-admin/post-new.php6.03 ▲0.1485.91 ▼7.56
Media Library /wp-admin/upload.php3.35 ▲0.1233.40 ▲0.23

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
group_ptable_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
group_ptable_installed
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product Table For Group Products
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14613.41 ▼0.948.06 ▲6.3539.81 ▼6.38
Dashboard /wp-admin2,208 ▲345.65 ▼0.0187.42 ▼5.4841.56 ▼2.27
Posts /wp-admin/edit.php2,113 ▲132.01 ▼0.0842.45 ▼1.1939.66 ▲3.37
Add New Post /wp-admin/post-new.php1,536 ▲1022.86 ▼0.35691.12 ▲9.3854.87 ▼2.07
Media Library /wp-admin/upload.php1,404 ▲74.24 ▲0.0196.50 ▼1.0743.06 ▼1.77

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • group_ptable_version
    • group_ptable_installed
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/product-table-for-group-products/product-table-for-group-products.php

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: tabel, product-table, woocommerce-group-product-tabel, woocommerce, product-table-for-group-product...

product-table-for-group-products/product-table-for-group-products.php 77% from 13 tests

The primary PHP file in "Product Table For Group Products" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.3" instead of "7.2")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin796 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP16173268749
JavaScript24522
JSON12019
CSS1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.82
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods48
▷ Static methods510.42%
▷ Public methods4695.83%
▷ Protected methods00.00%
▷ Private methods24.17%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.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
No PNG files were detected