89% admin-login-custom-form

Code Review | Custom Admin Login Form

WordPress plugin Custom Admin Login Form scored89%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-6.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2022
  • Latest release: Nov 6, 2022
  • Number of updates: 7
  • Update frequency: every 34.7 days
  • Top authors: vaibhav31gangrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.94ms] Passed 4 tests

Server-side resources used by Custom Admin Login Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0240.77 ▼2.67
Dashboard /wp-admin3.59 ▲0.0347.99 ▼4.50
Posts /wp-admin/edit.php3.70 ▲0.0352.25 ▲3.59
Add New Post /wp-admin/post-new.php6.17 ▲0.0389.01 ▼14.20
Media Library /wp-admin/upload.php3.51 ▲0.0239.14 ▲1.60
Plugin Settings /wp-admin/options-general.php?page=my-plugin-slug3.4834.39

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
form_background_img_url
form_background_color

Browser metrics Passed 4 tests

Checking browser requirements for Custom Admin Login Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.20 ▼0.232.10 ▲0.2742.29 ▼0.12
Dashboard /wp-admin2,202 ▲225.73 ▲0.09109.49 ▲20.9765.78 ▲21.47
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0443.16 ▲6.3435.39 ▲3.09
Add New Post /wp-admin/post-new.php1,529 ▲317.93 ▲0.28607.85 ▼56.0953.97 ▲0.44
Media Library /wp-admin/upload.php1,404 ▲44.31 ▲0.0897.54 ▼8.0944.99 ▼0.67
Plugin Settings /wp-admin/options-general.php?page=my-plugin-slug8042.0425.2725.52

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • form_background_color
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • form_background_img_url
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #3, #4, #5, #6, #7, #8 in admin-login-custom-form/assets to your readme.txt
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

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

"Custom Admin Login Form" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • 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 a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected141 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13832141

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin