84% smntcs-custom-logo-link

Code Review | SMNTCS Custom Logo Link

WordPress plugin SMNTCS Custom Logo Link scored84%from 54 tests.

About plugin

  • Plugin page: smntcs-custom-log...
  • Plugin version: 2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Oct 15, 2023
  • Number of updates: 45
  • Update frequency: every 48.8 days
  • Top authors: nielslange (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

3,000+ active /19,002 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.01MB] [CPU: ▼3.19ms] Passed 4 tests

Server-side resources used by SMNTCS Custom Logo Link
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.57 ▲0.40
Dashboard /wp-admin3.32 ▲0.0245.54 ▼1.63
Posts /wp-admin/edit.php3.38 ▲0.0149.32 ▲0.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0179.74 ▼12.46
Media Library /wp-admin/upload.php3.25 ▲0.0137.50 ▲7.12

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

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

Browser metrics Passed 4 tests

SMNTCS Custom Logo Link: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.081.63 ▼0.2337.74 ▼4.89
Dashboard /wp-admin2,195 ▲155.58 ▼0.0783.25 ▼2.0840.39 ▼1.25
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0437.69 ▲3.9936.07 ▲2.90
Add New Post /wp-admin/post-new.php1,526 ▼2423.04 ▲4.93681.19 ▲2.9555.97 ▼11.36
Media Library /wp-admin/upload.php1,394 ▼34.15 ▼0.04101.10 ▼1.9643.41 ▼3.96

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smntcs-custom-logo-link/themes/colormag.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smntcs-custom-logo-link/themes/customify.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smntcs-custom-logo-link/themes/shapely.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smntcs-custom-logo-link/themes/oceanwp.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smntcs-custom-logo-link/themes/hestia.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smntcs-custom-logo-link/themes/neve.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smntcs-custom-logo-link/themes/sydney.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smntcs-custom-logo-link/themes/generatepress.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smntcs-custom-logo-link/themes/default.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: logo link, custom logo link

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

The primary PHP file in "SMNTCS Custom Logo Link" version 2.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.8" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected8,997 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JSON5008,035
PHP1027142413
JavaScript267120377
Markdown1520114
XML1131450
YAML1008

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.57
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%
Functions4
▷ Named functions4100.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