84% table-auto-layout

Code Review | Table Auto-Layout

WordPress plugin Table Auto-Layout scored84%from 54 tests.

About plugin

  • Plugin page: table-auto-layout
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2014
  • Latest release: Mar 29, 2014
  • Number of updates: 3
  • Update frequency: every 5.7 days
  • Top authors: Svance23 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,357 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Table Auto-Layout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.37 ▼10.48
Dashboard /wp-admin3.31 ▼0.0345.72 ▼12.31
Posts /wp-admin/edit.php3.36 ▲0.0153.52 ▲9.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.14 ▲9.02
Media Library /wp-admin/upload.php3.23 ▲0.0136.66 ▲4.10

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Table Auto-Layout
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.45 ▼0.101.52 ▼0.4941.39 ▼3.55
Dashboard /wp-admin2,206 ▲184.87 ▲0.01107.41 ▲5.5641.30 ▲2.21
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0839.80 ▲3.6433.25 ▼2.69
Add New Post /wp-admin/post-new.php1,542 ▲918.28 ▼4.76597.19 ▼74.8756.15 ▼6.11
Media Library /wp-admin/upload.php1,388 ▲64.21 ▲0.02100.47 ▲0.1942.45 ▼3.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/table-auto-layout/tal.php:26

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: relayout table, window resize, greenlightdevelopment, table auto layout, responsibe table...

table-auto-layout/tal.php 85% from 13 tests

The main PHP file in "Table Auto-Layout" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
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 ("table-auto-layout.php" instead of "tal.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1112957
PHP192030

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin