84% wp-login-logo-changer-by-ahmad-awais

Code Review | WP Login Logo Changer

WordPress plugin WP Login Logo Changer scored84%from 54 tests.

About plugin

  • Plugin page: wp-login-logo-cha...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.0
  • WordPress version: 6.3.1
  • First release: Jan 26, 2012
  • Latest release: Mar 7, 2020
  • Number of updates: 11
  • Update frequency: every 269.4 days
  • Top authors: mrahmadawais (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,349 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.96ms] Passed 4 tests

A check of server-side resources used by WP Login Logo Changer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.39 ▼3.86
Dashboard /wp-admin3.31 ▼0.0449.07 ▼17.08
Posts /wp-admin/edit.php3.36 ▲0.0047.13 ▼3.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.23 ▲0.45
Media Library /wp-admin/upload.php3.23 ▲0.0037.25 ▲2.49

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Login Logo Changer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,781 ▼514.35 ▼0.381.59 ▼0.2441.03 ▼1.52
Dashboard /wp-admin2,198 ▲245.60 ▲0.0291.45 ▼3.6339.01 ▼3.15
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0534.03 ▼2.9936.51 ▼0.01
Add New Post /wp-admin/post-new.php1,536 ▲1018.52 ▼4.79660.58 ▼25.3960.14 ▲5.78
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.10102.50 ▲2.3044.29 ▼0.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× 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/wp-login-logo-changer-by-ahmad-awais/wp-login-logo-changer-by-ahmad-awais.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: admin, custom, awais, logo, ahmad awais...

wp-login-logo-changer-by-ahmad-awais/wp-login-logo-changer-by-ahmad-awais.php Passed 13 tests

The main file in "WP Login Logo Changer" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Changes login logo by uploading it in the theme's folder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin8 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11157
Markdown1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected