89% easy-digital-downloads-custom-favicon

Code Review | Easy Digital Downloads - Custom Favicon

WordPress plugin Easy Digital Downloads - Custom Favicon scored89%from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2015
  • Latest release: Jun 22, 2023
  • Number of updates: 17
  • Update frequency: every 181.8 days
  • Top authors: kprajapati22 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,951 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.00MB] [CPU: ▼6.21ms] Passed 4 tests

Server-side resources used by Easy Digital Downloads - Custom Favicon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.44 ▲5.52
Dashboard /wp-admin3.32 ▼0.0346.26 ▼22.40
Posts /wp-admin/edit.php3.37 ▲0.0155.09 ▲3.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.54 ▼5.44
Media Library /wp-admin/upload.php3.24 ▲0.0138.46 ▼0.41

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Digital Downloads - Custom Favicon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.34 ▼0.211.71 ▼0.1447.16 ▼2.15
Dashboard /wp-admin2,210 ▲335.62 ▼0.0488.75 ▼14.2343.26 ▼0.90
Posts /wp-admin/edit.php2,116 ▲162.03 ▼0.0040.44 ▲5.7037.95 ▼1.31
Add New Post /wp-admin/post-new.php1,543 ▲1723.32 ▲0.07657.58 ▲9.5949.08 ▼6.58
Media Library /wp-admin/upload.php1,418 ▲214.20 ▲0.04103.19 ▼13.7843.17 ▼7.78

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: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: easy digital downloads, edd, custom favicon, dynamic icon, favicon

easy-digital-downloads-custom-favicon/edd-custom-favicon.php 85% from 13 tests

The principal PHP file in "Easy Digital Downloads - Custom Favicon" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-digital-downloads-custom-favicon.php" instead of "edd-custom-favicon.php")

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 plugin208 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP435152187
JavaScript25721

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected