83% login-page-ui-customizer

Code Review | Login Page UI Customizer

WordPress plugin Login Page UI Customizer scored 83% from 54 tests.

About plugin

  • Plugin page: login-page-ui-cus...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 30, 2022
  • Latest release: Jul 12, 2023
  • Number of updates: 7
  • Update frequency: every 27.9 days
  • Top authors: cloudredux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 978 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.60MB] [CPU: ▼4.57ms] Passed 4 tests

An overview of server-side resources used by Login Page UI Customizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6345.97 ▲3.70
Dashboard /wp-admin3.96 ▲0.5853.26 ▼26.12
Posts /wp-admin/edit.php4.01 ▲0.6650.34 ▲2.25
Add New Post /wp-admin/post-new.php6.48 ▲0.5994.23 ▲2.01
Media Library /wp-admin/upload.php3.82 ▲0.5940.06 ▲3.58
Login Page UI /wp-admin/options-general.php?page=crlpuic-settings3.7936.86

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_recent-comments
admin-crlpuic-settings
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
crlpuic-settings

Browser metrics Passed 4 tests

An overview of browser requirements for Login Page UI Customizer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲12213.56 ▼0.821.60 ▼0.1730.23 ▼19.59
Dashboard /wp-admin2,213 ▲254.84 ▼0.05104.80 ▼4.2439.15 ▲0.05
Posts /wp-admin/edit.php2,099 ▲102.05 ▲0.0537.79 ▼2.2330.63 ▼3.32
Add New Post /wp-admin/post-new.php1,541 ▲623.31 ▲0.09646.81 ▲7.5364.60 ▲13.10
Media Library /wp-admin/upload.php1,398 ▲134.25 ▲0.01108.17 ▼1.6346.33 ▲3.66
Login Page UI /wp-admin/options-general.php?page=crlpuic-settings9812.1728.4160.34

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • admin-crlpuic-settings
    • crlpuic-settings
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/login-page-ui-customizer/includes/login-page-template.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-page-ui-customizer/includes/functions/core.php:235

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in login-page-ui-customizer/assets to your readme.txt
Please take inspiration from this readme.txt

login-page-ui-customizer/login-page-ui-customizer.php 92% from 13 tests

Analyzing the main PHP file in "Login Page UI Customizer" version 1.0.1
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,014 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP161,0391,3573,763
JavaScript62301181,511
CSS61247738
SVG2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity20.30
▷ Minimum class complexity1.00
▷ Maximum class complexity147.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods108
▷ Static methods1312.04%
▷ Public methods10193.52%
▷ Protected methods54.63%
▷ Private methods21.85%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 3.48MB with 1.99MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/side-illustrations-3.png1,470.06KB270.65KB▼ 81.59%
assets/images/side-illustrations-2.png46.92KB16.46KB▼ 64.91%
assets/images/bg.png235.42KB53.61KB▼ 77.23%
assets/images/login-page-ui-customizer-icon.png7.74KB8.10KB0.00%
assets/images/side-illustrations-1.png54.60KB20.77KB▼ 61.97%