94% admin-ui-cleaner

Code Review | Admin UI Cleaner

WordPress plugin Admin UI Cleaner scored 94% from 54 tests.

About plugin

  • Plugin page: admin-ui-cleaner
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.4
  • WordPress version: 5.9.2
  • First release: Mar 7, 2019
  • Latest release: Apr 13, 2020
  • Number of updates: 11
  • Update frequency: every 36.6 days
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,187 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼311.96ms] Passed 4 tests

Server-side resources used by Admin UI Cleaner
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1258.39 ▼54.71
Dashboard /wp-admin3.38 ▼0.0424.62 ▼9.69
Posts /wp-admin/edit.php3.73 ▲0.0939.37 ▼1.24
Add New Post /wp-admin/post-new.php6.97 ▼0.0088.59 ▼1,182.20
Media Library /wp-admin/upload.php3.38 ▲0.0826.50 ▲3.19
Admin UI Cleaner /wp-admin/options-general.php?page=admin-ui-cleaner3.3524.00

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin UI Cleaner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,348 ▼1,40615.06 ▼0.065.83 ▼0.892.70 ▼0.36
Dashboard /wp-admin1,479 ▼1,3815.56 ▼0.56106.63 ▼30.94163.08 ▼2.85
Posts /wp-admin/edit.php2,637 ▼543.23 ▼0.0061.65 ▼6.12126.04 ▼20.54
Add New Post /wp-admin/post-new.php1,674 ▲1321.36 ▲5.33437.65 ▲20.73180.92 ▼11.59
Media Library /wp-admin/upload.php1,650 ▼485.49 ▼0.02142.99 ▼9.19221.36 ▼36.13
Admin UI Cleaner /wp-admin/options-general.php?page=admin-ui-cleaner9462.3754.20101.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AUC\\add_action() in wp-content/plugins/admin-ui-cleaner/src/AdminBar.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: widget, admin, minimize, ui cleaner, hide...

admin-ui-cleaner/admin-ui-cleaner.php 92% from 13 tests

This is the main PHP file of "Admin UI Cleaner" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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
Everything looks great! No dangerous files found in this plugin487 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14103170483
CSS1013
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.22
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods42
▷ Static methods37.14%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
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
There were not PNG files found in your plugin