10% stylish-login-pro

Code Review | Stylish Login Pro

WordPress plugin Stylish Login Pro scored 10% from 54 tests.

About plugin

  • Plugin page: stylish-login-pro
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2014
  • Latest release: Apr 21, 2015
  • Number of updates: 24
  • Update frequency: every 9.1 days
  • Top authors: Rimaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,372 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/stylish-login-pro/stylish-admin-login.php+31
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.18MB] [CPU: ▼15.19ms] Passed 4 tests

An overview of server-side resources used by Stylish Login Pro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.50 ▼3.74
Dashboard /wp-admin3.11 ▼0.1926.96 ▼22.67
Posts /wp-admin/edit.php3.25 ▼0.1032.19 ▼14.62
Add New Post /wp-admin/post-new.php5.49 ▼0.4074.31 ▼17.07
Media Library /wp-admin/upload.php3.19 ▼0.0326.99 ▼6.40
Stylish Login /wp-admin/options-general.php?page=stylish-login-pro/stylish-admin-login.php3.1027.83

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
wp_stylish_admin_login
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Stylish Login Pro
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.27 ▼1.321.75 ▼0.1345.09 ▼8.59
Dashboard /wp-admin2,224 ▲365.88 ▲0.06100.99 ▼13.1638.96 ▼4.80
Posts /wp-admin/edit.php2,107 ▲182.02 ▼0.0341.25 ▲3.5436.83 ▼0.73
Add New Post /wp-admin/post-new.php1,535 ▲118.11 ▼5.02619.30 ▲17.2250.68 ▼6.60
Media Library /wp-admin/upload.php1,400 ▲94.27 ▲0.0196.10 ▼11.3643.21 ▲0.47
Stylish Login /wp-admin/options-general.php?page=stylish-login-pro/stylish-admin-login.php8662.0628.3534.05

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 were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=stylish-login-pro/stylish-admin-login.php
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stylish-login-pro/stylish-admin-login.php:219

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please describe screenshot #1 in stylish-login-pro/assets to your readme.txt
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === stylish-login-pro === )
The official readme.txt might help

stylish-login-pro/stylish-admin-login.php 92% from 13 tests

This is the main PHP file of "Stylish Login Pro" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("stylish-login-pro.php" instead of "stylish-admin-login.php")

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 plugin245 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13483207
JavaScript25132
CSS1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png25.70KB4.64KB▼ 81.95%