78% my-wp-login-logo

Code Review | My WordPress Login Logo

WordPress plugin My WordPress Login Logo scored 78% from 54 tests.

About plugin

  • Plugin page: my-wp-login-logo
  • Plugin version: 2.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Jan 19, 2013
  • Latest release: Apr 9, 2021
  • Number of updates: 37
  • Update frequency: every 81.1 days
  • Top authors: afsalrahim (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

20,000+ active / 148,968 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by My WordPress Login Logo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.28 ▼0.51
Dashboard /wp-admin3.32 ▲0.0144.05 ▼4.27
Posts /wp-admin/edit.php3.37 ▲0.0148.49 ▲2.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.80 ▲1.39
Media Library /wp-admin/upload.php3.24 ▲0.0135.30 ▲0.07

Server storage [IO: ▲0.03MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for My WordPress Login Logo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19513.80 ▼0.561.74 ▼0.2441.39 ▼4.27
Dashboard /wp-admin2,222 ▲344.90 ▼0.07108.41 ▼13.2043.78 ▼8.31
Posts /wp-admin/edit.php2,108 ▲192.01 ▼0.0241.27 ▼5.1535.76 ▼1.90
Add New Post /wp-admin/post-new.php1,534 ▼823.12 ▲4.94631.23 ▼3.7959.98 ▲7.66
Media Library /wp-admin/upload.php1,407 ▲194.21 ▼0.0396.42 ▼18.3040.32 ▼4.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 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
Almost there! Just fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/my-wp-login-logo/views/dashboard.php
    • > /wp-content/plugins/my-wp-login-logo/views/faq.php
    • > /wp-content/plugins/my-wp-login-logo/views/plugin-info.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/my-wp-login-logo/core/custom-styles.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/my-wp-login-logo/core/custom-js.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/my-wp-login-logo/dc-custom-login-logo.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: custom logo, wordpress login logo, change login page logo, login page logo, logo changer

my-wp-login-logo/dc-custom-login-logo.php 92% from 13 tests

"My WordPress Login Logo" version 2.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("my-wp-login-logo.php" instead of "dc-custom-login-logo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected313 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP75214311
CSS1112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/email.png0.63KB0.61KB▼ 3.10%
css/images/sprites.png2.11KB1.69KB▼ 19.79%
images/digitcodes-icon.png0.57KB0.66KB0.00%
images/mylogo.png6.18KB4.19KB▼ 32.10%
css/images/pattern-chronicl.png0.14KB0.13KB▼ 2.82%