78% responsive-table-for-woocommerce

Code Review | Responsive Table for Woocommerce

WordPress plugin Responsive Table for Woocommerce scored 78% from 54 tests.

About plugin

  • Plugin page: responsive-table-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2016
  • Latest release: Jan 14, 2017
  • Number of updates: 10
  • Update frequency: every 12.2 days
  • Top authors: dcurasi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 2,308 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.07MB] [CPU: ▼2.77ms] Passed 4 tests

Server-side resources used by Responsive Table for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.28 ▼0.41
Dashboard /wp-admin3.37 ▲0.0643.11 ▼6.92
Posts /wp-admin/edit.php3.48 ▲0.1345.91 ▲0.41
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.79 ▼4.14
Media Library /wp-admin/upload.php3.29 ▲0.0635.20 ▲2.72
Responsive Table /wp-admin/admin.php?page=dc-rtfw-menu-page3.2731.91

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
dc_rtfw_activate_wishlist
can_compress_scripts
dc_rtfw_activate
dc_rtfw_activate_cart
dc_rtfw_wishlist_page
db_upgraded

Browser metrics Passed 4 tests

Responsive Table for Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.40 ▼1.251.69 ▼0.1344.74 ▲0.71
Dashboard /wp-admin2,221 ▲334.85 ▼1.0599.09 ▼15.2139.69 ▼8.06
Posts /wp-admin/edit.php2,106 ▲172.04 ▲0.0142.15 ▲1.1636.20 ▼1.54
Add New Post /wp-admin/post-new.php1,532 ▲1322.98 ▼0.19645.83 ▼1.3860.55 ▲7.60
Media Library /wp-admin/upload.php1,403 ▲154.31 ▲0.0597.56 ▼0.2742.23 ▼2.41
Responsive Table /wp-admin/admin.php?page=dc-rtfw-menu-page8952.0626.7024.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/responsive-table-for-woocommerce/public/partials/dc-rtfw-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/responsive-table-for-woocommerce/admin/partials/dc-rtfw-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
The official readme.txt is a good inspiration

responsive-table-for-woocommerce/dc-rtfw.php 85% from 13 tests

"Responsive Table for Woocommerce" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("responsive-table-for-woocommerce.php" instead of "dc-rtfw.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin503 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP12123546302
CSS4203398
JavaScript468660
PO File1111143

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.43
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin