94% theme-blvd-favicon

Code Review | Theme Blvd Favicon

WordPress plugin Theme Blvd Favicon scored 94% from 54 tests.

About plugin

  • Plugin page: theme-blvd-favicon
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Aug 31, 2012
  • Latest release: Sep 10, 2015
  • Number of updates: 9
  • Update frequency: every 123.9 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 5,192 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Theme Blvd Favicon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1431.59 ▲9.98
Dashboard /wp-admin3.08 ▲0.0244.12 ▼3.61
Posts /wp-admin/edit.php3.13 ▲0.0245.15 ▲0.08
Add New Post /wp-admin/post-new.php5.44 ▲0.0092.41 ▼566.54
Media Library /wp-admin/upload.php3.02 ▲0.0233.41 ▲0.11

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Theme Blvd Favicon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8715.92 ▲0.288.84 ▼2.5248.28 ▲1.58
Dashboard /wp-admin2,974 ▲376.08 ▲0.17150.92 ▼13.03115.60 ▲9.75
Posts /wp-admin/edit.php2,743 ▲42.72 ▲0.0166.21 ▼0.2688.48 ▲5.27
Add New Post /wp-admin/post-new.php1,686 ▲1018.45 ▼0.39402.99 ▼9.73109.29 ▼6.03
Media Library /wp-admin/upload.php1,752 ▼555.02 ▼0.03154.84 ▼3.40123.82 ▲6.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/theme-blvd-favicon/tb-favicon.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Options added to your current theme at *Appearance > Theme Options > Configuration*.)
The official readme.txt might help

theme-blvd-favicon/tb-favicon.php 92% from 13 tests

The main PHP script in "Theme Blvd Favicon" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("theme-blvd-favicon.php" instead of "tb-favicon.php")

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 plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1324978

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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 functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png137.17KB39.02KB▼ 71.55%