84% favicon-links

Code Review | Favicon Links

WordPress plugin Favicon Links scored84%from 54 tests.

About plugin

  • Plugin page: favicon-links
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2015
  • Latest release: Feb 19, 2015
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: whyte624 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,491 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.01MB] [CPU: ▼3.17ms] Passed 4 tests

A check of server-side resources used by Favicon Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.35 ▼0.82
Dashboard /wp-admin3.31 ▲0.0151.76 ▲1.63
Posts /wp-admin/edit.php3.36 ▲0.0150.22 ▲1.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.18 ▼14.97
Media Library /wp-admin/upload.php3.23 ▲0.0139.89 ▲3.42

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Favicon Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5414.78 ▲1.701.92 ▼3.6843.44 ▲0.93
Dashboard /wp-admin2,206 ▲185.83 ▼0.0598.20 ▼7.5042.52 ▲1.60
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0239.15 ▼1.0235.75 ▼2.59
Add New Post /wp-admin/post-new.php1,533 ▲1423.19 ▼0.05658.65 ▼15.6369.95 ▲19.54
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0797.28 ▼4.9541.08 ▼3.88

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_filter() in wp-content/plugins/favicon-links/favicon-links.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: image, link, url, href, favicon...

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

The main PHP script in "Favicon Links" version 1.2 is automatically included on every request by WordPress
38 characters long description:
Adds favicons to all links in any post

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
Good job! No executable or dangerous file extensions detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181033

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin