83% pwd-wp-favicon

Code Review | PWD WP Favicon

WordPress plugin PWD WP Favicon scored83%from 54 tests.

About plugin

  • Plugin page: pwd-wp-favicon
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Aug 24, 2023
  • Number of updates: 20
  • Update frequency: every 156.5 days
  • Top authors: Plateforme WP Digital (70%)NicolasKulka (35%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /12,299 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by PWD WP Favicon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0342.32 ▼4.57
Dashboard /wp-admin3.37 ▼0.0249.99 ▼11.53
Posts /wp-admin/edit.php3.48 ▲0.0948.57 ▼3.67
Add New Post /wp-admin/post-new.php5.95 ▲0.02100.84 ▼0.76
Media Library /wp-admin/upload.php3.29 ▲0.0237.69 ▲4.19

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

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

Browser metrics Passed 4 tests

Checking browser requirements for PWD WP Favicon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7914.16 ▼0.202.05 ▲0.3143.82 ▲4.72
Dashboard /wp-admin2,195 ▲155.64 ▲0.0186.72 ▼2.9638.71 ▼1.97
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0134.04 ▼4.1134.73 ▼0.38
Add New Post /wp-admin/post-new.php1,517 ▼1018.97 ▼3.95430.73 ▼179.0439.97 ▼18.24
Media Library /wp-admin/upload.php1,403 ▼04.24 ▼0.01101.19 ▼4.5244.77 ▼0.34

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pwd-wp-favicon/wp-favicon.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 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
10 plugin tags: apple touch icon, admin, favicon, icon, theme...

pwd-wp-favicon/wp-favicon.php 77% from 13 tests

The main PHP file in "PWD WP Favicon" ver. 1.5.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("pwd-wp-favicon.php" instead of "wp-favicon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin413 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File55575201
PHP22028124
JavaScript1153073
JSON10015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin