10% hc-custom-wp-admin-url

Code Review | HC Custom WP-Admin URL

WordPress plugin HC Custom WP-Admin URL scored 10% from 54 tests.

About plugin

  • Plugin page: hc-custom-wp-admi...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.1
  • WordPress version: 5.9.2
  • First release: Apr 19, 2013
  • Latest release: Dec 1, 2017
  • Number of updates: 19
  • Update frequency: every 88.8 days
  • Top authors: SomeWebMedia (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

10,000+ active / 151,996 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
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5768
    register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼2.47MB] [CPU: ▼362.82ms] Passed 4 tests

Analyzing server-side resources used by HC Custom WP-Admin URL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.90 ▼1.624.18 ▼48.95
Dashboard /wp-admin1.92 ▼1.493.97 ▼30.65
Posts /wp-admin/edit.php1.92 ▼1.724.50 ▼37.34
Add New Post /wp-admin/post-new.php1.92 ▼5.055.19 ▼1,334.33
Media Library /wp-admin/upload.php1.92 ▼1.3813.35 ▼17.71

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
hc_custom_wpadmin_url_plugin_enabled

Browser metrics Passed 4 tests

HC Custom WP-Admin URL: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3215.19 ▼0.468.40 ▲2.892.36 ▼0.16
Dashboard /wp-admin2,892 ▲316.14 ▼0.14120.96 ▼14.64159.49 ▼4.69
Posts /wp-admin/edit.php2,685 ▼93.24 ▲0.0162.56 ▼4.34143.65 ▼4.40
Add New Post /wp-admin/post-new.php1,661 ▼016.28 ▲0.58424.21 ▼12.33176.17 ▲22.69
Media Library /wp-admin/upload.php1,695 ▼35.52 ▼0.01144.92 ▲5.21193.15 ▲11.24

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
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5768
    register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • Zombie WordPress options detected upon uninstall: 1 option
    • hc_custom_wpadmin_url_plugin_enabled

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/hc-custom-wp-admin-url/hc-custom-wp-admin-url.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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: plugin, login, admin, administration, wp-login...

hc-custom-wp-admin-url/hc-custom-wp-admin-url.php Passed 13 tests

The principal PHP file in "HC Custom WP-Admin URL" v. 1.4 is loaded by WordPress automatically on each request
69 characters long description:
Small and simple plugin that allows you to change the url of wp-admin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin124 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13219124

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin