100% ac-change-login-logo

Code Review | AC Change Login Image

WordPress plugin AC Change Login Image scored 100% from 54 tests.

About plugin

  • Plugin page: ac-change-login-logo
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.1.1
  • WordPress version: 5.8.1
  • First release: Apr 2, 2019
  • Latest release: Apr 3, 2019
  • Number of updates: 12
  • Update frequency: every 22.0 days
  • Top authors: Antoniocampos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 642 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by AC Change Login Image
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0233.70 ▲7.59
Dashboard /wp-admin3.08 ▲0.0134.19 ▼15.70
Posts /wp-admin/edit.php3.13 ▲0.0235.91 ▲0.60
Add New Post /wp-admin/post-new.php5.44 ▲0.0073.80 ▼587.76
Media Library /wp-admin/upload.php3.02 ▲0.0223.30 ▼3.47
Login Logo /wp-admin/themes.php?page=ac_login_logo_admin_menu3.0124.66

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AC Change Login Image
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,671 ▲7016.00 ▼0.076.62 ▲1.0382.45 ▲6.06
Dashboard /wp-admin2,938 ▲426.10 ▼0.01121.61 ▼5.09169.00 ▼5.63
Posts /wp-admin/edit.php2,748 ▲423.24 ▼0.0164.73 ▼3.00139.56 ▼0.79
Add New Post /wp-admin/post-new.php3,745 ▲9919.00 ▲0.30464.46 ▼29.85171.46 ▲0.94
Media Library /wp-admin/upload.php1,757 ▲85.52 ▲0.07159.20 ▲11.54202.37 ▲15.32
Login Logo /wp-admin/themes.php?page=ac_login_logo_admin_menu1,3304.2571.70106.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (The final result (wp-login.php)), #2 (The simples interface)
The official readme.txt is a good inspiration

ac-change-login-logo/ac-change-login-logo.php Passed 13 tests

The main file in "AC Change Login Image" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
Change the Login screen logo. After activate go to Appearance -> Login logo and choose your logo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin105 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png33.44KB13.18KB▼ 60.59%
screenshot-1.png13.88KB5.46KB▼ 60.70%