90% custom-admin-login

Code Review | Custom Admin Login

WordPress plugin Custom Admin Login scored90%from 54 tests.

About plugin

  • Plugin page: custom-admin-login
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Jul 4, 2018
  • Latest release: May 27, 2022
  • Number of updates: 24
  • Update frequency: every 59.3 days
  • Top authors: jprieton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,410 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.17ms] Passed 4 tests

Server-side resources used by Custom Admin Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.94 ▼0.15
Dashboard /wp-admin3.32 ▼0.0347.09 ▼14.46
Posts /wp-admin/edit.php3.37 ▲0.0149.02 ▼1.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.67 ▼4.34
Media Library /wp-admin/upload.php3.24 ▲0.0139.21 ▲8.77

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Custom Admin Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.311.68 ▼0.2442.76 ▼1.86
Dashboard /wp-admin2,195 ▲185.51 ▼0.1486.22 ▼5.9039.19 ▼3.88
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0334.23 ▼6.2834.44 ▼4.13
Add New Post /wp-admin/post-new.php1,541 ▲1522.76 ▼0.41644.60 ▲23.9557.25 ▲5.24
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.12102.29 ▼7.1045.58 ▼2.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 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
8 plugin tags: custom admin login, custom, admin, admin login, login page...

custom-admin-login/custom-admin-login.php Passed 13 tests

The principal PHP file in "Custom Admin Login" v. 1.0.8 is loaded by WordPress automatically on each request
90 characters long description:
Allows you to customize the background, logo, url and caption on the WordPress login page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin277 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP363191217
PO File1141738
Markdown26022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods421.05%
▷ Public methods1157.89%
▷ Protected methods421.05%
▷ Private methods421.05%
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