10% stylish-admin-login-form

Code Review | Stylish Admin Login Form

WordPress plugin Stylish Admin Login Form scored10%from 54 tests.

About plugin

  • Plugin page: stylish-admin-log...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Jul 6, 2022
  • Latest release: Jul 6, 2022
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /189 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/stylish-admin-login-form/plugin.php+33
    Trying to access array offset on value of type bool

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

A check of server-side resources used by Stylish Admin Login Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5747.65 ▲1.34
Dashboard /wp-admin3.88 ▲0.5755.39 ▼1.68
Posts /wp-admin/edit.php3.93 ▲0.5756.67 ▲4.23
Add New Post /wp-admin/post-new.php6.40 ▲0.5194.74 ▼0.70
Media Library /wp-admin/upload.php3.74 ▲0.5143.39 ▲6.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
salf__options
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stylish Admin Login Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲13413.38 ▼1.002.14 ▲0.3248.09 ▲3.44
Dashboard /wp-admin2,277 ▲894.86 ▼1.20107.57 ▲2.5443.06 ▲4.54
Posts /wp-admin/edit.php2,157 ▲682.03 ▼0.0136.86 ▼1.8436.65 ▲1.87
Add New Post /wp-admin/post-new.php1,572 ▲5323.44 ▲0.21681.24 ▲48.3654.73 ▼1.26
Media Library /wp-admin/upload.php1,457 ▲754.24 ▲0.00103.55 ▲2.9048.90 ▲3.24
LOGIN PAGE /wp-admin/admin.php?page=salf-form#tab=login-page1,5914.2585.0725.14
LOGO /wp-admin/admin.php?page=salf-form#tab=logo1,3743.6660.8632.87
LOGIN FORM /wp-admin/admin.php?page=salf-form#tab=login-form1,8454.8685.6422.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • salf__options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can take inspiration from this readme.txt

stylish-admin-login-form/plugin.php 85% from 13 tests

The primary PHP file in "Stylish Admin Login Form" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("stylish-admin-login-form.php" instead of "plugin.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected2,423 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP239004772,416
SVG3003
CSS2002
JavaScript2222

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity35.18
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity8.55
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes211.76%
▷ Concrete classes1588.24%
▷ Final classes00.00%
Methods77
▷ Static methods2735.06%
▷ Public methods77100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/lib/assets/images/checkerboard.png2.29KB2.54KB0.00%