73% extra-options-favicons

Code Review | Extra Options - Favicons

WordPress plugin Extra Options - Favicons scored 73% from 54 tests.

About plugin

  • Plugin page: extra-options-fav...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Oct 27, 2015
  • Latest release: Nov 23, 2020
  • Number of updates: 42
  • Update frequency: every 44.2 days
  • Top authors: origothemes (92.86%)edesac (9.52%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 6,417 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
Install script ran successfully

Server metrics [RAM: ▼0.14MB] [CPU: ▼15.99ms] Passed 4 tests

Server-side resources used by Extra Options - Favicons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0428.53 ▼15.65
Dashboard /wp-admin3.24 ▼0.0732.24 ▼15.01
Posts /wp-admin/edit.php3.31 ▼0.0539.26 ▼11.40
Add New Post /wp-admin/post-new.php5.48 ▼0.4172.64 ▼21.88
Media Library /wp-admin/upload.php3.22 ▼0.0130.77 ▼3.65
Extra Options /wp-admin/admin.php?page=extra-options3.2229.21
Favicons /wp-admin/admin.php?page=extra-options-favicons3.2230.67

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
extra-options-sub-menus

Browser metrics Passed 4 tests

This is an overview of browser requirements for Extra Options - Favicons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲19914.72 ▼0.031.71 ▼0.6743.09 ▲2.11
Dashboard /wp-admin2,376 ▲1886.46 ▲0.52131.13 ▲12.3442.46 ▲1.60
Posts /wp-admin/edit.php2,285 ▲1933.51 ▲1.5355.16 ▲13.5336.65 ▲1.02
Add New Post /wp-admin/post-new.php1,542 ▲523.44 ▲0.42678.70 ▲64.0737.55 ▼17.58
Media Library /wp-admin/upload.php1,421 ▲334.23 ▼0.0180.11 ▼24.3640.41 ▼2.31
Extra Options /wp-admin/admin.php?page=extra-options1,0023.1440.8124.22
Favicons /wp-admin/admin.php?page=extra-options-favicons1,0533.0243.8739.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • extra-options-sub-menus
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=extra-options-favicons
    • > Notice in wp-content/plugins/extra-options-favicons/extra-options-favicons.php+182
    Trying to access array offset on value of type bool

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 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 plugin_dir_url() in wp-content/plugins/extra-options-favicons/extra-options-favicons.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=extra-options-favicons
    • > Network (severe)
    wp-content/plugins/extra-options-favicons//styles/jquery-ui.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: favicons for wordpress, favicons, custom favicons for wordpress, wordpress admin favicon, set wordpress favicons...

extra-options-favicons/extra-options-favicons.php Passed 13 tests

The main PHP script in "Extra Options - Favicons" version 1.1.0 is automatically included on every request by WordPress
73 characters long description:
Allows you to upload and set fav icons for the dashboard and the website.

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
There were no executable files found in this plugin238 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12642172
CSS10048
JavaScript13018

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin