72% wp-admin-ui-customize

Code Review | WP Admin UI Customize

WordPress plugin WP Admin UI Customize scored72%from 54 tests.

About plugin

  • Plugin page: wp-admin-ui-custo...
  • Plugin version: 1.5.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9
  • WordPress version: 6.3.1
  • First release: Dec 26, 2012
  • Latest release: Nov 4, 2022
  • Number of updates: 193
  • Update frequency: every 18.7 days
  • Top authors: gqevu6bsiz (100%)

Code review

54 tests

User reviews

59 reviews

Install metrics

40,000+ active /344,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.42MB] [CPU: ▼1.05ms] Passed 4 tests

This is a short check of server-side resources used by WP Admin UI Customize
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4045.00 ▲4.26
Dashboard /wp-admin3.82 ▲0.4752.83 ▼0.06
Posts /wp-admin/edit.php3.87 ▲0.4756.12 ▲4.62
Add New Post /wp-admin/post-new.php6.34 ▲0.4193.47 ▼13.01
Media Library /wp-admin/upload.php3.68 ▲0.4142.25 ▲7.20
Frontend /wp-admin/admin.php?page=wp_admin_ui_customize_setting_site3.7039.86
Appearance Menus /wp-admin/admin.php?page=wp_admin_ui_customize_appearance_menus3.6536.73
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.5330.10
Posts and Pages /wp-admin/admin.php?page=wp_admin_ui_customize_post_add_edit_screen3.6638.97
WP Admin UI Customize /wp-admin/admin.php?page=wp_admin_ui_customize3.6837.47
Dashboard /wp-admin/admin.php?page=wp_admin_ui_customize_dashboard3.6837.95
Admin bar /wp-admin/admin.php?page=wp_admin_ui_customize_admin_bar3.7439.07
Sidebar /wp-admin/admin.php?page=wp_admin_ui_customize_sidemenu3.7441.69
Login Form /wp-admin/admin.php?page=wp_admin_ui_customize_loginscreen3.6938.89
Change of Plugin Capabilities /wp-admin/admin.php?page=wp_admin_ui_customize_plugin_cap3.6636.71

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Admin UI Customize
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲9514.24 ▼0.152.28 ▲0.5340.82 ▼3.07
Dashboard /wp-admin2,259 ▲855.50 ▼0.0393.70 ▲5.4437.19 ▼7.87
Posts /wp-admin/edit.php2,164 ▲641.98 ▼0.0239.40 ▲4.7035.83 ▼0.44
Add New Post /wp-admin/post-new.php1,578 ▲4123.13 ▲5.03674.64 ▲14.2052.97 ▼15.16
Media Library /wp-admin/upload.php1,470 ▲704.17 ▼0.03104.81 ▲0.6845.32 ▼4.53
Frontend /wp-admin/admin.php?page=wp_admin_ui_customize_setting_site1,1031.9426.0032.71
Appearance Menus /wp-admin/admin.php?page=wp_admin_ui_customize_appearance_menus9821.9428.7632.61
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category310.420.086.77
Posts and Pages /wp-admin/admin.php?page=wp_admin_ui_customize_post_add_edit_screen9991.9425.2228.72
WP Admin UI Customize /wp-admin/admin.php?page=wp_admin_ui_customize1,0721.7931.2030.36
Dashboard /wp-admin/admin.php?page=wp_admin_ui_customize_dashboard1,1511.9227.8633.85
Admin bar /wp-admin/admin.php?page=wp_admin_ui_customize_admin_bar5,6423.1974.4355.06
Sidebar /wp-admin/admin.php?page=wp_admin_ui_customize_sidemenu9,5182.6678.6536.89
Login Form /wp-admin/admin.php?page=wp_admin_ui_customize_loginscreen1,2942.0526.6326.60
Change of Plugin Capabilities /wp-admin/admin.php?page=wp_admin_ui_customize_plugin_cap1,2691.9325.3126.70

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wp_admin_ui_customize_appearance_menus
    • > Notice in wp-content/plugins/wp-admin-ui-customize/inc/setting_appearance_menus.php+44
    Undefined variable: checked

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-ui-customize/inc/setting_manage_metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_update_data() in wp-content/plugins/wp-admin-ui-customize/inc/list_variables.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-ui-customize/inc/reset_userrole.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-ui-customize/inc/setting_loginscreen.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-ui-customize/inc/setting_post_add_edit.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-ui-customize/inc/setting_dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-admin-ui-customize/wp-admin-ui-customize.php:62
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-ui-customize/inc/setting_default.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-ui-customize/inc/setting_site.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-admin-ui-customize/inc/setting_admin_general.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=link_category - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Set the user role apply), #2 (Site Settings), #3 (Admin Screen Settings), #4 (Dashboard Settings), #5 (Admin Bar Menu Settings), #6 (Admin Menu(side menu) Settings), #7 (Metabox Settings), #8 (Post/Page Settings), #9 (Appearance Menu Settings), #10 (Login Screen Settings), #11 (Plugin Capabilities Settings)
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can look at the official readme.txt

wp-admin-ui-customize/wp-admin-ui-customize.php Passed 13 tests

This is the main PHP file of "WP Admin UI Customize" version 1.5.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
An excellent plugin to customize the Wordpress management UI.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,405 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP141,0092614,065
PO File34707091,106
CSS2313177
JavaScript420057

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.41
Average class complexity536.00
▷ Minimum class complexity536.00
▷ Maximum class complexity536.00
Average method complexity7.77
▷ Minimum method complexity1.00
▷ Maximum method complexity88.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods79
▷ Static methods00.00%
▷ Public methods79100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-11.png21.39KB7.81KB▼ 63.50%
screenshot-5.png17.77KB7.52KB▼ 57.70%
screenshot-10.png15.25KB6.01KB▼ 60.58%
images/appearance_menus_add_new_menu_of_location.png6.39KB2.34KB▼ 63.42%
screenshot-9.png19.58KB8.29KB▼ 57.63%