84% ui-labs

Code Review | UI Labs

WordPress plugin UI Labs scored84%from 54 tests.

About plugin

  • Plugin page: ui-labs
  • Plugin version: 4.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Mar 23, 2011
  • Latest release: Sep 28, 2023
  • Number of updates: 78
  • Update frequency: every 58.6 days
  • Top authors: JohnONolan (58.97%)Ipstenu (41.03%)Otto42 (2.56%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /11,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by UI Labs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.38 ▲1.50
Dashboard /wp-admin3.40 ▲0.0948.88 ▼2.14
Posts /wp-admin/edit.php3.51 ▲0.1549.14 ▼10.97
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.99 ▼14.89
Media Library /wp-admin/upload.php3.32 ▲0.0939.69 ▲4.83
UI Labs /wp-admin/tools.php?page=ui-labs-settings3.2834.10

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for UI Labs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3413.39 ▼0.994.28 ▲2.6141.57 ▼2.53
Dashboard /wp-admin2,204 ▲275.63 ▼0.0087.83 ▼4.4438.43 ▼1.54
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0337.78 ▼0.5132.80 ▼7.03
Add New Post /wp-admin/post-new.php1,533 ▲722.90 ▼0.72654.55 ▼56.8555.94 ▼5.19
Media Library /wp-admin/upload.php1,406 ▲94.15 ▼0.08113.12 ▲1.7645.77 ▼3.09
UI Labs /wp-admin/tools.php?page=ui-labs-settings9121.9927.2242.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ui-labs/ui-labs.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #6 (Experiment #6 - Old Plugin Warnings) image missing
You can look at the official readme.txt

ui-labs/ui-labs.php Passed 13 tests

The main file in "UI Labs" v. 4.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Experimental WordPress admin UI features, ooo shiny!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin567 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP278180323
CSS65036233
XML10011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin