78% admin-custom-login

Code Review | Admin Custom Login

WordPress plugin Admin Custom Login scored78%from 54 tests.

About plugin

  • Plugin page: admin-custom-login
  • Plugin version: 3.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 26, 2015
  • Latest release: Oct 27, 2023
  • Number of updates: 159
  • Update frequency: every 19.7 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

386 reviews

Install metrics

30,000+ active /2,088,745 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.26MB] [CPU: ▼4.76ms] Passed 4 tests

Analyzing server-side resources used by Admin Custom Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2841.40 ▼1.18
Dashboard /wp-admin3.58 ▲0.2349.21 ▼6.05
Posts /wp-admin/edit.php3.69 ▲0.3345.56 ▲0.43
Add New Post /wp-admin/post-new.php6.16 ▲0.2781.33 ▼12.25
Media Library /wp-admin/upload.php3.50 ▲0.2737.10 ▲5.15

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 112 new files
Database: no new tables, 15 new options
New WordPress options
Admin_custome_login_Version
theysaidso_admin_options
Admin_custome_login_Slidshow
widget_recent-posts
Admin_custome_login_top
Admin_custome_login_gcaptcha
Admin_custome_login_Social
Admin_custome_login_login
can_compress_scripts
Admin_custome_login_logo
...

Browser metrics Passed 4 tests

Admin Custom Login: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲4314.24 ▲0.272.08 ▼0.0144.00 ▲1.30
Dashboard /wp-admin2,207 ▲335.62 ▲0.0497.45 ▲13.7543.98 ▲4.73
Posts /wp-admin/edit.php2,112 ▲121.98 ▲0.0034.95 ▼7.3334.71 ▼1.46
Add New Post /wp-admin/post-new.php1,536 ▲123.96 ▲5.66661.93 ▲48.2356.03 ▼10.68
Media Library /wp-admin/upload.php1,412 ▲124.19 ▲0.0393.14 ▼1.3840.24 ▼1.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 15 options in the database
    • Admin_custome_login_logo
    • widget_theysaidso_widget
    • can_compress_scripts
    • Admin_custome_login_gcaptcha
    • Admin_custome_login_Slidshow
    • db_upgraded
    • Admin_custome_login_login
    • Admin_custome_login_top
    • widget_recent-comments
    • Admin_custome_login_Social
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/admin-custom-login/includes/googlecaptcha-settings/gcaptcha-settings.php
    • > /wp-content/plugins/admin-custom-login/includes/design/background.php
    • > /wp-content/plugins/admin-custom-login/includes/settings/page-settings.php
    • > /wp-content/plugins/admin-custom-login/includes/social/social.php
    • > /wp-content/plugins/admin-custom-login/includes/login-form-setting/login-form-background.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/admin-custom-login/css/socialcss.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/admin-custom-login/css/slider-style4.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/admin-custom-login/css/slider-style3.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/admin-custom-login/css/slider-style2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/admin-custom-login/css/slider-style1.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention: Please take inspiration from this readme.txt

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

The principal PHP file in "Admin Custom Login" v. 3.5.4 is loaded by WordPress automatically on each request
134 characters long description:
Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin37,132 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,777
CSS171,0002438,258
PHP253991687,460
JavaScript202402886,975
PO File93,2695,1855,662

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods133.33%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions34
▷ Named functions3397.06%
▷ Anonymous functions12.94%
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
6 PNG files occupy 0.23MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/background-slideshow.png93.43KB94.91KB0.00%
images/default-logo.png1.35KB1.35KB0.00%
css/img/pattern-1.png0.91KB0.10KB▼ 88.96%
images/background-image.png99.21KB100.32KB0.00%
css/img/pattern-2.png1.08KB0.12KB▼ 89.15%