94% login-logo-editor-by-oizuled

Code Review | Login Logo Editor

WordPress plugin Login Logo Editor scored 94% from 54 tests.

About plugin

  • Plugin page: login-logo-editor...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8.1
  • WordPress version: 5.9.2
  • First release: Dec 12, 2013
  • Latest release: Oct 14, 2021
  • Number of updates: 37
  • Update frequency: every 77.4 days
  • Top authors: scott.deluzio (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active / 29,371 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Login Logo Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.38 ▲6.47
Dashboard /wp-admin3.43 ▲0.0233.72 ▲0.84
Posts /wp-admin/edit.php3.66 ▲0.0239.96 ▲0.72
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.19 ▼1,176.36
Media Library /wp-admin/upload.php3.31 ▲0.0126.03 ▼0.15
Login Logo /wp-admin/options-general.php?page=login_logo_editor3.3627.88

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 4 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Login Logo Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,760 ▲3816.12 ▲0.127.00 ▲1.022.27 ▼0.52
Dashboard /wp-admin2,894 ▲366.09 ▼0.03114.96 ▼18.60153.22 ▼9.16
Posts /wp-admin/edit.php2,695 ▲13.23 ▼0.1462.14 ▼1.88136.13 ▼1.93
Add New Post /wp-admin/post-new.php1,714 ▼3820.82 ▼0.69428.74 ▼25.27158.18 ▲1.13
Media Library /wp-admin/upload.php1,703 ▲55.48 ▼0.01155.75 ▲17.99183.38 ▼4.20
Login Logo /wp-admin/options-general.php?page=login_logo_editor1,4124.2670.60166.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/login-logo-editor-by-oizuled/options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-logo-editor-by-oizuled/login-logo-by-oizuled.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: custom logo, login screen, login, plugin, customize...

login-logo-editor-by-oizuled/login-logo-by-oizuled.php 92% from 13 tests

Analyzing the main PHP file in "Login Logo Editor" version 1.3.3
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("login-logo-editor-by-oizuled.php" instead of "login-logo-by-oizuled.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected228 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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 functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
w-logo-blue.png4.60KB3.09KB▼ 32.80%