68% simple-website-logo

Code Review | Website Logo

WordPress plugin Website Logo scored68%from 54 tests.

About plugin

  • Plugin page: simple-website-logo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6
  • WordPress version: 6.3.1
  • First release: Mar 3, 2015
  • Latest release: Jan 25, 2021
  • Number of updates: 8
  • Update frequency: every 269.5 days
  • Top authors: lpkapil (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /4,843 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼30.86ms] Passed 4 tests

Analyzing server-side resources used by Website Logo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.75 ▼6.76
Dashboard /wp-admin3.03 ▼0.2728.35 ▼21.12
Posts /wp-admin/edit.php3.03 ▼0.3223.71 ▼22.69
Add New Post /wp-admin/post-new.php3.03 ▼2.8524.00 ▼70.29
Media Library /wp-admin/upload.php3.03 ▼0.2023.21 ▼9.35
Logo /wp-admin/themes.php?page=website_logo3.0322.23

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Website Logo: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.18 ▼1.141.90 ▲0.0139.76 ▼2.28
Dashboard /wp-admin2,213 ▲285.90 ▲0.0995.76 ▼13.2538.90 ▼2.06
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0439.12 ▼1.2934.57 ▼1.99
Add New Post /wp-admin/post-new.php1,536 ▼723.49 ▲5.42639.27 ▲28.2653.81 ▼2.85
Media Library /wp-admin/upload.php1,392 ▲74.17 ▼0.0995.49 ▼5.2343.35 ▲2.11
Logo /wp-admin/themes.php?page=website_logo8202.1627.1323.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/simple-website-logo/website-logo.php+65
    Undefined index: is_web_logo
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=website_logo
    • > Notice in wp-content/plugins/simple-website-logo/website-logo.php+33
    Undefined index: is_web_logo

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-website-logo/website-logo.php:83

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: website logo, logo

simple-website-logo/website-logo.php 92% from 13 tests

The principal PHP file in "Website Logo" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-website-logo.php" instead of "website-logo.php")

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
There were no executable files found in this plugin80 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1261253
JavaScript117127

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin