84% custom-login-logo

Code Review | Custom Login Logo

WordPress plugin Custom Login Logo scored84%from 54 tests.

About plugin

  • Plugin page: custom-login-logo
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.1.12+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.4
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: Jun 30, 2018
  • Number of updates: 20
  • Update frequency: every 93.0 days
  • Top authors: hchouhan (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

4,000+ active /49,405 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Custom Login Logo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.21 ▼5.18
Dashboard /wp-admin3.32 ▼0.0246.24 ▼16.39
Posts /wp-admin/edit.php3.38 ▲0.0251.93 ▲3.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.00 ▼10.23
Media Library /wp-admin/upload.php3.25 ▲0.0236.36 ▲2.87
Custom Login Logo /wp-admin/options-general.php?page=themeist_cll3.2431.31

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Custom Login Logo: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.321.61 ▼0.1840.83 ▲0.63
Dashboard /wp-admin2,202 ▲255.63 ▼0.0687.36 ▼0.0338.82 ▼1.53
Posts /wp-admin/edit.php2,104 ▲12.00 ▲0.0040.84 ▲4.0636.32 ▼3.80
Add New Post /wp-admin/post-new.php1,540 ▼1017.94 ▼0.17638.94 ▲15.2355.82 ▼5.93
Media Library /wp-admin/upload.php1,407 ▲164.22 ▲0.0099.33 ▲0.4643.76 ▲2.17
Custom Login Logo /wp-admin/options-general.php?page=themeist_cll8251.8534.5226.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 1× 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/custom-login-logo/admin/partials/custom-login-logo-admin-display.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: themeist, logo, login screen, customize, custom logo...

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

"Custom Login Logo" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin267 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP89114224
JavaScript151229
Markdown18014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.40
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin