99% put

Code Review | Post UI Tabs

WordPress plugin Post UI Tabs scored 99% from 53 tests.

About plugin

  • Plugin page: put
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-3.6
  • WordPress version: 5.8.1
  • First release: Apr 6, 2011
  • Latest release: Apr 30, 2013
  • Number of updates: 47
  • Update frequency: every 16.1 days
  • Top authors: t31os_ (100%)

Code review

53 tests

User reviews

14 reviews

Install metrics

1,000+ active / 49,037 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.09MB] [CPU: ▼287.84ms] Passed 4 tests

A check of server-side resources used by Post UI Tabs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1230.78 ▼1.46
Dashboard /wp-admin3.08 ▲0.0335.11 ▼5.74
Posts /wp-admin/edit.php3.17 ▼0.4241.13 ▼3.82
Add New Post /wp-admin/post-new.php5.45 ▲0.0290.15 ▼1,132.85
Media Library /wp-admin/upload.php3.03 ▲0.0227.34 ▼8.94
Post UI Tabs /wp-admin/options-general.php?page=post-ui-tabs3.0227.97

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Post UI Tabs: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲10016.19 ▲0.888.07 ▼1.4146.51 ▲0.83
Dashboard /wp-admin2,967 ▲1145.92 ▲0.10140.03 ▲1.1194.15 ▼15.02
Posts /wp-admin/edit.php2,711 ▲82.70 ▲0.0070.29 ▲3.3994.06 ▼4.29
Add New Post /wp-admin/post-new.php1,659 ▲618.81 ▲0.25375.40 ▲4.4196.04 ▼6.69
Media Library /wp-admin/upload.php1,777 ▲25.01 ▼0.00139.51 ▼9.67108.87 ▼8.76
Post UI Tabs /wp-admin/options-general.php?page=post-ui-tabs1,4062.1064.5174.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 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 Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === put === )
The official readme.txt is a good inspiration

put/put.php 92% from 13 tests

The principal PHP file in "Post UI Tabs" v. 1.1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin803 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP111748477
JavaScript76133256
HTML13070

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2064.52%
▷ Protected methods00.00%
▷ Private methods1135.48%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected