90% menu-breadcrumb

Code Review | Menu Breadcrumb

WordPress plugin Menu Breadcrumb scored90%from 54 tests.

About plugin

  • Plugin page: menu-breadcrumb
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Nov 18, 2014
  • Latest release: Feb 10, 2022
  • Number of updates: 14
  • Update frequency: every 188.6 days
  • Top authors: jchristopher (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /6,234 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.39ms] Passed 4 tests

Analyzing server-side resources used by Menu Breadcrumb
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.15 ▼1.58
Dashboard /wp-admin3.31 ▼0.0342.78 ▼15.77
Posts /wp-admin/edit.php3.36 ▲0.0144.31 ▼6.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.77 ▼18.21
Media Library /wp-admin/upload.php3.23 ▲0.0135.10 ▲2.26

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Menu Breadcrumb
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.411.62 ▼0.1944.81 ▼0.49
Dashboard /wp-admin2,206 ▲155.91 ▼0.17109.47 ▲9.3547.16 ▲3.92
Posts /wp-admin/edit.php2,086 ▼61.98 ▼0.0534.92 ▼9.0133.50 ▼3.68
Add New Post /wp-admin/post-new.php1,533 ▼923.28 ▲4.90651.68 ▲10.7160.18 ▼0.71
Media Library /wp-admin/upload.php1,382 ▼94.21 ▼0.0697.49 ▼1.3043.04 ▲0.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: menus, menu, breadcrumb, nav, navigation...

menu-breadcrumb/menu-breadcrumb.php 92% from 13 tests

The main PHP file in "Menu Breadcrumb" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected215 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6107392215

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.25
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2184.00%
▷ Protected methods00.00%
▷ Private methods416.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin