79% featured-favicons

Code Review | Featured Favicons

WordPress plugin Featured Favicons scored79%from 54 tests.

About plugin

  • Plugin page: featured-favicons
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.8.3
  • WordPress version: 6.3.1
  • First release: Jan 31, 2015
  • Latest release: Jan 19, 2022
  • Number of updates: 30
  • Update frequency: every 84.9 days
  • Top authors: cvedovini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,657 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.62ms] Passed 4 tests

Analyzing server-side resources used by Featured Favicons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.55 ▲1.36
Dashboard /wp-admin3.32 ▲0.0248.66 ▼7.80
Posts /wp-admin/edit.php3.37 ▲0.0249.67 ▼4.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.29 ▼15.22
Media Library /wp-admin/upload.php3.25 ▲0.0248.92 ▲11.26
Favicons /wp-admin/options-general.php?page=featured-favicons3.2331.32

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Featured Favicons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.20 ▼0.381.67 ▼0.0340.38 ▼2.50
Dashboard /wp-admin2,193 ▲135.62 ▼0.0193.62 ▲5.1940.84 ▼3.02
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0141.93 ▲2.2435.86 ▼0.16
Add New Post /wp-admin/post-new.php1,531 ▲323.00 ▼0.28669.49 ▲19.8353.24 ▼16.12
Media Library /wp-admin/upload.php1,404 ▲44.23 ▼0.1197.55 ▼6.1047.09 ▲2.54
Favicons /wp-admin/options-general.php?page=featured-favicons1,0122.9743.4624.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=featured-favicons
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=featured-favicons
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-favicons/featured-favicons.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
3 plugin tags: featured image, favicon, icon

featured-favicons/featured-favicons.php Passed 13 tests

"Featured Favicons" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
A plugin that uses the featured image in your posts as a favicon for that post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin348 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File67284198
PHP14732150

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin