78% clean-login

Code Review | Clean Login

WordPress plugin Clean Login scored78%from 54 tests.

About plugin

  • Plugin page: clean-login
  • Plugin version: 1.14.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Jun 2, 2014
  • Latest release: Nov 4, 2023
  • Number of updates: 161
  • Update frequency: every 21.4 days
  • Top authors: hornero (63.35%)carazo (37.27%)

Code review

54 tests

User reviews

141 reviews

Install metrics

9,000+ active /458,166 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼7.05ms] Passed 4 tests

An overview of server-side resources used by Clean Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3540.67 ▼1.01
Dashboard /wp-admin3.64 ▲0.3049.82 ▼10.04
Posts /wp-admin/edit.php3.76 ▲0.4045.61 ▼0.83
Add New Post /wp-admin/post-new.php6.23 ▲0.3484.55 ▼16.32
Media Library /wp-admin/upload.php3.57 ▲0.3442.33 ▲8.85
Clean Login /wp-admin/options-general.php?page=clean_login_menu3.5439.77

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_clean_login_widget
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Clean Login: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.05 ▼0.231.64 ▼0.0037.09 ▼7.48
Dashboard /wp-admin2,193 ▲135.49 ▼0.1786.20 ▼8.7740.31 ▲0.13
Posts /wp-admin/edit.php2,101 ▲11.96 ▲0.0237.02 ▼9.6033.19 ▼13.03
Add New Post /wp-admin/post-new.php1,529 ▲323.27 ▼0.26676.54 ▲48.2353.85 ▼2.48
Media Library /wp-admin/upload.php1,404 ▲14.20 ▲0.01105.59 ▲8.1543.81 ▲1.61
Clean Login /wp-admin/options-general.php?page=clean_login_menu1,3312.0725.9532.99

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_clean_login_widget
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/clean-login/content/captcha/index.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clean-login/include/i18n.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/clean-login/include/widget.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can take inspiration from this readme.txt

clean-login/clean-login.php 92% from 13 tests

This is the main PHP file of "Clean Login" version 1.14.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 223 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin7,066 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PO File191,7382,6864,982
PHP174161191,860
CSS14211224

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 121)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity33.40
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity5.84
▷ Minimum method complexity1.00
▷ Maximum method complexity121.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods67
▷ Static methods1116.42%
▷ Public methods5886.57%
▷ Protected methods913.43%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
content/images/spam.png0.47KB0.45KB▼ 4.35%
content/images/log.png0.43KB0.41KB▼ 4.51%
content/images/mail.png0.37KB0.35KB▼ 4.47%
content/images/surname.png0.43KB0.41KB▼ 4.76%
content/images/pwd.png0.33KB0.30KB▼ 6.31%