84% login-page-logo-change

Code Review | Login Page Logo Change

WordPress plugin Login Page Logo Change scored 84% from 54 tests.

About plugin

  • Plugin page: login-page-logo-c...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: Jan 18, 2022
  • Latest release: Jan 31, 2022
  • Number of updates: 8
  • Update frequency: every 2.4 days
  • Top authors: softices (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,985 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.42ms] Passed 4 tests

An overview of server-side resources used by Login Page Logo Change
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.23 ▼4.39
Dashboard /wp-admin3.35 ▲0.0549.43 ▼2.01
Posts /wp-admin/edit.php3.40 ▲0.0548.98 ▼7.76
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.40 ▼11.50
Media Library /wp-admin/upload.php3.27 ▲0.0538.28 ▲3.86

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Login Page Logo Change
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.21 ▼1.551.60 ▼0.2645.90 ▲2.34
Dashboard /wp-admin2,222 ▲375.88 ▲0.02106.77 ▼2.4238.93 ▼3.03
Posts /wp-admin/edit.php2,105 ▲272.01 ▼0.0136.04 ▼4.6929.86 ▼3.00
Add New Post /wp-admin/post-new.php1,547 ▲523.20 ▲5.14609.69 ▼6.1863.77 ▲13.02
Media Library /wp-admin/upload.php1,398 ▲74.20 ▼0.0296.80 ▼5.4842.48 ▼5.59

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-page-logo-change/login-page-logo-change.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: You can look at the official readme.txt

login-page-logo-change/login-page-logo-change.php 92% from 13 tests

The entry point to "Login Page Logo Change" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 182 characters long)

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 plugin243 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11710243

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG files were detected