90% site-favicon

Code Review | Site Favicon

WordPress plugin Site Favicon scored90%from 54 tests.

About plugin

  • Plugin page: site-favicon
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 11, 2021
  • Latest release: Aug 19, 2023
  • Number of updates: 8
  • Update frequency: every 92.3 days
  • Top authors: bhadaway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,957 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.96ms] Passed 4 tests

An overview of server-side resources used by Site Favicon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.46 ▲0.55
Dashboard /wp-admin3.31 ▼0.0347.62 ▼18.18
Posts /wp-admin/edit.php3.37 ▲0.0144.19 ▼4.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.49 ▼19.67
Media Library /wp-admin/upload.php3.24 ▲0.0133.49 ▼1.56

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Site Favicon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4414.17 ▼0.111.70 ▲0.1344.90 ▲5.03
Dashboard /wp-admin2,192 ▲125.55 ▼0.0486.78 ▲0.6936.96 ▼5.28
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0135.35 ▼2.0232.24 ▼5.42
Add New Post /wp-admin/post-new.php1,526 ▼223.50 ▲0.16677.66 ▲8.6762.35 ▲12.82
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0096.26 ▲2.8842.49 ▲0.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: favicon, favorites icon, site icon, icon

site-favicon/site-favicon.php Passed 13 tests

The main file in "Site Favicon" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
14 characters long description:
Add a favicon.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131132

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin