78% breadcrumbspress

Code Review | BreadcrumbsPress

WordPress plugin BreadcrumbsPress scored78%from 54 tests.

About plugin

  • Plugin page: breadcrumbspress
  • Plugin version: 2.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2021
  • Latest release: Jul 15, 2023
  • Number of updates: 17
  • Update frequency: every 53.7 days
  • Top authors: GDragoN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,234 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.99MB] [CPU: ▼3.36ms] Passed 4 tests

Analyzing server-side resources used by BreadcrumbsPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9745.51 ▲5.82
Dashboard /wp-admin4.30 ▲1.0048.73 ▼0.95
Posts /wp-admin/edit.php4.35 ▲1.0048.96 ▼4.96
Add New Post /wp-admin/post-new.php6.89 ▲1.0084.27 ▼11.57
Media Library /wp-admin/upload.php4.22 ▲1.0040.46 ▲4.03
BreadcrumbsPress /wp-admin/options-general.php?page=breadcrumbspress4.3544.09

Server storage [IO: ▲3.34MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 437 new files
Database: no new tables, 18 new options
New WordPress options
d4p_blog_breadcrumbspress_title
d4p_blog_breadcrumbspress_info
d4p_blog_breadcrumbspress_integration
widget_recent-posts
d4p_blog_breadcrumbspress_core
widget_theysaidso_widget
d4p_blog_breadcrumbspress_display
db_upgraded
d4p_blog_breadcrumbspress_rules
d4p_blog_breadcrumbspress_visibility
...

Browser metrics Passed 4 tests

BreadcrumbsPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.20 ▼0.081.81 ▼0.1342.47 ▲6.32
Dashboard /wp-admin2,199 ▲225.62 ▲0.0383.16 ▼3.3638.70 ▼5.98
Posts /wp-admin/edit.php2,104 ▲41.98 ▲0.0334.29 ▼9.7435.63 ▼4.76
Add New Post /wp-admin/post-new.php6,369 ▲4,84327.80 ▲4.73921.87 ▲278.1563.77 ▲11.42
Media Library /wp-admin/upload.php1,404 ▲74.23 ▲0.0495.76 ▼7.7043.97 ▼1.14
BreadcrumbsPress /wp-admin/options-general.php?page=breadcrumbspress9622.1031.5253.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 detected upon uninstall: 18 options
    • d4p_blog_breadcrumbspress_integration
    • d4p_blog_breadcrumbspress_title
    • d4p_blog_breadcrumbspress_visibility
    • d4p_blog_breadcrumbspress_plain
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • d4p_blog_breadcrumbspress_rules
    • d4p_blog_breadcrumbspress_info
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/breadcrumbspress/d4plib/forms/footer.php
    • > /wp-content/plugins/breadcrumbspress/d4plib/forms/content-dashboard.php
  • 53× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Dev4Press\\v42\\Functions\\panel() in wp-content/plugins/breadcrumbspress/d4plib/forms/content-settings-index.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function breadcrumbspress_settings() in wp-content/plugins/breadcrumbspress/forms/content-install.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/breadcrumbspress/forms/content-dashboard-integration.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Dev4Press\\v42\\Functions\\panel() in wp-content/plugins/breadcrumbspress/d4plib/forms/content-features-index-filter.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/breadcrumbspress/d4plib/forms/content-tools-import.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Dev4Press\\v42\\Functions\\panel() in wp-content/plugins/breadcrumbspress/d4plib/forms/sidebar-features-index.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/breadcrumbspress/d4plib/forms/widget-loader.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Dev4Press\\v42\\Functions\\panel() in wp-content/plugins/breadcrumbspress/d4plib/forms/content-about-info.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/breadcrumbspress/d4plib/forms/content.php:2
    • > PHP Warning
      Use of undefined constant BREADCRUMBSPRESS_PATH - assumed 'BREADCRUMBSPRESS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/breadcrumbspress/forms/content-about-whatsnew.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: breadcrumbs, schema, crumb, navigation, dev4press...

breadcrumbspress/breadcrumbspress.php 92% from 13 tests

"BreadcrumbsPress" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)

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
There were no executable files found in this plugin38,066 lines of code in 384 files:
LanguageFilesBlank linesComment linesLines of code
PHP2035,1602,45919,046
CSS441,1924210,338
Sass581,068295,510
JavaScript763141203,112
JSON10032
Markdown212028

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity15.90
▷ Minimum class complexity1.00
▷ Maximum class complexity148.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces43
Interfaces0
Traits3
Classes144
▷ Abstract classes3927.08%
▷ Concrete classes10572.92%
▷ Final classes1211.43%
Methods1,384
▷ Static methods21515.53%
▷ Public methods1,04175.22%
▷ Protected methods24217.49%
▷ Private methods1017.30%
Functions17
▷ Named functions1588.24%
▷ Anonymous functions211.76%
Constants53
▷ Global constants59.43%
▷ Class constants4890.57%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.06MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
d4plib/resources/libraries/flags/img/flag_placeholder.png0.09KB0.09KB0.00%
d4plib/resources/libraries/flags/img/flags_responsive.png54.14KB57.01KB0.00%
d4plib/resources/gfx/buy_me_a_coffee.png7.73KB7.79KB0.00%