94% advanced-login-form

Code Review | Advanced Login Form

WordPress plugin Advanced Login Form scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-login-form
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 5.9.2
  • First release: Jan 2, 2015
  • Latest release: Jan 21, 2015
  • Number of updates: 6
  • Update frequency: every 3.2 days
  • Top authors: dipto99 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,834 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼281.79ms] Passed 4 tests

An overview of server-side resources used by Advanced Login Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0263.48 ▲10.46
Dashboard /wp-admin3.43 ▲0.0135.86 ▲1.59
Posts /wp-admin/edit.php3.66 ▲0.0140.77 ▲0.04
Add New Post /wp-admin/post-new.php6.90 ▼0.0897.80 ▼1,130.66
Media Library /wp-admin/upload.php3.31 ▲0.0126.96 ▲1.89

Server storage [IO: ▲1.45MB] [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: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Login Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,807 ▲6316.04 ▼0.056.58 ▼0.563.05 ▲0.88
Dashboard /wp-admin2,895 ▲406.14 ▼0.09119.76 ▼40.53162.13 ▼5.00
Posts /wp-admin/edit.php2,691 ▲33.23 ▲0.0065.20 ▼9.30140.56 ▼71.55
Add New Post /wp-admin/post-new.php1,711 ▼021.61 ▲0.67433.33 ▼31.35178.60 ▲21.10
Media Library /wp-admin/upload.php1,691 ▼35.55 ▲0.02161.70 ▲13.59232.45 ▲19.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-login-form/advanced-login-form.php:23

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

advanced-login-form/advanced-login-form.php Passed 13 tests

The entry point to "Advanced Login Form" version 1.0 is a PHP file that has certain tags in its header comment area
51 characters long description:
It is a more customize wordpress login form plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected711 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG100520
CSS2336124
PHP1182439
JavaScript14328

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/button_bg.png0.91KB0.09KB▼ 90.56%
images/login_bg.png0.91KB0.09KB▼ 89.69%