89% breadcrumb-block

Code Review | Breadcrumb Block

WordPress plugin Breadcrumb Block scored 89% from 54 tests.

About plugin

  • Plugin page: breadcrumb-block
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 22, 2022
  • Latest release: Sep 22, 2023
  • Number of updates: 17
  • Update frequency: every 19.8 days
  • Top authors: Mr2P (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

800+ active / 5,876 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.02ms] Passed 4 tests

This is a short check of server-side resources used by Breadcrumb Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.67 ▼4.76
Dashboard /wp-admin3.32 ▲0.0243.56 ▼5.98
Posts /wp-admin/edit.php3.43 ▲0.0849.29 ▲2.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0277.79 ▼7.79
Media Library /wp-admin/upload.php3.24 ▲0.0236.33 ▲3.58

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Breadcrumb Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.29 ▼1.081.64 ▼0.0337.39 ▼4.86
Dashboard /wp-admin2,209 ▲244.84 ▼1.04110.18 ▲11.0241.99 ▲2.39
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0633.54 ▼7.2430.51 ▼7.52
Add New Post /wp-admin/post-new.php1,684 ▲14222.35 ▲4.25641.19 ▼22.5145.12 ▼21.03
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.0593.56 ▼5.1940.34 ▼5.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: gutenberg, navigation, block, menu, breadcrumb

breadcrumb-block/breadcrumb-block.php 85% from 13 tests

The main PHP file in "Breadcrumb Block" ver. 1.0.12 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.9.0" instead of "5.8")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.0.0" instead of "7.0")

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
Everything looks great! No dangerous files found in this plugin499 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3123217407
JSON10089
CSS2002
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods31
▷ Static methods13.23%
▷ Public methods1032.26%
▷ Protected methods2064.52%
▷ Private methods13.23%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin