84% site-icon-pro

Code Review | Site Icon Pro

WordPress plugin Site Icon Pro scored84%from 54 tests.

About plugin

  • Plugin page: site-icon-pro
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Jul 29, 2015
  • Latest release: Apr 20, 2016
  • Number of updates: 5
  • Update frequency: every 53.2 days
  • Top authors: lucaspiller (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,114 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.27ms] Passed 4 tests

An overview of server-side resources used by Site Icon Pro
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.73 ▲0.39
Dashboard /wp-admin3.33 ▲0.0346.99 ▼3.60
Posts /wp-admin/edit.php3.39 ▲0.0349.16 ▲0.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0397.54 ▼2.25
Media Library /wp-admin/upload.php3.26 ▲0.0334.43 ▲0.39
Site Icon Pro /wp-admin/themes.php?page=site_icon_pro_options3.3732.14

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Site Icon Pro
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.65 ▼0.585.01 ▲3.2447.15 ▲8.75
Dashboard /wp-admin2,215 ▲244.84 ▼0.01102.67 ▼3.1338.49 ▼9.80
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0240.59 ▲3.4036.77 ▲0.40
Add New Post /wp-admin/post-new.php1,533 ▲1423.25 ▲0.46618.15 ▼57.2748.95 ▼6.12
Media Library /wp-admin/upload.php1,394 ▲64.16 ▲0.0095.27 ▼7.8441.39 ▼0.70
Site Icon Pro /wp-admin/themes.php?page=site_icon_pro_options9242.1524.4833.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/site-icon-pro/includes/class-customize-control.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
Please take inspiration from this readme.txt

site-icon-pro/site-icon-pro.php Passed 13 tests

The main PHP script in "Site Icon Pro" version 1.1.0 is automatically included on every request by WordPress
82 characters long description:
Full control over the HTML used to display the favicon and app icons on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin178 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP578141150
CSS14028

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin