78% free-product-table-for-woocommerce

Code Review | Free Woocommerce Product Table View - Woo Table Pro

WordPress plugin Free Woocommerce Product Table View - Woo Table Pro scored78%from 54 tests.

About plugin

  • Plugin page: free-product-tabl...
  • Plugin version: 1.78
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Jan 11, 2019
  • Latest release: Jan 22, 2021
  • Number of updates: 31
  • Update frequency: every 24.0 days
  • Top authors: bc2018 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /14,200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼3.80ms] Passed 4 tests

A check of server-side resources used by Free Woocommerce Product Table View - Woo Table Pro
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2341.35 ▲3.66
Dashboard /wp-admin3.53 ▲0.1949.04 ▼9.23
Posts /wp-admin/edit.php3.64 ▲0.2946.98 ▲3.31
Add New Post /wp-admin/post-new.php6.13 ▲0.2584.22 ▼9.77
Media Library /wp-admin/upload.php3.45 ▲0.2335.95 ▲0.51
Woo Table Pro /wp-admin/admin.php?page=pfw_slug-pfw_tables3.5236.30
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu3.4229.40

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Free Woocommerce Product Table View - Woo Table Pro
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲22515.78 ▲1.2126.71 ▲25.0945.34 ▲5.50
Dashboard /wp-admin2,227 ▲565.59 ▲0.0593.55 ▲4.7842.62 ▲0.53
Posts /wp-admin/edit.php2,132 ▲322.00 ▲0.0432.14 ▼5.6034.44 ▼1.42
Add New Post /wp-admin/post-new.php1,563 ▲2717.89 ▼0.41613.03 ▼18.9055.13 ▼21.99
Media Library /wp-admin/upload.php1,435 ▲324.25 ▼0.0195.86 ▼3.4840.25 ▼4.61
Woo Table Pro /wp-admin/admin.php?page=pfw_slug-pfw_tables1,3683.4171.5267.03
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu7881.9923.7624.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/free-product-table-for-woocommerce/ui/main-ui.php:22
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/free-product-table-for-woocommerce/inc/PFW_Product.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BinaryCarpenter\\PFW\\add_shortcode() in wp-content/plugins/free-product-table-for-woocommerce/inc/shortcodes.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-product-table-for-woocommerce/ui/manage-tables.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/free-product-table-for-woocommerce/inc/PFW_Product.php on line 14
    • > PHP Warning
      Use of undefined constant PFW_IS_PRO - assumed 'PFW_IS_PRO' (this will throw an Error in a future version of PHP) in wp-content/plugins/free-product-table-for-woocommerce/ui/main-ui.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BinaryCarpenter\\PFW\\add_shortcode() in wp-content/plugins/free-product-table-for-woocommerce/inc/shortcodes.php:13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/free-product-table-for-woocommerce/inc/PFW_Product.php on line 14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=pfw_slug-pfw_tables
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=pfw_slug-pfw_tables 364:3 Uncaught SyntaxError: Unexpected token '

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: product table, woocommerce product table, products table, woocommerce

free-product-table-for-woocommerce/index.php 92% from 13 tests

This is the main PHP file of "Free Woocommerce Product Table View - Woo Table Pro" version 1.78, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("free-product-table-for-woocommerce.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin7,090 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47498373,120
SVG3202,702
PHP153821731,174
HTML121077
Sass20010
Markdown1005
CSS20142

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.22
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods58
▷ Static methods1322.41%
▷ Public methods5696.55%
▷ Protected methods00.00%
▷ Private methods23.45%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants00.00%
▷ Class constants15100.00%
▷ Public constants15100.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
12 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bundle/images/sort_both.png0.20KB0.29KB0.00%
bundle/images/csv.png1.48KB1.57KB0.00%
bundle/images/presets/preset-placeholder.png17.10KB1.62KB▼ 90.52%
bundle/images/check-icon.png1.41KB1.36KB▼ 4.07%
bundle/css/images/prev_button.png17.01KB1.70KB▼ 90.00%