90% wpc-grouped-product

Code Review | WPC Grouped Product for WooCommerce

WordPress plugin WPC Grouped Product for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-grouped-product
  • Plugin version: 4.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 7, 2019
  • Latest release: Nov 15, 2023
  • Number of updates: 110
  • Update frequency: every 14.7 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

4,000+ active /141,230 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.19ms] Passed 4 tests

Analyzing server-side resources used by WPC Grouped Product for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.50 ▼0.17
Dashboard /wp-admin3.39 ▲0.0447.82 ▼11.31
Posts /wp-admin/edit.php3.50 ▲0.1444.92 ▲1.02
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.12 ▼17.46
Media Library /wp-admin/upload.php3.31 ▲0.0835.05 ▲0.18
About /wp-admin/admin.php?page=wpclever3.2831.27
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.4931.93

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WPC Grouped Product for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲9514.33 ▲0.071.68 ▼0.1943.75 ▼2.05
Dashboard /wp-admin2,257 ▲795.60 ▼0.1088.42 ▼26.1285.25 ▲39.00
Posts /wp-admin/edit.php2,181 ▲811.98 ▼0.0338.15 ▲2.8834.97 ▼1.74
Add New Post /wp-admin/post-new.php1,754 ▲21822.50 ▼0.67743.56 ▲91.0555.06 ▲5.28
Media Library /wp-admin/upload.php1,471 ▲714.16 ▼0.0599.06 ▲4.0186.08 ▲44.63
About /wp-admin/admin.php?page=wpclever1,4082.2732.3736.34
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7322.1634.7063.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: Please take inspiration from this readme.txt

wpc-grouped-product/wpc-grouped-product.php Passed 13 tests

The main PHP file in "WPC Grouped Product for WooCommerce" ver. 4.2.7 adds more information about the plugin and also serves as the entry point for this plugin
88 characters long description:
WPC Grouped Product helps you made up standalone products that are presented as a group.

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
There were no executable files found in this plugin4,714 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP7359582,151
CSS53391501,598
JavaScript416459731
PO File179105205
SVG10029

PHP code Passed 2 tests

Analyzing 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.41
Average class complexity66.60
▷ Minimum class complexity1.00
▷ Maximum class complexity256.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods74
▷ Static methods22.70%
▷ Public methods74100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin