84% uni-custom-logo-link-changer

Code Review | Uni Logo Link Changer

WordPress plugin Uni Logo Link Changer scored84%from 54 tests.

About plugin

  • Plugin page: uni-custom-logo-l...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9
  • WordPress version: 6.3.1
  • First release: Mar 2, 2022
  • Latest release: Mar 2, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: pkmaherwal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Uni Logo Link Changer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.90 ▼1.10
Dashboard /wp-admin3.32 ▲0.0142.87 ▼5.62
Posts /wp-admin/edit.php3.37 ▲0.0146.23 ▲1.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.89 ▲1.15
Media Library /wp-admin/upload.php3.24 ▲0.0132.22 ▼5.26
Logo Link Changer /wp-admin/options-general.php?page=uni-new-logo-url3.2030.40

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Uni Logo Link Changer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.131.75 ▼0.1046.02 ▲2.85
Dashboard /wp-admin2,199 ▲195.63 ▼0.0490.13 ▼7.7742.19 ▼3.77
Posts /wp-admin/edit.php2,101 ▲11.97 ▼0.0439.98 ▲3.1136.43 ▼0.74
Add New Post /wp-admin/post-new.php1,529 ▲323.04 ▼0.65669.09 ▼15.3366.28 ▲14.82
Media Library /wp-admin/upload.php1,398 ▲14.22 ▲0.0294.91 ▼6.6940.44 ▼4.75
Logo Link Changer /wp-admin/options-general.php?page=uni-new-logo-url7862.0324.2326.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uni-custom-logo-link-changer/uni-logo-link-changer.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/uni-custom-logo-link-changer/uninstall.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: logo link changer, custom logo link, redirect logo link

uni-custom-logo-link-changer/uni-logo-link-changer.php 92% from 13 tests

Analyzing the main PHP file in "Uni Logo Link Changer" version 1.0
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("uni-custom-logo-link-changer.php" instead of "uni-logo-link-changer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected48 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2191948

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin