10% ultimate-tables

Code Review | ULTIMATE TABLES

WordPress plugin ULTIMATE TABLES scored 10% from 54 tests.

About plugin

  • Plugin page: ultimate-tables
  • Plugin version: 1.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.9
  • WordPress version: 5.9.2
  • First release: Oct 5, 2012
  • Latest release: Nov 22, 2017
  • Number of updates: 23
  • Update frequency: every 81.5 days
  • Top authors: extendyourweb (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

7,000+ active / 164,647 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/ultimate-tables/init.php+825
    Function create_function() is deprecated

Server metrics [RAM: ▼2.32MB] [CPU: ▼337.50ms] Passed 4 tests

This is a short check of server-side resources used by ULTIMATE TABLES
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.474.90 ▼44.15
Dashboard /wp-admin2.07 ▼1.344.21 ▼28.15
Posts /wp-admin/edit.php2.07 ▼1.575.76 ▼30.69
Add New Post /wp-admin/post-new.php2.07 ▼4.904.51 ▼1,247.02
Media Library /wp-admin/upload.php2.07 ▼1.234.14 ▼19.98
Ultimate Tables /wp-admin/options-general.php?page=ultimatetables2.075.25

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 1 new option
New WordPress options
widget_wp_ultimatetables

Browser metrics Passed 4 tests

This is an overview of browser requirements for ULTIMATE TABLES
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,897 ▲15516.87 ▲1.219.93 ▲2.662.21 ▼0.08
Dashboard /wp-admin2,901 ▲436.69 ▲0.53120.30 ▼24.09157.18 ▼9.98
Posts /wp-admin/edit.php2,701 ▲293.40 ▲0.1664.40 ▼2.92132.07 ▼9.94
Add New Post /wp-admin/post-new.php1,678 ▲1718.29 ▲1.02414.84 ▲12.73153.74 ▲0.38
Media Library /wp-admin/upload.php1,711 ▲135.69 ▲0.20142.58 ▲2.82181.68 ▼8.35
Ultimate Tables /wp-admin/options-general.php?page=ultimatetables1,1202.9555.99119.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/ultimate-tables/init.php+825
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_wp_ultimatetables

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ultimatetables
    • > Deprecated in wp-content/plugins/ultimate-tables/init.php+825
    Function create_function() is deprecated

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ultimate-tables/template/panel.php
    • > /wp-content/plugins/ultimate-tables/css/style.php
  • 113× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: twidth in wp-content/plugins/ultimate-tables/template/panel.php on line 397
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/ultimate-tables/template/panel.php on line 342
    • > PHP Notice
      Undefined variable: color1 in wp-content/plugins/ultimate-tables/template/panel.php on line 334
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/ultimate-tables/template/panel.php on line 348
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/ultimate-tables/template/panel.php on line 244
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/ultimate-tables/template/panel.php on line 237
    • > PHP Notice
      Undefined variable: sizedescription in wp-content/plugins/ultimate-tables/template/panel.php on line 289
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/ultimate-tables/template/panel.php on line 370
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/ultimate-tables/template/panel.php on line 244
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/ultimate-tables/template/panel.php on line 53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Table sample.), #2 (Settings -> Ultimate tables.), #3 (Table admin.)
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
The official readme.txt is a good inspiration

ultimate-tables/init.php 92% from 13 tests

The main PHP script in "ULTIMATE TABLES" version 1.6.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-tables.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected11,487 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript192,2167,2847,765
CSS181911622,592
PHP4594100929
HTML312215201

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sort_asc_disabled.png0.14KB0.25KB0.00%
template/logoextend.png8.07KB4.00KB▼ 50.50%
template/icono3.png15.15KB3.78KB▼ 75.05%
template/icono4.png14.52KB3.36KB▼ 76.85%
images/Untitled-1.png0.15KB0.21KB0.00%