72% quick-favicon

Code Review | Quick Favicon

WordPress plugin Quick Favicon scored72%from 54 tests.

About plugin

  • Plugin page: quick-favicon
  • Plugin version: 0.22.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2015
  • Latest release: May 5, 2015
  • Number of updates: 19
  • Update frequency: every 2.3 days
  • Top authors: rbcummings (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

1,000+ active /16,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.38MB] [CPU: ▼3.15ms] Passed 4 tests

Analyzing server-side resources used by Quick Favicon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3739.10 ▼1.39
Dashboard /wp-admin3.68 ▲0.3848.77 ▼0.03
Posts /wp-admin/edit.php3.79 ▲0.4451.07 ▲5.64
Add New Post /wp-admin/post-new.php6.26 ▲0.3894.36 ▼12.21
Media Library /wp-admin/upload.php3.60 ▲0.3835.78 ▲1.03
Icons /wp-admin/themes.php?page=icon_settings3.5939.13

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Quick Favicon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.261.66 ▼0.0539.24 ▼11.24
Dashboard /wp-admin2,213 ▲255.00 ▼0.9098.29 ▼6.7138.57 ▼7.39
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0439.51 ▲2.1535.27 ▲3.40
Add New Post /wp-admin/post-new.php1,545 ▲2518.27 ▼5.15608.61 ▼19.5456.17 ▲4.08
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0799.89 ▲3.9443.87 ▲2.04
Icons /wp-admin/themes.php?page=icon_settings2,7213.2650.3550.41

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

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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=icon_settings
    • > Notice in wp-content/plugins/quick-favicon/quickfavicon.php+2002
    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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-favicon/quickfavicon.php on line 27
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-favicon/quickfavicon.php on line 27
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/quick-favicon/quickfavicon.php on line 27

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/themes.php?page=icon_settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/quick-favicon/js/quickfavicon.min.js?ver=0.22.4 2:33 Uncaught TypeError: Cannot read properties of undefined (reading 'model')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

quick-favicon/quickfavicon.php 85% from 13 tests

This is the main PHP file of "Quick Favicon" version 0.22.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("quick-favicon.php" instead of "quickfavicon.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 243 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected16,721 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS7135628,465
JavaScript67422636,436
PHP13203521,532
SVG100288

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.37MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/transparency-bg.png1.19KB0.11KB▼ 90.60%
img/bootstrap-colorpicker/hue-horizontal.png2.77KB0.47KB▼ 83.15%
img/bootstrap-colorpicker/saturation.png8.61KB5.13KB▼ 40.41%
img/android-preview-bg.png73.30KB29.76KB▼ 59.39%
(invalid) img/hue.png32.37KB0.00KB▼ 100.00%