84% my-breadcrumb-navigation

Code Review | My Breadcrumb Navigation

WordPress plugin My Breadcrumb Navigation scored 84% from 54 tests.

About plugin

  • Plugin page: my-breadcrumb-nav...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2023
  • Latest release: Jan 10, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: haghs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 110 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by My Breadcrumb Navigation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.67 ▼3.70
Dashboard /wp-admin3.31 ▲0.0046.06 ▼1.22
Posts /wp-admin/edit.php3.36 ▲0.0043.65 ▼4.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.56 ▲2.03
Media Library /wp-admin/upload.php3.23 ▲0.0036.82 ▲0.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by My Breadcrumb Navigation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.76 ▲0.382.09 ▲0.4638.76 ▼4.68
Dashboard /wp-admin2,208 ▲195.83 ▲0.86113.36 ▼2.8944.91 ▲1.12
Posts /wp-admin/edit.php2,097 ▲82.02 ▲0.0434.84 ▼3.1933.43 ▼0.20
Add New Post /wp-admin/post-new.php1,419 ▼11522.02 ▼1.16570.34 ▼113.5529.88 ▼26.95
Media Library /wp-admin/upload.php1,393 ▲54.23 ▲0.0497.36 ▼3.6240.15 ▼2.76

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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 following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/my-breadcrumb-navigation/MyBreadcrumbNavigation.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: copyright notice

my-breadcrumb-navigation/MyBreadcrumbNavigation.php 92% from 13 tests

The principal PHP file in "My Breadcrumb Navigation" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-breadcrumb-navigation.php" instead of "MyBreadcrumbNavigation.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
No dangerous file extensions were detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin