84% change-default-login-logo-url-and-title

Code Review | Change default login logo,url and title

WordPress plugin Change default login logo,url and title scored84%from 54 tests.

About plugin

  • Plugin page: change-default-lo...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Jan 7, 2016
  • Latest release: Mar 19, 2018
  • Number of updates: 19
  • Update frequency: every 42.2 days
  • Top authors: mynamevenu24 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /18,208 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Change default login logo,url and title
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.89 ▼2.94
Dashboard /wp-admin3.35 ▲0.0454.38 ▲5.57
Posts /wp-admin/edit.php3.46 ▲0.1053.03 ▲6.17
Add New Post /wp-admin/post-new.php5.91 ▲0.02103.77 ▲16.34
Media Library /wp-admin/upload.php3.25 ▲0.0234.96 ▲0.50
Change login logo url and title /wp-admin/options-general.php?page=cwll-logo-title3.2534.21

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

Browser metrics Passed 4 tests

Change default login logo,url and title: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18914.66 ▲0.031.73 ▲0.0639.92 ▲0.10
Dashboard /wp-admin2,349 ▲1706.44 ▲0.58131.56 ▲28.6542.07 ▲2.27
Posts /wp-admin/edit.php2,261 ▲1723.40 ▲1.4056.37 ▲19.8636.20 ▲1.91
Add New Post /wp-admin/post-new.php1,533 ▲1923.37 ▲5.75640.49 ▼88.3235.60 ▼15.44
Media Library /wp-admin/upload.php1,391 ▲94.16 ▼0.1177.88 ▼19.6640.42 ▼4.07
Change login logo url and title /wp-admin/options-general.php?page=cwll-logo-title9903.1039.7470.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/change-default-login-logo-url-and-title/change-logo-url.php:16

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Go to settings -> Change url and title plugin)
The official readme.txt is a good inspiration

change-default-login-logo-url-and-title/change-logo-url.php 92% from 13 tests

The entry point to "Change default login logo,url and title" version 2.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("change-default-login-logo-url-and-title.php" instead of "change-logo-url.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
There were no executable files found in this plugin136 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1263191
CSS14045

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Constants1
▷ Global constants1100.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
css/default.png4.81KB2.02KB▼ 57.90%
screenshot-1.png43.94KB17.64KB▼ 59.85%