78% jtrt-responsive-tables

Code Review | JTRT Responsive Tables

WordPress plugin JTRT Responsive Tables scored78%from 54 tests.

About plugin

  • Plugin page: jtrt-responsive-t...
  • Plugin version: 4.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jul 22, 2015
  • Latest release: Jan 4, 2020
  • Number of updates: 81
  • Update frequency: every 20.1 days
  • Top authors: MyThirdEye (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

3,000+ active /71,077 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.85ms] Passed 4 tests

This is a short check of server-side resources used by JTRT Responsive Tables
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1438.55 ▼5.98
Dashboard /wp-admin3.52 ▲0.2249.86 ▲0.47
Posts /wp-admin/edit.php3.58 ▲0.2353.61 ▲4.64
Add New Post /wp-admin/post-new.php6.03 ▲0.1481.99 ▼20.09
Media Library /wp-admin/upload.php3.37 ▲0.1435.21 ▲2.20
Add New /wp-admin/post-new.php?post_type=jtrt_tables_post3.5648.16
All Tables /wp-admin/edit.php?post_type=jtrt_tables_post3.4440.96

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 79 new files
Database: 1 new table, 6 new options
New tables
wp_jtrt_tables
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

JTRT Responsive Tables: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲22115.08 ▲0.451.78 ▼0.0442.87 ▲3.31
Dashboard /wp-admin2,370 ▲1826.41 ▲1.53124.61 ▲12.6438.41 ▼3.49
Posts /wp-admin/edit.php2,279 ▲1903.34 ▲1.3554.65 ▲11.4436.05 ▼1.45
Add New Post /wp-admin/post-new.php1,540 ▼217.76 ▼0.41632.01 ▲25.2741.46 ▼10.87
Media Library /wp-admin/upload.php1,409 ▲244.16 ▼0.0385.73 ▼12.6944.03 ▲1.32
Add New /wp-admin/post-new.php?post_type=jtrt_tables_post6,2347.12320.17159.91
All Tables /wp-admin/edit.php?post_type=jtrt_tables_post1,2513.4547.1034.87

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/jtrt-responsive-tables/admin/partials/jtrt-responsive-tables-admin-display.php
    • > /wp-content/plugins/jtrt-responsive-tables/public/partials/jtrt-responsive-tables-public-display.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/jtrt-responsive-tables/admin/partials/jtrt-custom-post-type.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jtrt-responsive-tables/admin/partials/templates/jtrt-responsive-tables-step1.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/jtrt-responsive-tables/admin/partials/templates/jtrt-responsive-tables-step2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jtrt-responsive-tables/admin/partials/templates/extras/jtrt-responsive-tables-extra-temps.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jtrt-responsive-tables/admin/partials/jtrt-adminClass-extras.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jtrt-responsive-tables/admin/class-jtrt-responsive-tables-admin.php:328
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/jtrt-responsive-tables/admin/partials/templates/jtrt-responsive-tables-post-meta-1-display.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jtrt-responsive-tables/admin/partials/jtrt-adminClass-shortcode.php:187

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("//")
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

jtrt-responsive-tables/jtrt-responsive-tables.php Passed 13 tests

The entry point to "JTRT Responsive Tables" version 4.1.9 is a PHP file that has certain tags in its header comment area
45 characters long description:
The most advanced table editor for wordpress.

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
No dangerous file extensions were detected32,291 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript165,7837,72927,670
SVG1002,671
PHP192695931,120
CSS715353801
HTML15029

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.29
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.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
23 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/icons/export.png1.05KB0.30KB▼ 71.53%
admin/css/icons/import.png1.01KB0.24KB▼ 76.67%
admin/css/icons/cols.png0.97KB0.16KB▼ 83.43%
admin/css/icons/edit-font.png0.99KB0.17KB▼ 83.27%
admin/css/icons/align-justify.png0.95KB0.15KB▼ 84.40%