94% advance-login-style

Code Review | Advance Login Style

WordPress plugin Advance Login Style scored 94% from 54 tests.

About plugin

  • Plugin page: advance-login-style
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.9.1
  • WordPress version: 5.9.2
  • First release: Jun 12, 2014
  • Latest release: Jul 12, 2014
  • Number of updates: 20
  • Update frequency: every 1.6 days
  • Top authors: pluginsbazaar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 5,908 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼297.31ms] Passed 4 tests

An overview of server-side resources used by Advance Login Style
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0556.52 ▲3.76
Dashboard /wp-admin3.47 ▲0.0631.98 ▼3.62
Posts /wp-admin/edit.php3.69 ▲0.0537.82 ▼0.25
Add New Post /wp-admin/post-new.php6.93 ▼0.0493.87 ▼1,183.48
Media Library /wp-admin/upload.php3.35 ▲0.0525.60 ▼1.87
Login Logo /wp-admin/admin.php?page=advance_login_style_logo-dashboard3.3522.76
Advance Login /wp-admin/admin.php?page=advance_login_style-dashboard3.3526.12
Login Form /wp-admin/admin.php?page=advance_login_style_form-dashboard3.3621.87

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 3 new options
New WordPress options
advance_login_style
advance_login_style_form
advance_login_style_logo

Browser metrics Passed 4 tests

An overview of browser requirements for Advance Login Style
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3415.88 ▲0.086.00 ▼0.272.19 ▼0.38
Dashboard /wp-admin2,925 ▲706.01 ▼0.22125.46 ▼13.59179.81 ▲15.53
Posts /wp-admin/edit.php2,720 ▲263.25 ▲0.0164.73 ▲2.83141.52 ▲4.33
Add New Post /wp-admin/post-new.php1,782 ▲6317.37 ▲0.18416.70 ▼7.01194.87 ▲31.36
Media Library /wp-admin/upload.php1,730 ▲385.43 ▼0.09125.46 ▼22.88205.32 ▲13.70
Login Logo /wp-admin/admin.php?page=advance_login_style_logo-dashboard1,6383.6078.86132.58
Advance Login /wp-admin/admin.php?page=advance_login_style-dashboard1,6293.6177.68121.34
Login Form /wp-admin/admin.php?page=advance_login_style_form-dashboard2,7694.22106.84121.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-login-style/advance_login_style-frontend/advance_login_style-front.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_advance_login_style_options() in wp-content/plugins/advance-login-style/admin/advance_login_style-admin.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advance-login-style/admin/pages/advance_login_style-dashboard.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advance-login-style/admin/pages/advance_login_style_logo-dashboard.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-login-style/admin/advance_login_style-config.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advance-login-style/admin/pages/advance_login_style_form-dashboard.php:11

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

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: change login, admin, chage custom login style, change login style, custom login...

advance-login-style/advance_login_style.php 85% from 13 tests

This is the main PHP file of "Advance Login Style" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("advance-login-style.php" instead of "advance_login_style.php")

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
Success! There were no dangerous files found in this plugin928 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10285261745
CSS1201128
Markdown224055

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity21.50
▷ Minimum class complexity17.00
▷ Maximum class complexity26.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/advance-login-style20x20.png1.88KB1.09KB▼ 42.14%
images/advance-login-style80x80.png7.51KB2.61KB▼ 65.23%