90% breadcrumb

Code Review | Breadcrumb

WordPress plugin Breadcrumb scored90%from 54 tests.

About plugin

  • Plugin page: breadcrumb
  • Plugin version: 1.5.43
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0+
  • WordPress version: 6.3.1
  • First release: Feb 17, 2015
  • Latest release: Aug 26, 2023
  • Number of updates: 127
  • Update frequency: every 24.5 days
  • Top authors: pickplugins (83.46%)paratheme (17.32%)

Code review

54 tests

User reviews

34 reviews

Install metrics

10,000+ active /297,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.01MB] [CPU: ▲5.32ms] Passed 4 tests

A check of server-side resources used by Breadcrumb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.47 ▲1.0049.80 ▲9.42
Dashboard /wp-admin4.35 ▲1.0557.37 ▲2.31
Posts /wp-admin/edit.php4.40 ▲1.0453.24 ▲2.06
Add New Post /wp-admin/post-new.php6.89 ▲1.00120.88 ▲25.18
Media Library /wp-admin/upload.php4.21 ▲0.9845.17 ▲7.50
Data Update /wp-admin/admin.php?page=breadcrumb-data-update4.1845.22
Breadcrumb /wp-admin/admin.php?page=breadcrumb_settings4.4549.95

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
breadcrumb_options
widget_recent-comments
breadcrumb_info
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Breadcrumb
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.77 ▲0.391.92 ▼0.2045.17 ▼3.13
Dashboard /wp-admin2,242 ▲455.88 ▲0.98102.61 ▼40.6785.00 ▲33.35
Posts /wp-admin/edit.php2,140 ▲402.01 ▲0.0035.44 ▼5.4233.34 ▼7.01
Add New Post /wp-admin/post-new.php1,569 ▲1323.10 ▲4.79721.86 ▲99.1258.67 ▲6.86
Media Library /wp-admin/upload.php1,430 ▲274.14 ▼0.03101.15 ▼3.9264.79 ▲17.60
Data Update /wp-admin/admin.php?page=breadcrumb-data-update8242.0525.4426.90
Breadcrumb /wp-admin/admin.php?page=breadcrumb_settings4,0565.91164.7592.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • breadcrumb_options
    • breadcrumb_info
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Screenshots: These screenshots do not have images: #7 (screenshot-7), #8 (screenshot-8)
You can look at the official readme.txt

breadcrumb/breadcrumb.php Passed 13 tests

The primary PHP file in "Breadcrumb" version 1.5.43 is used by WordPress to initiate all plugin functionality
33 characters long description:
Awesome Breadcrumb for wordpress.

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
No dangerous file extensions were detected18,192 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,026
PHP142,5352545,264
CSS31,636273,394
PO File1135154305
JavaScript211326179
XML112024

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity133.80
▷ Minimum class complexity2.00
▷ Maximum class complexity658.00
Average method complexity17.20
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions77
▷ Named functions77100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
16 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/theme7.png3.57KB2.10KB▼ 41.27%
assets/admin/images/theme14.png3.60KB2.12KB▼ 41.21%
assets/admin/images/theme6.png3.45KB2.08KB▼ 39.76%
assets/admin/images/theme10.png3.41KB2.16KB▼ 36.59%
assets/admin/images/theme12.png3.44KB2.12KB▼ 38.28%