94% visual-table-formatting-lite

Code Review | Visual Table Formatting Lite

WordPress plugin Visual Table Formatting Lite scored 94% from 54 tests.

About plugin

  • Plugin page: visual-table-form...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.1
  • WordPress version: 5.8.1
  • First release: Jan 5, 2014
  • Latest release: Dec 25, 2017
  • Number of updates: 37
  • Update frequency: every 39.2 days
  • Top authors: GeorgeIron (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 15,681 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼151.67ms] Passed 4 tests

A check of server-side resources used by Visual Table Formatting Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.02 ▲13.82
Dashboard /wp-admin3.06 ▲0.0144.90 ▼5.58
Posts /wp-admin/edit.php3.13 ▲0.0248.50 ▼4.64
Add New Post /wp-admin/post-new.php5.43 ▼0.0095.07 ▼584.41
Media Library /wp-admin/upload.php3.01 ▲0.0128.59 ▼12.05

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Visual Table Formatting Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.01 ▲0.3914.54 ▲2.8454.98 ▲3.13
Dashboard /wp-admin2,967 ▲335.87 ▼0.19148.97 ▼21.05132.23 ▲9.08
Posts /wp-admin/edit.php2,804 ▲653.28 ▲0.5683.44 ▲10.91118.33 ▲14.84
Add New Post /wp-admin/post-new.php1,728 ▲4518.77 ▲0.44419.40 ▲18.68125.11 ▲11.27
Media Library /wp-admin/upload.php1,807 ▼35.03 ▼0.01167.32 ▲6.86131.80 ▲5.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/visual-table-formatting-lite/tables.php
    • > /wp-content/plugins/visual-table-formatting-lite/visual-table-formatting.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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: tables, formatting, cell color

visual-table-formatting-lite/visual-table-formatting.php 92% from 13 tests

The primary PHP file in "Visual Table Formatting Lite" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("visual-table-formatting-lite.php" instead of "visual-table-formatting.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin15,214 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42,2401,88913,492
CSS41651261,368
PHP31515354

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions10
▷ Named functions10100.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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%