84% customize-login-image

Code Review | Customize Login Image

WordPress plugin Customize Login Image scored84%from 54 tests.

About plugin

  • Plugin page: customize-login-i...
  • Plugin version: 3.5.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 12, 2013
  • Latest release: Sep 23, 2023
  • Number of updates: 72
  • Update frequency: every 50.9 days
  • Top authors: apasionados (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

6,000+ active /58,466 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.35ms] Passed 4 tests

An overview of server-side resources used by Customize Login Image
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0540.05 ▼0.64
Dashboard /wp-admin3.36 ▲0.0644.75 ▼5.18
Posts /wp-admin/edit.php3.41 ▲0.0550.44 ▲2.64
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.33 ▼2.27
Media Library /wp-admin/upload.php3.28 ▲0.0535.00 ▼1.29
Customize Login Image /wp-admin/options-general.php?page=customize-login-image/customize-login-image-options.php3.2633.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Customize Login Image: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4613.32 ▼1.261.58 ▼0.4040.83 ▼9.06
Dashboard /wp-admin2,210 ▲195.81 ▲0.9098.31 ▼18.4336.62 ▼7.55
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0439.47 ▲0.3235.56 ▲0.97
Add New Post /wp-admin/post-new.php1,522 ▲323.24 ▼0.13640.74 ▼56.1953.23 ▲0.26
Media Library /wp-admin/upload.php1,386 ▲14.25 ▲0.0197.19 ▼8.3140.62 ▼2.60
Customize Login Image /wp-admin/options-general.php?page=customize-login-image/customize-login-image-options.php1,0412.6653.4726.15

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-login-image/customize-login-image-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-login-image/customize-login-image.php:79

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: login, customize, logo, admin, custom

customize-login-image/customize-login-image.php Passed 13 tests

"Customize Login Image" version 3.5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
This plugin allows you to customize the image and the appearance of the WordPress Login Screen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin355 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File25674180
PHP21720148
JavaScript141027

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
customize-login-image.png2.42KB2.45KB0.00%