84% azurecurve-multisite-favicon

Code Review | azurecurve Multisite Favicon

WordPress plugin azurecurve Multisite Favicon scored 84% from 54 tests.

About plugin

  • Plugin page: azurecurve-multis...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Jul 11, 2014
  • Latest release: Dec 6, 2018
  • Number of updates: 19
  • Update frequency: every 84.7 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active / 3,195 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by azurecurve Multisite Favicon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.89 ▼4.55
Dashboard /wp-admin3.32 ▲0.0240.68 ▼6.52
Posts /wp-admin/edit.php3.37 ▲0.0144.71 ▲0.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.67 ▼12.98
Media Library /wp-admin/upload.php3.24 ▲0.0136.68 ▲5.80
Multisite Favicon /wp-admin/admin.php?page=azc-msfi3.2127.02
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2125.81

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
azc_msfi_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for azurecurve Multisite Favicon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.71 ▼1.091.64 ▼0.5637.62 ▼12.76
Dashboard /wp-admin2,234 ▲495.04 ▼0.83110.05 ▲0.5193.01 ▲52.84
Posts /wp-admin/edit.php2,120 ▲312.01 ▼0.0235.69 ▼0.9534.09 ▲1.23
Add New Post /wp-admin/post-new.php1,546 ▲423.19 ▲4.98763.77 ▲158.9151.50 ▼18.89
Media Library /wp-admin/upload.php1,410 ▲224.23 ▼0.0098.35 ▼1.9371.16 ▲25.25
Multisite Favicon /wp-admin/admin.php?page=azc-msfi8562.0326.8425.64
Plugins /wp-admin/admin.php?page=azc-plugin-menus8502.0224.0024.46

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
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-multisite-favicon/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-multisite-favicon/includes/menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Plugin settings page.)
You can look at the official readme.txt

azurecurve-multisite-favicon/azurecurve-multisite-favicon.php Passed 13 tests

This is the main PHP file of "azurecurve Multisite Favicon" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
76 characters long description:
Allows Setting of Separate Favicon For Each Site In A Multisite Installation

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin435 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37751413
CSS20422

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.64
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%