78% favicon-on-external-urls

Code Review | Favicon on external URLs

WordPress plugin Favicon on external URLs scored78%from 54 tests.

About plugin

  • Plugin page: favicon-on-extern...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2015
  • Latest release: Dec 29, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: lupetalo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Favicon on external URLs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.47 ▼1.45
Dashboard /wp-admin3.33 ▼0.0249.43 ▼17.20
Posts /wp-admin/edit.php3.39 ▲0.0250.19 ▼3.65
Add New Post /wp-admin/post-new.php5.92 ▲0.0294.03 ▼0.61
Media Library /wp-admin/upload.php3.26 ▲0.0237.12 ▲2.12
Favicon on ext. URLs /wp-admin/options-general.php?page=favic3.2233.72

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
service_url
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
post_content_selector

Browser metrics Passed 4 tests

Favicon on external URLs: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.72 ▼0.649.27 ▲7.6539.14 ▼1.35
Dashboard /wp-admin2,201 ▲215.64 ▲0.0184.88 ▼5.2439.22 ▼0.45
Posts /wp-admin/edit.php2,106 ▲92.01 ▲0.0641.10 ▲2.2136.02 ▲1.27
Add New Post /wp-admin/post-new.php1,531 ▲323.63 ▲0.47640.18 ▼47.2757.89 ▲0.72
Media Library /wp-admin/upload.php1,409 ▲94.19 ▼0.0697.01 ▼23.6943.78 ▼6.24
Favicon on ext. URLs /wp-admin/options-general.php?page=favic8322.0325.3329.57

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • service_url
    • widget_recent-posts
    • post_content_selector
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/favicon-on-external-urls/admin_page.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: service_url in wp-content/plugins/favicon-on-external-urls/admin_page.php on line 9
    • > PHP Notice
      Undefined variable: icon_position in wp-content/plugins/favicon-on-external-urls/admin_page.php on line 11
    • > PHP Notice
      Undefined variable: post_content_selector in wp-content/plugins/favicon-on-external-urls/admin_page.php on line 7

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: favicon, url

favicon-on-external-urls/favicon_on_external_urls.php 77% from 13 tests

The principal PHP file in "Favicon on external URLs" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("favicon-on-external-urls.php" instead of "favicon_on_external_urls.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)

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 detected124 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2111495
JavaScript11023
CSS1006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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