79% automatic-responsive-tables

Code Review | Automatic Responsive Tables

WordPress plugin Automatic Responsive Tables scored79%from 54 tests.

About plugin

  • Plugin page: automatic-respons...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2016
  • Latest release: Aug 6, 2019
  • Number of updates: 24
  • Update frequency: every 54.3 days
  • Top authors: rockwell15 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active /38,765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼11.80ms] Passed 4 tests

A check of server-side resources used by Automatic Responsive Tables
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0641.59 ▼3.73
Dashboard /wp-admin3.39 ▲0.0550.26 ▼19.76
Posts /wp-admin/edit.php3.45 ▲0.0952.14 ▼2.49
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.52 ▼21.23
Media Library /wp-admin/upload.php3.32 ▲0.0939.26 ▼0.84
Responsive Tables /wp-admin/options-general.php?page=responsive-tables3.2733.92

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Automatic Responsive Tables
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲11113.37 ▼1.199.68 ▲7.9343.57 ▲3.76
Dashboard /wp-admin2,199 ▲185.64 ▼0.0982.27 ▼23.3437.65 ▼2.03
Posts /wp-admin/edit.php2,101 ▲11.97 ▲0.0238.91 ▲2.2835.29 ▲1.23
Add New Post /wp-admin/post-new.php1,531 ▲323.15 ▲0.09678.88 ▼15.2751.47 ▼12.65
Media Library /wp-admin/upload.php1,404 ▲74.24 ▲0.1395.90 ▼21.5248.51 ▲0.89
Responsive Tables /wp-admin/options-general.php?page=responsive-tables1,4992.7256.7245.25

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=responsive-tables
    • > Notice in wp-content/plugins/automatic-responsive-tables/automatic-responsive-tables.php+143
    Trying to access array offset on value of type bool

SRP 50% 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
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/automatic-responsive-tables/trunk/automatic-responsive-tables.php
    • > /wp-content/plugins/automatic-responsive-tables/automatic-responsive-tables.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: responsive, automatic, tables, table, fluid...

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

The main PHP script in "Automatic Responsive Tables" version 1.3 is automatically included on every request by WordPress
74 characters long description:
Automatically or Manually convert all tables on your site to be responsive

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 detected536 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP15828315
JavaScript2278147
CSS53074

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity9.17
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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 files were detected