94% admin-ui

Code Review | Custom Admin UI - WordPress Custom Admin UI or Custom Admin Theme

WordPress plugin Custom Admin UI - WordPress Custom Admin UI or Custom Admin Theme scored 94% from 54 tests.

About plugin

  • Plugin page: admin-ui
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 5.9.2
  • First release: Dec 1, 2020
  • Latest release: Mar 31, 2021
  • Number of updates: 5
  • Update frequency: every 24.0 days
  • Top authors: contactjavas (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 1,462 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼297.97ms] Passed 4 tests

An overview of server-side resources used by Custom Admin UI - WordPress Custom Admin UI or Custom Admin Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.40 ▲0.62
Dashboard /wp-admin3.42 ▲0.0132.39 ▼2.29
Posts /wp-admin/edit.php3.65 ▲0.0136.13 ▼1.10
Add New Post /wp-admin/post-new.php6.90 ▼0.0794.09 ▼1,184.40
Media Library /wp-admin/upload.php3.30 ▲0.0024.66 ▼4.09

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Custom Admin UI - WordPress Custom Admin UI or Custom Admin Theme
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1615.74 ▼0.176.96 ▲1.092.30 ▼0.20
Dashboard /wp-admin2,873 ▲186.00 ▼0.19118.77 ▼17.81157.02 ▼3.06
Posts /wp-admin/edit.php2,672 ▼163.25 ▲0.0263.94 ▼3.52147.32 ▲0.81
Add New Post /wp-admin/post-new.php1,719 ▲5821.26 ▲5.16432.80 ▲15.63153.26 ▼8.10
Media Library /wp-admin/upload.php1,673 ▼285.49 ▼0.02144.30 ▲8.43188.30 ▼3.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-ui/admin-ui.php

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)
No browser issues were found

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
3 plugin tags: wordpress-admin-ui, custom-admin-ui, custom-admin-theme

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

"Custom Admin UI - WordPress Custom Admin UI or Custom Admin Theme" version 0.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin349 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS18327319
PHP2234430

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin