90% wpc-attribute-groups

Code Review | WPC Smart Attribute Groups for WooCommerce

WordPress plugin WPC Smart Attribute Groups for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-attribute-groups
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 14, 2023
  • Latest release: Nov 21, 2023
  • Number of updates: 5
  • Update frequency: every 13.8 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WPC Smart Attribute Groups for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.38 ▼4.60
Dashboard /wp-admin3.39 ▲0.0446.55 ▼18.07
Posts /wp-admin/edit.php3.50 ▲0.1548.17 ▼3.27
Add New Post /wp-admin/post-new.php5.99 ▲0.1093.34 ▼10.54
Media Library /wp-admin/upload.php3.31 ▲0.0836.44 ▲5.29
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2830.22
About /wp-admin/admin.php?page=wpclever3.2835.23

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WPC Smart Attribute Groups for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12014.22 ▲0.301.56 ▼0.0037.41 ▼2.38
Dashboard /wp-admin2,260 ▲825.62 ▼0.1393.09 ▼20.3580.38 ▲33.25
Posts /wp-admin/edit.php2,185 ▲821.98 ▲0.0337.06 ▼6.4334.51 ▼1.22
Add New Post /wp-admin/post-new.php1,596 ▲6923.53 ▲0.38685.54 ▲87.0161.00 ▲7.49
Media Library /wp-admin/upload.php1,477 ▲774.09 ▼0.1297.80 ▲1.7778.11 ▲35.71
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7412.1335.2262.37
About /wp-admin/admin.php?page=wpclever1,3992.2333.9634.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

wpc-attribute-groups/wpc-attribute-groups.php Passed 13 tests

The principal PHP file in "WPC Smart Attribute Groups for WooCommerce" v. 1.0.3 is loaded by WordPress automatically on each request
101 characters long description:
WPC Smart Attribute Groups give you the possibility to display product attributes in separate groups.

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
Success! There were no dangerous files found in this plugin2,437 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP8192351,219
CSS5215148959
JavaScript3334178
Sass29052
SVG10029

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity23.00
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods48
▷ Static methods714.58%
▷ Public methods48100.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
There were not PNG files found in your plugin