79% tabular-lite

Code Review | Tabular - Create Stunning HTML Tables

WordPress plugin Tabular - Create Stunning HTML Tables scored79%from 54 tests.

About plugin

  • Plugin page: tabular-lite
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 1, 2017
  • Latest release: Nov 1, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: dgwyer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,035 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼9.95ms] Passed 4 tests

This is a short check of server-side resources used by Tabular - Create Stunning HTML Tables
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1948.93 ▲6.50
Dashboard /wp-admin3.31 ▲0.0127.78 ▼23.13
Posts /wp-admin/edit.php3.61 ▲0.2648.66 ▼2.00
Add New Post /wp-admin/post-new.php6.08 ▲0.1989.54 ▼9.05
Media Library /wp-admin/upload.php3.33 ▲0.1128.99 ▼5.62
Help & Info /wp-admin/edit.php?post_type=wpgo_tabular&page=wpgo-tabular-about-page3.2930.12
All Tables /wp-admin/edit.php?post_type=wpgo_tabular3.3628.18
Add New Table /wp-admin/post-new.php?post_type=wpgo_tabular3.4339.93

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Tabular - Create Stunning HTML Tables
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7913.52 ▼0.791.95 ▼0.0742.22 ▼1.96
Dashboard /wp-admin2,239 ▲624.88 ▼1.00109.39 ▲7.5642.33 ▲0.13
Posts /wp-admin/edit.php2,122 ▲332.00 ▼0.0138.79 ▼2.3134.91 ▲0.98
Add New Post /wp-admin/post-new.php1,541 ▲2717.59 ▼0.02655.54 ▼15.7652.15 ▼5.96
Media Library /wp-admin/upload.php1,421 ▲304.26 ▼0.0299.36 ▲0.4041.40 ▼2.47
Help & Info /wp-admin/edit.php?post_type=wpgo_tabular&page=wpgo-tabular-about-page9212.0223.3453.86
All Tables /wp-admin/edit.php?post_type=wpgo_tabular1,1251.9429.9831.31
Add New Table /wp-admin/post-new.php?post_type=wpgo_tabular2,1413.0261.96100.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wpgo_tabular
    • > Notice in wp-content/plugins/tabular-lite/classes/tabular-enqueue-scripts.php+56
    Trying to get property 'ID' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wpgo_tabular
    • > Notice in wp-content/plugins/tabular-lite/classes/tabular-enqueue-scripts.php+65
    Trying to get property 'post_type' of non-object
    • > GET request to /wp-admin/post-new.php?post_type=wpgo_tabular
    • > Notice in wp-content/plugins/tabular-lite/classes/tabular-builder.php+47
    Undefined index:
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpgo_tabular
    • > Notice in wp-content/plugins/tabular-lite/classes/tabular-builder.php+50
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/post-new.php?post_type=wpgo_tabular
    • > Warning in wp-content/plugins/tabular-lite/classes/tabular-builder.php+51
    count(): Parameter must be an array or an object that implements Countable
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpgo_tabular
    • > Warning in wp-content/plugins/tabular-lite/classes/tabular-cpt.php+380
    Use of undefined constant uri - assumed 'uri' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpgo_tabular
    • > Notice in wp-content/plugins/tabular-lite/classes/tabular-cpt.php+427
    Undefined variable: w

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabular-lite/classes/tabular-builder.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tabular-lite/tabular-lite.php:109

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: html, table, templates, styles, semantic

tabular-lite/tabular-lite.php Passed 13 tests

The main file in "Tabular - Create Stunning HTML Tables" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
93 characters long description:
Add responsive tables and graphs in WordPress using the advanced D3.js visualization library.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,853 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP9297595899
JavaScript8185224521
CSS692126347
Markdown125086

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.44
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods56
▷ Static methods35.36%
▷ Public methods56100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/alpha-color-picker/transparency-grid.png2.58KB2.80KB0.00%