78% ald-login-page

Code Review | ALD Login Page

WordPress plugin ALD Login Page scored78%from 54 tests.

About plugin

  • Plugin page: ald-login-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-5.6
  • WordPress version: 6.3.1
  • First release: Apr 4, 2018
  • Latest release: Jan 1, 2021
  • Number of updates: 10
  • Update frequency: every 100.3 days
  • Top authors: hossainawlad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /855 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.80ms] Passed 4 tests

A check of server-side resources used by ALD Login Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.17 ▼5.55
Dashboard /wp-admin3.36 ▲0.0654.54 ▲3.15
Posts /wp-admin/edit.php3.47 ▲0.1156.96 ▲3.68
Add New Post /wp-admin/post-new.php5.93 ▲0.04107.49 ▲8.35
Media Library /wp-admin/upload.php3.25 ▲0.0339.09 ▲1.93
Login Page /wp-admin/options-general.php?page=ald_login_page3.2235.58

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for ALD Login Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲20115.27 ▲0.991.75 ▼0.2143.62 ▲0.71
Dashboard /wp-admin2,365 ▲1876.53 ▲0.82118.67 ▲14.9038.91 ▼5.55
Posts /wp-admin/edit.php2,296 ▲1933.73 ▲1.7557.85 ▲19.4034.27 ▲0.33
Add New Post /wp-admin/post-new.php1,553 ▲1821.67 ▲3.30706.44 ▲49.8439.57 ▼35.45
Media Library /wp-admin/upload.php1,430 ▲364.47 ▲0.3190.86 ▼6.9742.46 ▼2.06
Login Page /wp-admin/options-general.php?page=ald_login_page1,2893.6866.9224.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ald_login_page
    • > Notice in wp-content/plugins/ald-login-page/ald-login-page.php+122
    Undefined variable: logo

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ald-login-page/ald-login-page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: login, form, login form

ald-login-page/ald-login-page.php 92% from 13 tests

The principal PHP file in "ALD Login Page" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin168 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
PNG images were not found in this plugin