89% custom-login-logo-and-url

Code Review | Custom Login Logo and URL

WordPress plugin Custom Login Logo and URL scored 89% from 54 tests.

About plugin

  • Plugin page: custom-login-logo...
  • Plugin version: 0.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 1, 2023
  • Latest release: Oct 1, 2023
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: AL Imran Akash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 51 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼2.78ms] Passed 4 tests

An overview of server-side resources used by Custom Login Logo and URL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.04 ▼4.05
Dashboard /wp-admin3.69 ▲0.3945.79 ▼1.26
Posts /wp-admin/edit.php3.74 ▲0.3847.94 ▲5.15
Add New Post /wp-admin/post-new.php6.21 ▲0.3285.59 ▼3.53
Media Library /wp-admin/upload.php3.55 ▲0.3235.03 ▼2.26

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Custom Login Logo and URL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.53 ▼0.901.55 ▼0.1040.95 ▲2.28
Dashboard /wp-admin2,228 ▲404.95 ▼0.9596.50 ▼6.5982.69 ▲41.02
Posts /wp-admin/edit.php2,119 ▲511.99 ▼0.0339.04 ▲3.6634.79 ▲2.00
Add New Post /wp-admin/post-new.php1,550 ▲1618.10 ▼4.92681.23 ▲25.3857.00 ▲2.39
Media Library /wp-admin/upload.php1,405 ▲174.26 ▲0.0296.50 ▲1.9576.20 ▲32.58

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

custom-login-logo-and-url/custom-login-logo-and-url.php 85% from 13 tests

The main PHP file in "Custom Login Logo and URL" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Git Repository: An alternative Git repository was detected

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,949 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP307477532,660
CSS845934
JavaScript6160244
JSON500110
Markdown1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity23.57
▷ Minimum class complexity1.00
▷ Maximum class complexity228.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes23
▷ Abstract classes28.70%
▷ Concrete classes2191.30%
▷ Final classes14.76%
Methods214
▷ Static methods125.61%
▷ Public methods20595.79%
▷ Protected methods20.93%
▷ Private methods73.27%
Functions8
▷ Named functions337.50%
▷ Anonymous functions562.50%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/codexpert/plugin/src/assets/img/survey.png7.31KB3.08KB▼ 57.88%
vendor/codexpert/plugin/src/assets/img/checked.png18.81KB9.90KB▼ 47.36%
assets/img/icon.png1.54KB1.04KB▼ 32.13%