84% custom-favicon

Code Review | Custom Favicon

WordPress plugin Custom Favicon scored84%from 54 tests.

About plugin

  • Plugin page: custom-favicon
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.1
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: Dec 13, 2015
  • Number of updates: 14
  • Update frequency: every 125.1 days
  • Top authors: hchouhan (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

7,000+ active /83,944 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.18MB] [CPU: ▼19.48ms] Passed 4 tests

An overview of server-side resources used by Custom Favicon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0423.37 ▼9.66
Dashboard /wp-admin3.16 ▼0.1931.00 ▼28.12
Posts /wp-admin/edit.php3.29 ▼0.0734.32 ▼12.12
Add New Post /wp-admin/post-new.php5.48 ▼0.4071.97 ▼28.01
Media Library /wp-admin/upload.php3.22 ▼0.0028.04 ▼7.47
Custom Favicon /wp-admin/options-general.php?page=dot_cfi3.1327.64

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Custom Favicon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.14 ▼1.291.81 ▲0.1637.52 ▼0.84
Dashboard /wp-admin2,210 ▲184.85 ▼0.12107.61 ▼1.9042.01 ▼1.82
Posts /wp-admin/edit.php2,096 ▲71.99 ▲0.0038.88 ▼0.1835.70 ▼3.20
Add New Post /wp-admin/post-new.php1,536 ▼223.29 ▲4.97597.62 ▼81.6957.98 ▲6.92
Media Library /wp-admin/upload.php1,392 ▲14.21 ▲0.0294.42 ▼10.7941.01 ▼5.42
Custom Favicon /wp-admin/options-general.php?page=dot_cfi8891.8434.7127.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=dot_cfi
    • > Notice in wp-content/plugins/custom-favicon/custom-favicon.php+218
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: favicon, apple touch, apple touch icon, icon, theme...

custom-favicon/custom-favicon.php 92% from 13 tests

The main PHP file in "Custom Favicon" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin213 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP28867150
PO File191034
JavaScript151229

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin