10% breadcrumbs-shortcode

Code Review | Breadcrumbs Shortcode

WordPress plugin Breadcrumbs Shortcode scored10%from 54 tests.

About plugin

  • Plugin page: breadcrumbs-short...
  • Plugin version: 1.45
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Jul 30, 2022
  • Number of updates: 103
  • Update frequency: every 13.7 days
  • Top authors: tazotodua (34.95%)ttodua (27.18%)itasksoftware (26.21%)puvoxsoftware (14.56%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,612 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/breadcrumbs-shortcode/library_wp.php+2677
    Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/breadcrumbs-shortcode/library_wp.php:2677
    Stack trace:
    #0 wp-content/plugins/breadcrumbs-shortcode/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
    #1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(720): do_action()

Server metrics [RAM: ▲2.22MB] [CPU: ▲9.13ms] Passed 4 tests

A check of server-side resources used by Breadcrumbs Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.72 ▲2.2653.24 ▲14.08
Dashboard /wp-admin5.55 ▲2.2559.24 ▲10.64
Posts /wp-admin/edit.php5.60 ▲2.2564.48 ▲12.77
Add New Post /wp-admin/post-new.php8.07 ▲2.1896.60 ▼0.98
Media Library /wp-admin/upload.php5.41 ▲2.1856.31 ▲24.38
Breadcrumbs Shortcode /wp-admin/options-general.php?page=breadcrumbs-shortcode5.3957.15

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_breadcrumbs_shortcode__errors_log
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
breadcrumbs-shortcode

Browser metrics Passed 4 tests

This is an overview of browser requirements for Breadcrumbs Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.65 ▼0.701.64 ▼0.1143.68 ▲6.68
Dashboard /wp-admin2,213 ▲224.85 ▼1.04108.04 ▼7.7839.30 ▼7.93
Posts /wp-admin/edit.php2,096 ▲72.00 ▲0.0239.73 ▼2.1734.99 ▼1.50
Add New Post /wp-admin/post-new.php1,520 ▼1317.52 ▼5.61652.26 ▼14.2259.07 ▲1.34
Media Library /wp-admin/upload.php1,395 ▲104.14 ▼0.0498.59 ▼5.3540.06 ▼4.01
Breadcrumbs Shortcode /wp-admin/options-general.php?page=breadcrumbs-shortcode9712.1433.1860.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_breadcrumbs_shortcode__errors_log
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • breadcrumbs-shortcode
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/breadcrumbs-shortcode/library_wp.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

breadcrumbs-shortcode/index.php 92% from 13 tests

The principal PHP file in "Breadcrumbs Shortcode" v. 1.45 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("breadcrumbs-shortcode.php" instead of "index.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,676 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31,2765,1443,668
CSS1108

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,076)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity351.80
▷ Minimum class complexity21.00
▷ Maximum class complexity1,076.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods852
▷ Static methods10211.97%
▷ Public methods84599.18%
▷ Protected methods00.00%
▷ Private methods70.82%
Functions89
▷ Named functions00.00%
▷ Anonymous functions89100.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
There are no PNG files in this plugin