90% favicon-extender

Code Review | Favicon Extender

WordPress plugin Favicon Extender scored90%from 54 tests.

About plugin

  • Plugin page: favicon-extender
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1
  • WordPress version: 6.3.1
  • First release: Jul 6, 2019
  • Latest release: Dec 29, 2022
  • Number of updates: 9
  • Update frequency: every 141.3 days
  • Top authors: gsarig (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,844 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.03MB] [CPU: ▼10.47ms] Passed 4 tests

An overview of server-side resources used by Favicon Extender
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.74 ▼12.92
Dashboard /wp-admin3.34 ▼0.0046.97 ▼16.75
Posts /wp-admin/edit.php3.39 ▲0.0461.08 ▲9.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.28 ▼10.14
Media Library /wp-admin/upload.php3.26 ▲0.0335.50 ▼2.08

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Favicon Extender
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.33 ▼0.032.00 ▲0.3044.08 ▼5.19
Dashboard /wp-admin2,198 ▲215.61 ▼0.0886.91 ▼5.8141.71 ▼4.85
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0235.77 ▼3.8131.51 ▼7.71
Add New Post /wp-admin/post-new.php1,526 ▼023.31 ▲0.14692.80 ▼1.7460.53 ▼5.70
Media Library /wp-admin/upload.php1,397 ▼64.17 ▼0.0696.15 ▼5.8141.23 ▼3.88

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
1 plugin tags: favicon

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

The primary PHP file in "Favicon Extender" version 1.0.5 is used by WordPress to initiate all plugin functionality
104 characters long description:
Extend the native WordPress Site Icon functionality to use different icons for Android, iOS and Windows.

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 detected408 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
XML800192
PHP73048169
JavaScript12047

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods360.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants1100.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 files were detected