83% change-login-page-logo

Code Review | Change Login Page Logo

WordPress plugin Change Login Page Logo scored83%from 54 tests.

About plugin

  • Plugin page: change-login-page...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.9
  • WordPress version: 6.3.1
  • First release: Apr 28, 2021
  • Latest release: Feb 18, 2022
  • Number of updates: 5
  • Update frequency: every 59.4 days
  • Top authors: subodhghulaxe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /2,588 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Change Login Page Logo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.0549.32 ▲2.60
Dashboard /wp-admin3.70 ▲0.0656.95 ▼11.55
Posts /wp-admin/edit.php3.75 ▲0.0762.47 ▲9.34
Add New Post /wp-admin/post-new.php6.20 ▲0.0593.28 ▼19.61
Media Library /wp-admin/upload.php3.54 ▲0.0542.88 ▲1.95
Change Login Logo /wp-admin/options-general.php?page=clpl_settings3.5540.47

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Change Login Page Logo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18914.53 ▲0.231.70 ▼0.0040.75 ▼9.57
Dashboard /wp-admin2,338 ▲1616.18 ▲0.46115.87 ▲13.3839.25 ▲1.79
Posts /wp-admin/edit.php2,263 ▲1633.33 ▲1.3049.38 ▲12.4532.75 ▼2.91
Add New Post /wp-admin/post-new.php1,545 ▼423.32 ▲0.36676.07 ▲23.3837.07 ▼18.92
Media Library /wp-admin/upload.php1,403 ▲34.12 ▼0.0486.46 ▼30.2741.95 ▼8.07
Change Login Logo /wp-admin/options-general.php?page=clpl_settings1,1443.3544.0542.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/change-login-page-logo/admin/pages/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (**Settings Page** - Here you can manage login logo settings.), #2 (**Help Page** - List of FAQ and support contact information.), #3 (**WordPress Login Page** - Changed login logo.)
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

change-login-page-logo/CLPL.php 77% from 13 tests

The entry point to "Change Login Page Logo" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("change-login-page-logo.php" instead of "CLPL.php")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)

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
Success! There were no dangerous files found in this plugin446 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP562130332
CSS100114

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.50
▷ Minimum class complexity10.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin