84% advanced-login-form

Code Review | Advanced Login Form

WordPress plugin Advanced Login Form scored84%from 54 tests.

About plugin

  • Plugin page: advanced-login-form
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jan 2, 2015
  • Latest release: Oct 26, 2022
  • Number of updates: 8
  • Update frequency: every 356.7 days
  • Top authors: dipto99 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,066 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.16ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Login Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.57 ▼6.55
Dashboard /wp-admin3.32 ▼0.0348.40 ▼20.82
Posts /wp-admin/edit.php3.37 ▲0.0158.19 ▲5.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.65 ▼16.92
Media Library /wp-admin/upload.php3.24 ▲0.0139.08 ▲3.67

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Login Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3413.96 ▼0.702.05 ▼0.2432.10 ▼11.29
Dashboard /wp-admin2,198 ▲245.61 ▲0.0498.02 ▲5.1845.08 ▲1.57
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0439.26 ▲3.5832.66 ▼3.53
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▼0.03646.61 ▼43.6652.98 ▼3.50
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.05107.35 ▼2.0943.50 ▼3.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings 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:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: The official readme.txt might help

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

The primary PHP file in "Advanced Login Form" version 1.0.1 is used by WordPress to initiate all plugin functionality
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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin176 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1293149
PHP181927

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected