90% ac-change-login-logo

Code Review | AC Change Login Image

WordPress plugin AC Change Login Image scored 90% 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: 6.3.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 / 896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.75ms] Passed 4 tests

Analyzing server-side resources used by AC Change Login Image
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.97 ▼13.55
Dashboard /wp-admin3.32 ▲0.0246.38 ▲2.18
Posts /wp-admin/edit.php3.38 ▲0.0253.84 ▲2.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.16 ▼2.46
Media Library /wp-admin/upload.php3.25 ▲0.0238.62 ▲7.89
Login Logo /wp-admin/themes.php?page=ac_login_logo_admin_menu3.2335.26

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by AC Change Login Image
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.21 ▼1.161.68 ▼0.3541.05 ▼25.33
Dashboard /wp-admin2,210 ▲195.88 ▲0.95108.06 ▲4.7843.88 ▼0.90
Posts /wp-admin/edit.php2,098 ▲61.98 ▲0.0153.82 ▲13.9041.07 ▲1.85
Add New Post /wp-admin/post-new.php1,536 ▲2223.22 ▲5.63643.85 ▼36.9758.37 ▼4.81
Media Library /wp-admin/upload.php1,395 ▲134.26 ▲0.0396.22 ▼1.8745.96 ▲2.70
Login Logo /wp-admin/themes.php?page=ac_login_logo_admin_menu9713.0340.0723.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

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: Add images for these screenshots: #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

"AC Change Login Image" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin105 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP41151105

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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%