89% admin-login-custom-form

Code Review | Custom Admin Login Form

WordPress plugin Custom Admin Login Form scored 89% from 54 tests.

About plugin

  • Plugin page: admin-login-custo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Mar 9, 2022
  • Latest release: Mar 13, 2022
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: vaibhav31gangrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 34 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.01MB] [CPU: ▼304.57ms] Passed 4 tests

An overview of server-side resources used by Custom Admin Login Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.99 ▲3.49
Dashboard /wp-admin3.42 ▲0.0234.79 ▼1.49
Posts /wp-admin/edit.php3.65 ▲0.0144.90 ▲5.79
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.78 ▼1,220.90
Media Library /wp-admin/upload.php3.30 ▲0.0124.61 ▲0.62
Plugin Settings /wp-admin/options-general.php?page=my-plugin-slug3.2721.59

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, 2 new options
New WordPress options
form_background_color
form_background_img_url

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Admin Login Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲4115.16 ▼0.885.72 ▼1.322.34 ▼0.23
Dashboard /wp-admin2,897 ▲366.20 ▲0.00118.35 ▼22.90154.59 ▼5.71
Posts /wp-admin/edit.php2,696 ▲23.25 ▲0.0168.40 ▲5.61140.35 ▼5.84
Add New Post /wp-admin/post-new.php1,664 ▲415.56 ▼6.84436.92 ▲25.98159.37 ▼29.38
Media Library /wp-admin/upload.php1,699 ▲15.49 ▼0.11145.78 ▼8.55218.75 ▼8.08
Plugin Settings /wp-admin/options-general.php?page=my-plugin-slug1,0222.3954.9590.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 2 options in the database
    • form_background_img_url
    • form_background_color

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots need descriptions #1, #3, #4, #5, #6, #7, #8 in admin-login-custom-form/assets to your readme.txt
Please take inspiration from this readme.txt

admin-login-custom-form/custom-admin-login-form.php 92% from 13 tests

The entry point to "Custom Admin Login Form" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-login-custom-form.php" instead of "custom-admin-login-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected141 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13832141

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected