90% old-style-admin-ui

Code Review | Old Style Admin UI

WordPress plugin Old Style Admin UI scored90%from 54 tests.

About plugin

  • Plugin page: old-style-admin-ui
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.3-5.3
  • WordPress version: 6.3.1
  • First release: Nov 17, 2019
  • Latest release: Jan 16, 2020
  • Number of updates: 14
  • Update frequency: every 4.3 days
  • Top authors: Darken-x (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /2,277 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.01MB] [CPU: ▼1.17ms] Passed 4 tests

A check of server-side resources used by Old Style Admin UI
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.25 ▼1.21
Dashboard /wp-admin3.31 ▲0.0151.56 ▲2.96
Posts /wp-admin/edit.php3.36 ▲0.0146.81 ▼3.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.29 ▼2.92
Media Library /wp-admin/upload.php3.23 ▲0.0137.54 ▲4.50

Server storage [IO: ▲0.02MB] [DB: ▲0.31MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Old Style Admin UI
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.72 ▲0.441.76 ▼0.3944.94 ▲4.21
Dashboard /wp-admin2,194 ▲305.59 ▲0.0682.15 ▼24.6937.17 ▼4.02
Posts /wp-admin/edit.php2,099 ▼12.02 ▼0.0339.44 ▲0.3034.20 ▲0.11
Add New Post /wp-admin/post-new.php1,540 ▲1223.37 ▲0.28669.07 ▼6.3956.78 ▼5.37
Media Library /wp-admin/upload.php1,399 ▼14.23 ▲0.02100.33 ▼4.8244.71 ▲3.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === old-style-admin-ui === )
You can look at the official readme.txt

old-style-admin-ui/old-style-admin-ui.php Passed 13 tests

The entry point to "Old Style Admin UI" version 1.0.3 is a PHP file that has certain tags in its header comment area
138 characters long description:
If you didn't like the new Wordpress 5.3 accessibility blue style for the buttons and other parts of the admin UI, this plugin is for you.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected661 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS215524648
PHP151313

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.29
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%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin