84% multicons

Code Review | Multicons [ Multiple Favicons ]

WordPress plugin Multicons [ Multiple Favicons ] scored84%from 54 tests.

About plugin

  • Plugin page: multicons
  • Plugin version: 5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2010
  • Latest release: Feb 23, 2023
  • Number of updates: 79
  • Update frequency: every 59.5 days
  • Top authors: doc4 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /109,957 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.89ms] Passed 4 tests

Server-side resources used by Multicons [ Multiple Favicons ]
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.11 ▲0.13
Dashboard /wp-admin3.36 ▲0.0651.35 ▼4.65
Posts /wp-admin/edit.php3.48 ▲0.1249.15 ▼1.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0690.04 ▼1.35
Media Library /wp-admin/upload.php3.29 ▲0.0638.38 ▲3.31
Multicons /wp-admin/options-general.php?page=mmf3.2534.46

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

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

Browser metrics Passed 4 tests

Multicons [ Multiple Favicons ]: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.69 ▼0.031.73 ▼0.3745.93 ▼0.82
Dashboard /wp-admin2,196 ▲195.66 ▲0.1494.38 ▼12.4541.44 ▼7.48
Posts /wp-admin/edit.php2,107 ▲41.99 ▼0.0334.78 ▼10.5532.36 ▼9.61
Add New Post /wp-admin/post-new.php1,531 ▲523.20 ▲0.10663.42 ▼29.2550.47 ▼12.20
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0395.13 ▼6.5345.27 ▲0.98
Multicons /wp-admin/options-general.php?page=mmf9462.1522.7325.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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multicons/multicons.php:38

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: icon, apple touch icon, favicon, apple icon, apple favicon

multicons/multicons.php Passed 13 tests

"Multicons [ Multiple Favicons ]" version 5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Auto generates code for both a favicon and an apple favicon into the header of your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected150 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15233150

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions21
▷ Named functions21100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/apple-touch-icon.png2.52KB1.53KB▼ 39.47%
images/icon-hires.png3.43KB1.97KB▼ 42.48%
images/icon-regular.png2.28KB1.43KB▼ 37.47%