72% my-favicon

Code Review | My Favicon

WordPress plugin My Favicon scored 72% from 54 tests.

About plugin

  • Plugin page: my-favicon
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2014
  • Latest release: Aug 19, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: lebleut (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

This is a short check of server-side resources used by My Favicon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.63 ▲1.79
Dashboard /wp-admin3.31 ▲0.0147.12 ▼4.93
Posts /wp-admin/edit.php3.36 ▲0.0149.09 ▼0.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.68 ▼18.95
Media Library /wp-admin/upload.php3.23 ▲0.0036.57 ▲2.47
My Favicon * (BlueT) /wp-admin/themes.php?page=bluet-favicon3.1732.20

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Favicon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.32 ▼1.434.44 ▲2.8545.10 ▲1.26
Dashboard /wp-admin2,210 ▲255.97 ▲1.0897.86 ▼13.2739.27 ▼4.21
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0140.86 ▲1.5736.83 ▲0.53
Add New Post /wp-admin/post-new.php1,536 ▲1323.23 ▼0.03664.50 ▼25.4456.76 ▼6.51
Media Library /wp-admin/upload.php1,392 ▲74.22 ▲0.0295.91 ▼7.4741.42 ▼2.19
My Favicon * (BlueT) /wp-admin/themes.php?page=bluet-favicon8172.1728.5536.03

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=bluet-favicon
    • > Notice in wp-content/plugins/my-favicon/admin-page.php+23
    Undefined index: favicon_file
    • > GET request to /wp-admin/themes.php?page=bluet-favicon
    • > Notice in wp-content/plugins/my-favicon/admin-page.php+23
    Trying to access array offset on value of type null

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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/my-favicon/index.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-favicon/admin-page.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/themes.php?page=bluet-favicon
    • > Network (severe)
    wp-content/uploads/my-favicon/favicon.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% 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
3 plugin tags: images, customise, favicon

my-favicon/index.php 92% from 13 tests

Analyzing the main PHP file in "My Favicon" version 1.0
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-favicon.php" instead of "index.php")

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
There were no executable files found in this plugin62 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2262162

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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 functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin