84% 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 scored84%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: 6.3.1
  • 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

400+ active /2,456 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼13.86ms] Passed 4 tests

Server-side resources used by Custom Admin UI - WordPress Custom Admin UI or Custom Admin Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.33 ▼5.51
Dashboard /wp-admin3.31 ▼0.0351.69 ▼14.11
Posts /wp-admin/edit.php3.37 ▲0.0152.01 ▼4.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.33 ▼31.17
Media Library /wp-admin/upload.php3.24 ▲0.0144.21 ▲8.13

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for 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 /2,791 ▲514.35 ▲0.071.75 ▼0.2841.50 ▼4.75
Dashboard /wp-admin2,158 ▼165.51 ▼0.0787.61 ▼5.0342.15 ▲1.42
Posts /wp-admin/edit.php2,078 ▼272.16 ▲0.1340.52 ▼2.3135.18 ▼0.50
Add New Post /wp-admin/post-new.php1,681 ▲15322.37 ▼0.68596.52 ▼58.2648.83 ▼8.30
Media Library /wp-admin/upload.php1,366 ▼284.20 ▲0.06101.53 ▲1.3944.40 ▼2.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /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 important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: custom-admin-theme, custom-admin-ui, wordpress-admin-ui

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

Analyzing the main PHP file in "Custom Admin UI - WordPress Custom Admin UI or Custom Admin Theme" version 0.2.0
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

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
Everything looks great! No dangerous files found in this plugin349 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS18327319
PHP2234430

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin