83% change-logo-login

Code Review | wp-logo-login | تغییر لوگو ورود و سربرگ

WordPress plugin wp-logo-login | تغییر لوگو ورود و سربرگ scored83%from 54 tests.

About plugin

  • Plugin page: change-logo-login
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: Oct 15, 2022
  • Number of updates: 11
  • Update frequency: every 41.6 days
  • Top authors: clarotm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /832 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
Install script ran successfully

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

An overview of server-side resources used by wp-logo-login | تغییر لوگو ورود و سربرگ
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0238.78 ▼8.09
Dashboard /wp-admin3.60 ▼0.0451.26 ▼17.04
Posts /wp-admin/edit.php3.71 ▲0.0351.09 ▼0.98
Add New Post /wp-admin/post-new.php6.18 ▲0.03101.86 ▲0.82
Media Library /wp-admin/upload.php3.52 ▲0.0339.26 ▼1.64

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for wp-logo-login | تغییر لوگو ورود و سربرگ
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.29 ▼0.071.98 ▲0.0742.95 ▼1.46
Dashboard /wp-admin2,228 ▲515.62 ▼0.07100.15 ▲0.8143.02 ▲1.16
Posts /wp-admin/edit.php2,137 ▲342.05 ▼0.0040.52 ▲3.9839.88 ▲4.11
Add New Post /wp-admin/post-new.php1,567 ▲1023.13 ▲0.27658.81 ▲1.0363.84 ▲5.69
Media Library /wp-admin/upload.php1,433 ▲364.23 ▲0.0199.52 ▼2.0345.62 ▼2.16

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-logo-login/change-wordpress-login-logo.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === change-logo-login === )
  • Screenshots: Please a description for screenshot #1 in change-logo-login/assets to your readme.txt
The official readme.txt might help

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

The entry point to "wp-logo-login | تغییر لوگو ورود و سربرگ" version 2.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("change-logo-login.php" instead of "change-wordpress-login-logo.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
Everything looks great! No dangerous files found in this plugin146 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31315146

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin