90% breadcrumb-box

Code Review | Breadcrumb Box

WordPress plugin Breadcrumb Box scored 90% from 54 tests.

About plugin

  • Plugin page: breadcrumb-box
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 5.8.1
  • First release: Mar 6, 2019
  • Latest release: Jan 5, 2022
  • Number of updates: 171
  • Update frequency: every 6.1 days
  • Top authors: photoboxone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,166 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.05MB] [CPU: ▼150.04ms] Passed 4 tests

Server-side resources used by Breadcrumb Box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0527.01 ▲1.25
Dashboard /wp-admin3.12 ▲0.0635.11 ▼6.77
Posts /wp-admin/edit.php3.17 ▲0.0639.22 ▲1.64
Add New Post /wp-admin/post-new.php5.48 ▲0.0470.36 ▼592.40
Media Library /wp-admin/upload.php3.06 ▲0.0624.91 ▼2.22
Breadcrumb Box /wp-admin/options-general.php?page=breadcrumb-box-setting3.0320.46

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
widget_widget_breadcrumb_box

Browser metrics Passed 4 tests

An overview of browser requirements for Breadcrumb Box
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7515.72 ▲0.105.77 ▲0.5275.80 ▼3.31
Dashboard /wp-admin2,940 ▲446.20 ▲0.03113.32 ▼16.55170.96 ▼3.04
Posts /wp-admin/edit.php2,750 ▲73.24 ▲0.1461.58 ▼1.16134.16 ▼5.16
Add New Post /wp-admin/post-new.php2,325 ▼1,48222.00 ▲3.23402.47 ▼17.14159.35 ▼11.55
Media Library /wp-admin/upload.php1,762 ▲105.58 ▲0.06141.80 ▼15.79182.50 ▼1.61
Breadcrumb Box /wp-admin/options-general.php?page=breadcrumb-box-setting1,1542.4152.67119.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_widget_breadcrumb_box

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% 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
4 plugin tags: seo, links, breadcrumb, pathway

breadcrumb-box/index.php 92% from 13 tests

The entry point to "Breadcrumb Box" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("breadcrumb-box.php" instead of "index.php")

Code Analysis Passed 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 detected460 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP515488329
CSS133119
JavaScript15310
HTML2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity5.78
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods444.44%
▷ Protected methods00.00%
▷ Private methods555.56%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
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