83% dadi-breadcrumb

Code Review | Dadi Breadcrumb

WordPress plugin Dadi Breadcrumb scored83%from 54 tests.

About plugin

  • Plugin page: dadi-breadcrumb
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Nov 1, 2020
  • Number of updates: 36
  • Update frequency: every 44.7 days
  • Top authors: davidemura (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,068 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼11.11ms] Passed 4 tests

An overview of server-side resources used by Dadi Breadcrumb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2535.91 ▼8.57
Dashboard /wp-admin3.57 ▲0.2245.33 ▼14.19
Posts /wp-admin/edit.php3.68 ▲0.3252.34 ▲7.01
Add New Post /wp-admin/post-new.php5.69 ▼0.1971.19 ▼22.17
Media Library /wp-admin/upload.php3.49 ▲0.2635.36 ▲0.50
Dadi Breadcrumb /wp-admin/options-general.php?page=dadibd-options-page3.4540.54

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 39 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Dadi Breadcrumb
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.14 ▼1.241.90 ▲0.1241.28 ▼3.09
Dashboard /wp-admin2,215 ▲274.85 ▼1.02104.51 ▼14.0639.15 ▼6.64
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0435.87 ▼0.1131.55 ▼1.37
Add New Post /wp-admin/post-new.php6,268 ▲4,74019.00 ▲0.65903.18 ▲270.5078.96 ▲28.12
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0395.42 ▲1.7641.37 ▼0.65
Dadi Breadcrumb /wp-admin/options-general.php?page=dadibd-options-page1,4481.7727.9627.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 39 options
    • page_no_parent_category
    • custom_post_type_name_link
    • widget_recent-comments
    • format_date
    • post_get_taxonomies
    • theysaidso_admin_options
    • virtual_dir
    • home_icon
    • page_categories
    • radio_icon
    • ...

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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dadi-breadcrumb/dadibd-metabox.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dadi-breadcrumb/dadibd-output-functions.php:145

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Dadi Breadcrumb Options Page2. Dadi Breadcrumb Metabox) image required
  • Screenshots: Please add descriptions for these screenshots #0, #0 in dadi-breadcrumb/assets to your readme.txt
You can take inspiration from this readme.txt

dadi-breadcrumb/dadibd-core.php 92% from 13 tests

The main PHP file in "Dadi Breadcrumb" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("dadi-breadcrumb.php" instead of "dadibd-core.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,874 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File1128252412

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods220.00%
▷ Protected methods880.00%
▷ Private methods00.00%
▷ Named functions39100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.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
4 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-dadibreadcrumb-options-page.png94.65KB26.27KB▼ 72.24%
images/plus.png1.26KB1.08KB▼ 14.44%
images/minus.png1.18KB0.98KB▼ 17.01%
assets/screenshot-dadibreadcrumb-metabox.png35.50KB11.38KB▼ 67.94%