10% breadcrumbs-by-menu

Code Review | Breadcrumbs by menu

WordPress plugin Breadcrumbs by menu scored 10% from 54 tests.

About plugin

  • Plugin page: breadcrumbs-by-menu
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6.0
  • WordPress version: 5.8.1
  • First release: Mar 10, 2014
  • Latest release: Nov 24, 2020
  • Number of updates: 7
  • Update frequency: every 350.1 days
  • Top authors: holest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 2,429 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/breadcrumbs-by-menu/breadcrumbs_by_menu.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; breadcrumbs_by_menu has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼185.36ms] Passed 4 tests

Server-side resources used by Breadcrumbs by menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.86 ▼0.989.19 ▼24.99
Dashboard /wp-admin1.88 ▼1.185.06 ▼38.09
Posts /wp-admin/edit.php1.88 ▼1.235.94 ▼38.33
Add New Post /wp-admin/post-new.php1.88 ▼3.565.20 ▼636.01
Media Library /wp-admin/upload.php1.88 ▼1.134.96 ▼28.99

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
BCBM_SETTINGS

Browser metrics Passed 4 tests

A check of browser resources used by Breadcrumbs by menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,830 ▲23416.29 ▲0.8312.25 ▲1.1644.94 ▼9.53
Dashboard /wp-admin2,982 ▲515.91 ▼0.17137.14 ▼11.43118.48 ▲2.39
Posts /wp-admin/edit.php2,754 ▲152.72 ▲0.0166.73 ▲1.3294.74 ▲5.56
Add New Post /wp-admin/post-new.php1,882 ▲38219.18 ▲0.63377.11 ▼0.51112.85 ▲3.35
Media Library /wp-admin/upload.php1,825 ▲185.05 ▲0.02155.67 ▼0.80122.25 ▲1.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/breadcrumbs-by-menu/breadcrumbs_by_menu.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; breadcrumbs_by_menu has a deprecated constructor
  • The uninstall procedure has failed, leaving 1 option in the database
    • BCBM_SETTINGS

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: breadcrumbs, menu

breadcrumbs-by-menu/breadcrumbs_by_menu.php 77% from 13 tests

The main PHP script in "Breadcrumbs by menu" version 1.0.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("breadcrumbs-by-menu.php" instead of "breadcrumbs_by_menu.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
There were no executable files found in this plugin293 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16227250
JavaScript12026
CSS191017

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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