10% responsive-data-table

Code Review | Responsive Data Table

WordPress plugin Responsive Data Table scored10%from 54 tests.

About plugin

  • Plugin page: responsive-data-t...
  • Plugin version: 1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: May 31, 2019
  • Latest release: Jul 29, 2019
  • Number of updates: 8
  • Update frequency: every 7.8 days
  • Top authors: minervainfotech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /752 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/responsive-data-table/display-table.php+277
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.76ms] Passed 4 tests

A check of server-side resources used by Responsive Data Table
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.72 ▼1.76
Dashboard /wp-admin3.31 ▲0.0048.68 ▼6.94
Posts /wp-admin/edit.php3.36 ▲0.0049.16 ▼1.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.02 ▼16.42
Media Library /wp-admin/upload.php3.23 ▲0.0034.34 ▼9.92

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

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

Browser metrics Passed 4 tests

Responsive Data Table: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.35 ▼0.291.89 ▼0.0645.64 ▲1.62
Dashboard /wp-admin2,195 ▲185.55 ▼0.1284.55 ▼4.9238.60 ▼6.11
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0336.03 ▼2.3333.66 ▼1.02
Add New Post /wp-admin/post-new.php1,555 ▲2218.26 ▼4.80621.02 ▼61.6062.70 ▲15.17
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.09100.57 ▼7.3545.40 ▼0.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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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

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
The following issues need your attention
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/responsive-data-table/admin/add_table.php
    • > /wp-content/plugins/responsive-data-table/admin/manage_tables.php
    • > /wp-content/plugins/responsive-data-table/admin/manage_table_data.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/responsive-data-table/functions/database-function.php on line 9
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/responsive-data-table/functions/database-function.php on line 10
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/responsive-data-table/functions/database-function.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/responsive-data-table/mc-main.php:17
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/responsive-data-table/display-table.php on line 277

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Desktop display in table structure), #2 (Desktop display with anchor link data in table structure), #3 (Responsive display in mobile devices), #4 (Listing tables with shortcode in admin panel), #5 (Columns, appearance settings in admin panel), #6 (Data entry panel in admin panel)
You can take inspiration from this readme.txt

responsive-data-table/mc-main.php 85% from 13 tests

The entry point to "Responsive Data Table" version 1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-data-table.php" instead of "mc-main.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,407 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10123461,256
JavaScript1185108
CSS25043

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png59.52KB17.26KB▼ 71.00%
screenshot-7.png32.63KB11.94KB▼ 63.41%
screenshot-5.png43.92KB13.33KB▼ 69.65%
screenshot-6.png40.04KB18.80KB▼ 53.06%
screenshot-4.png45.08KB21.47KB▼ 52.38%