10% custom-admin-ui

Code Review | Custom Admin UI

WordPress plugin Custom Admin UI scored10%from 54 tests.

About plugin

  • Plugin page: custom-admin-ui
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 28, 2015
  • Latest release: Jun 20, 2018
  • Number of updates: 44
  • Update frequency: every 24.1 days
  • Top authors: happybrain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,250 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/custom-admin-ui/custom-admin-ui.php+12
    Undefined index: options

Server metrics [RAM: ▼1.96MB] [CPU: ▼56.35ms] Passed 4 tests

Server-side resources used by Custom Admin UI
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.30 ▼35.13
Dashboard /wp-admin2.05 ▼1.267.17 ▼48.29
Posts /wp-admin/edit.php2.05 ▼1.315.51 ▼44.37
Add New Post /wp-admin/post-new.php2.05 ▼3.846.04 ▼97.59
Media Library /wp-admin/upload.php2.05 ▼1.187.84 ▼30.68
Custom Admin UI /wp-admin/options-general.php?page=custom_admin_ui2.055.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Custom Admin UI: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.101.71 ▼0.0447.57 ▲8.58
Dashboard /wp-admin2,196 ▲195.50 ▼0.0683.21 ▼11.5639.41 ▼9.80
Posts /wp-admin/edit.php2,104 ▲41.93 ▼0.0735.32 ▼2.1042.00 ▲1.90
Add New Post /wp-admin/post-new.php1,529 ▲123.18 ▼0.01686.13 ▲33.3255.94 ▼7.94
Media Library /wp-admin/upload.php1,419 ▲254.19 ▲0.02114.51 ▲17.5248.22 ▲2.40
Custom Admin UI /wp-admin/options-general.php?page=custom_admin_ui8792.0023.7230.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/custom-admin-ui/custom-admin-ui.php+12
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=custom_admin_ui
    • > Notice in wp-content/plugins/custom-admin-ui/settings.php+126
    Trying to access array offset on value of type bool

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-admin-ui/custom-admin-ui.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-admin-ui/settings.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
1 plugin tags: custom admin ui

custom-admin-ui/custom-admin-ui.php Passed 13 tests

The entry point to "Custom Admin UI" version 1.6 is a PHP file that has certain tags in its header comment area
45 characters long description:
Customize the WordPress admin User Interface.

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
Good job! No executable or dangerous file extensions detected204 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2016203
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin