90% wpc-product-table

Code Review | WPC Product Table for WooCommerce

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

About plugin

  • Plugin page: wpc-product-table
  • Plugin version: 2.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 24, 2020
  • Latest release: Oct 23, 2023
  • Number of updates: 45
  • Update frequency: every 24.3 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /10,697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼2.45ms] Passed 4 tests

Analyzing server-side resources used by WPC Product Table for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2942.55 ▲5.01
Dashboard /wp-admin3.60 ▲0.2944.35 ▼2.82
Posts /wp-admin/edit.php3.71 ▲0.3546.39 ▼0.65
Add New Post /wp-admin/post-new.php6.20 ▲0.3179.34 ▼8.93
Media Library /wp-admin/upload.php3.52 ▲0.2937.19 ▲2.61
About /wp-admin/admin.php?page=wpclever3.4833.42
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.4829.97

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WPC Product Table for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲10514.42 ▲0.072.03 ▲0.2052.77 ▲14.46
Dashboard /wp-admin2,272 ▲985.57 ▲0.0480.05 ▼12.4985.51 ▲45.35
Posts /wp-admin/edit.php2,184 ▲842.00 ▲0.0437.39 ▲3.5235.29 ▼3.45
Add New Post /wp-admin/post-new.php1,600 ▲7423.13 ▲0.12787.24 ▲99.9160.14 ▲7.49
Media Library /wp-admin/upload.php1,474 ▲774.22 ▲0.01112.87 ▲5.9779.57 ▲31.48
About /wp-admin/admin.php?page=wpclever1,4082.1430.8435.10
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7322.1632.3157.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

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, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt might help

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

The principal PHP file in "WPC Product Table for WooCommerce" v. 2.2.8 is loaded by WordPress automatically on each request
74 characters long description:
WPC Product Table helps you show selected products as a table on the page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin17,504 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript183,31514,21213,214
CSS185781342,781
PHP5179261,480
SVG10029

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity49.50
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity5.41
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods44
▷ Static methods36.82%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/libs/datatables/DataTables-1.10.22/images/sort_desc_disabled.png0.14KB0.25KB0.00%
assets/libs/datatables/DataTables-1.10.22/images/sort_both.png0.20KB0.29KB0.00%
assets/libs/datatables/DataTables-1.10.22/images/sort_asc_disabled.png0.14KB0.25KB0.00%
assets/libs/datatables/DataTables-1.10.22/images/sort_asc.png0.16KB0.25KB0.00%
assets/libs/datatables/DataTables-1.10.22/images/sort_desc.png0.15KB0.25KB0.00%