78% login-customizer-plus

Code Review | Login Customizer Plus

WordPress plugin Login Customizer Plus scored 78% from 54 tests.

About plugin

  • Plugin page: login-customizer-...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2018
  • Latest release: Sep 5, 2023
  • Number of updates: 12
  • Update frequency: every 171.6 days
  • Top authors: techuptodate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Login Customizer Plus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.34 ▼3.48
Dashboard /wp-admin3.33 ▲0.0244.52 ▼4.44
Posts /wp-admin/edit.php3.38 ▲0.0348.17 ▲1.98
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.94 ▼21.30
Media Library /wp-admin/upload.php3.25 ▲0.0239.44 ▲6.81

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 14 new options
New WordPress options
widget_recent-comments
admin_fa_tw
db_upgraded
admin_bgclr
admin_ft_text
widget_theysaidso_widget
widget_recent-posts
admin_fa_ig
theysaidso_admin_options
admin_fa_fb
...

Browser metrics Passed 4 tests

Login Customizer Plus: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲22913.72 ▼0.931.79 ▲0.1036.50 ▼7.61
Dashboard /wp-admin2,352 ▲1645.63 ▼0.27102.12 ▲0.6275.63 ▲32.10
Posts /wp-admin/edit.php2,250 ▲1582.55 ▲0.5044.08 ▲3.9256.95 ▲21.53
Add New Post /wp-admin/post-new.php6,565 ▲5,03225.28 ▲1.86999.36 ▲333.8739.26 ▼14.08
Media Library /wp-admin/upload.php1,547 ▲1594.87 ▲0.69112.34 ▲13.2580.86 ▲35.49

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/login-customizer-plus/login-customizer-plus.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/login-customizer-plus/templates/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/login-customizer-plus/templates/about.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/login-customizer-plus/templates/icons.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can look at the official readme.txt

login-customizer-plus/login-customizer-plus.php 85% from 13 tests

Analyzing the main PHP file in "Login Customizer Plus" version 1.1.0
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin5,556 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS41182,353
PHP824545481
JavaScript4492451

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods1191.67%
▷ Protected methods18.33%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
image/lcp-menu-icon.png3.53KB0.94KB▼ 73.45%