84% hh-sortable

Code Review | HH sortable ID columns

WordPress plugin HH sortable ID columns scored84%from 54 tests.

About plugin

  • Plugin page: hh-sortable
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Apr 30, 2013
  • Latest release: Jan 31, 2022
  • Number of updates: 14
  • Update frequency: every 228.4 days
  • Top authors: versusbassz (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /11,654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.23ms] Passed 4 tests

Analyzing server-side resources used by HH sortable ID columns
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.64 ▼1.01
Dashboard /wp-admin3.43 ▲0.1350.67 ▲3.16
Posts /wp-admin/edit.php3.48 ▲0.1346.06 ▼2.66
Add New Post /wp-admin/post-new.php6.01 ▲0.1385.30 ▼15.59
Media Library /wp-admin/upload.php3.35 ▲0.1333.48 ▼1.66

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

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

Browser metrics Passed 4 tests

Checking browser requirements for HH sortable ID columns
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6814.80 ▲0.501.88 ▼0.3946.02 ▲4.20
Dashboard /wp-admin2,212 ▲245.01 ▼0.85100.78 ▼0.7743.30 ▲3.47
Posts /wp-admin/edit.php2,119 ▲302.00 ▼0.0533.54 ▼8.7834.15 ▼3.59
Add New Post /wp-admin/post-new.php1,538 ▲523.34 ▲0.27665.24 ▼12.9566.57 ▲4.55
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.00108.04 ▲3.2646.25 ▲1.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hh-sortable/hh_admin_id_columns.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: column, admin, panel, id, sortable

hh-sortable/hh_admin_id_columns.php 92% from 13 tests

"HH sortable ID columns" version 3.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hh-sortable.php" instead of "hh_admin_id_columns.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin67 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2222167

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin