100% ecommerce-table

Code Review | Product Table for WooCommerce

WordPress plugin Product Table for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: ecommerce-table
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.3-5.7
  • WordPress version: 5.8.1
  • First release: Feb 11, 2021
  • Latest release: Mar 13, 2021
  • Number of updates: 25
  • Update frequency: every 1.2 days
  • Top authors: mukkiee (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 228 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼146.68ms] Passed 4 tests

Server-side resources used by Product Table for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1228.81 ▲4.23
Dashboard /wp-admin3.06 ▲0.0047.51 ▼1.38
Posts /wp-admin/edit.php3.11 ▲0.0051.62 ▲2.94
Add New Post /wp-admin/post-new.php5.42 ▼0.0294.36 ▼585.03
Media Library /wp-admin/upload.php3.00 ▲0.0033.19 ▼3.26

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Product Table for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.81 ▲0.187.78 ▼1.2049.85 ▲1.66
Dashboard /wp-admin2,970 ▲365.95 ▲0.03141.94 ▼10.48118.82 ▲6.83
Posts /wp-admin/edit.php2,739 ▲32.70 ▲0.0169.74 ▲0.9992.59 ▼4.73
Add New Post /wp-admin/post-new.php1,683 ▼018.79 ▲0.08384.60 ▼6.78109.35 ▼7.79
Media Library /wp-admin/upload.php1,807 ▼04.99 ▼0.02149.31 ▼10.75126.98 ▲10.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: tabular product, e-commerce, woocommerce, ecommerce table, ecommerce...

ecommerce-table/init.php 92% from 13 tests

The primary PHP file in "Product Table for WooCommerce" version 1.2.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ecommerce-table.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,287 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP84532811,008
CSS280152
JavaScript2121127

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity43.00
▷ Minimum class complexity2.00
▷ Maximum class complexity103.00
Average method complexity8.30
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods23100.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin