84% advance-login-style

Code Review | Advance Login Style

WordPress plugin Advance Login Style scored 84% 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: 6.3.1
  • 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

90+ active / 6,220 total downloads

Benchmarks

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.75ms] Passed 4 tests

Server-side resources used by Advance Login Style
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.21 ▲0.91
Dashboard /wp-admin3.35 ▲0.0548.91 ▼0.62
Posts /wp-admin/edit.php3.47 ▲0.1147.72 ▲2.82
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.91 ▼10.09
Media Library /wp-admin/upload.php3.28 ▲0.0537.91 ▲3.30
Login Logo /wp-admin/admin.php?page=advance_login_style_logo-dashboard3.2834.14
Advance Login /wp-admin/admin.php?page=advance_login_style-dashboard3.2834.27
Login Form /wp-admin/admin.php?page=advance_login_style_form-dashboard3.2932.40

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_recent-posts
advance_login_style_logo
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
advance_login_style
advance_login_style_form

Browser metrics Passed 4 tests

Checking browser requirements for Advance Login Style
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.20 ▼1.611.81 ▲0.1643.95 ▲1.73
Dashboard /wp-admin2,235 ▲495.80 ▲0.8698.26 ▼7.0781.19 ▲38.56
Posts /wp-admin/edit.php2,115 ▲291.98 ▲0.0236.90 ▼0.3734.32 ▲2.44
Add New Post /wp-admin/post-new.php1,690 ▲15322.62 ▼0.89728.88 ▲54.8050.99 ▼5.09
Media Library /wp-admin/upload.php1,411 ▲234.24 ▼0.0393.93 ▼1.3470.42 ▲25.99
Login Logo /wp-admin/admin.php?page=advance_login_style_logo-dashboard1,2202.4945.8133.98
Advance Login /wp-admin/admin.php?page=advance_login_style-dashboard1,2142.5946.0531.18
Login Form /wp-admin/admin.php?page=advance_login_style_form-dashboard1,8763.0274.5831.47

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > 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
    • > 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 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 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_logo-dashboard.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: custom login, chage custom login style, login, admin, change login...

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

The primary PHP file in "Advance Login Style" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.2")
  • Main file name: Name the main plugin file 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected928 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10285261745
CSS1201128
Markdown224055

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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-style80x80.png7.51KB2.61KB▼ 65.23%
images/advance-login-style20x20.png1.88KB1.09KB▼ 42.14%