83% multi-favicons

Code Review | Multi Favicons

WordPress plugin Multi Favicons scored83%from 54 tests.

About plugin

  • Plugin page: multi-favicons
  • Plugin version: 1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.0
  • WordPress version: 6.3.1
  • First release: Dec 12, 2018
  • Latest release: Dec 12, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: qualityeye (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /1,457 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.22MB] [CPU: ▼18.38ms] Passed 4 tests

A check of server-side resources used by Multi Favicons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.79 ▼3.42
Dashboard /wp-admin3.08 ▼0.2324.12 ▼23.57
Posts /wp-admin/edit.php3.21 ▼0.1435.13 ▼13.10
Add New Post /wp-admin/post-new.php5.46 ▼0.4365.66 ▼26.57
Media Library /wp-admin/upload.php3.16 ▼0.0725.03 ▼10.26

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Multi Favicons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.431.81 ▲0.0837.12 ▼4.75
Dashboard /wp-admin2,206 ▲184.84 ▼0.04112.83 ▲8.5442.10 ▼2.29
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0038.88 ▼2.5734.54 ▼2.44
Add New Post /wp-admin/post-new.php6,231 ▲4,69721.93 ▼1.28866.21 ▲199.4738.81 ▼17.97
Media Library /wp-admin/upload.php1,391 ▲94.21 ▼0.0694.76 ▼5.9140.50 ▼1.92

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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_action() in wp-content/plugins/multi-favicons/meta-box.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #0, #0, #0 in multi-favicons/assets to your readme.txt
Please take inspiration from this readme.txt

multi-favicons/custom-favicon.php 85% from 13 tests

The main file in "Multi Favicons" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("multi-favicons.php" instead of "custom-favicon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin132 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34216103
JavaScript171229

PHP code Passed 2 tests

This is a very shot 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.37
Average class complexity5.50
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods8
▷ Static methods337.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin