67% profit-products-tables-for-woocommerce

Code Review | Active Products Tables for WooCommerce. Professional products tables for WooCommerce store 

WordPress plugin Active Products Tables for WooCommerce. Professional products tables for WooCommerce store  scored67%from 54 tests.

About plugin

  • Plugin page: profit-products-t...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Sep 4, 2020
  • Latest release: Sep 18, 2023
  • Number of updates: 131
  • Update frequency: every 8.5 days
  • Top authors: RealMag777 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /42,638 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.73MB] [CPU: ▲7.85ms] Passed 4 tests

An overview of server-side resources used by Active Products Tables for WooCommerce. Professional products tables for WooCommerce store 
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.13 ▲1.6750.34 ▲13.07
Dashboard /wp-admin5.05 ▲1.7555.58 ▲9.39
Posts /wp-admin/edit.php5.10 ▲1.7460.58 ▲11.88
Add New Post /wp-admin/post-new.php7.63 ▲1.7493.27 ▼1.56
Media Library /wp-admin/upload.php4.97 ▲1.7444.64 ▲11.68

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 135 new files
Database: 4 new tables, 7 new options
New tables
wp_woot_tables
wp_woot_vocabulary
wp_woot_tables_columns
wp_woot_tables_meta
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
woot_db_ver

Browser metrics Passed 4 tests

This is an overview of browser requirements for Active Products Tables for WooCommerce. Professional products tables for WooCommerce store 
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.58 ▼1.001.92 ▲0.3838.08 ▼1.89
Dashboard /wp-admin2,214 ▲264.84 ▼1.2295.83 ▼11.3138.18 ▼7.12
Posts /wp-admin/edit.php2,100 ▲112.05 ▲0.0634.09 ▼6.3933.41 ▼1.09
Add New Post /wp-admin/post-new.php1,542 ▲918.32 ▼5.00651.02 ▼38.0151.98 ▼2.47
Media Library /wp-admin/upload.php1,402 ▲144.18 ▼0.0393.13 ▼21.0442.23 ▼3.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_woot_tables_columns
    • wp_woot_tables
    • wp_woot_tables_meta
    • wp_woot_vocabulary
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • woot_db_ver
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 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
Please fix the following
  • 9× PHP files output text when accessed directly:
    • > /wp-content/plugins/profit-products-tables-for-woocommerce/views/table.php
    • > /wp-content/plugins/profit-products-tables-for-woocommerce/profiles/woocommerce/views/woot_cart.php
    • > /wp-content/plugins/profit-products-tables-for-woocommerce/install.php
    • > /wp-content/plugins/profit-products-tables-for-woocommerce/lib/storage.php
    • > /wp-content/plugins/profit-products-tables-for-woocommerce/profiles/woocommerce/views/reviews.php
    • > /wp-content/plugins/profit-products-tables-for-woocommerce/views/options.php
    • > /wp-content/plugins/profit-products-tables-for-woocommerce/views/set.php
    • > /wp-content/plugins/profit-products-tables-for-woocommerce/views/gallery.php
    • > /wp-content/plugins/profit-products-tables-for-woocommerce/views/popup.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/profit-products-tables-for-woocommerce/views/blank-template.php:10

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #3, #30, #31, #32, #33, #34, #35, #36, #37, #38, #39, #4, #40, #41, #5, #6, #7, #8, #9 in profit-products-tables-for-woocommerce/assets to your readme.txt
You can take inspiration from this readme.txt

profit-products-tables-for-woocommerce/index.php 77% from 13 tests

The main PHP file in "Active Products Tables for WooCommerce. Professional products tables for WooCommerce store " ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 219 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("profit-products-tables-for-woocommerce.php" instead of "index.php")
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 4.9")

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
There were no executable files found in this plugin26,408 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
CSS331,7111559,811
PHP402,0681,9608,514
JavaScript261,4934495,025
SVG61511,988
PO File14214471,070

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity44.81
▷ Minimum class complexity7.00
▷ Maximum class complexity326.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes13.85%
▷ Concrete classes2596.15%
▷ Final classes1144.00%
Methods214
▷ Static methods2210.28%
▷ Public methods18787.38%
▷ Protected methods00.00%
▷ Private methods2712.62%
Functions195
▷ Named functions31.54%
▷ Anonymous functions19298.46%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 compressed PNG files occupy 0.76MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/banners/woot-banner.png60.93KB61.24KB0.00%
assets/img/banners/wpbe-banner.png38.71KB38.79KB0.00%
assets/img/banners/woobe-banner.png46.74KB46.76KB0.00%
assets/img/move.png1.70KB1.67KB▼ 2.01%
assets/img/download.png1.18KB0.59KB▼ 49.71%