84% pop-breadcrumb-shortcode

Code Review | Simple BreadCrumb

WordPress plugin Simple BreadCrumb scored84%from 54 tests.

About plugin

  • Plugin page: pop-breadcrumb-sh...
  • Plugin version: 1.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2023
  • Latest release: Feb 2, 2023
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: spirecool (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /169 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.57ms] Passed 4 tests

A check of server-side resources used by Simple BreadCrumb
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0143.01 ▼1.65
Dashboard /wp-admin3.36 ▲0.0148.32 ▼1.98
Posts /wp-admin/edit.php3.47 ▲0.0749.42 ▼1.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0185.73 ▼9.50
Media Library /wp-admin/upload.php3.28 ▲0.0139.60 ▲1.24

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

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

Browser metrics Passed 4 tests

Simple BreadCrumb: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.72 ▲0.351.82 ▲0.1544.20 ▼0.24
Dashboard /wp-admin2,207 ▲275.56 ▼0.0983.54 ▼7.7338.44 ▼1.71
Posts /wp-admin/edit.php2,118 ▲152.03 ▼0.0638.33 ▲2.9833.30 ▼0.51
Add New Post /wp-admin/post-new.php1,541 ▲1523.15 ▼0.48708.11 ▲7.5455.03 ▼0.68
Media Library /wp-admin/upload.php1,415 ▲214.17 ▼0.0594.49 ▼14.5840.21 ▼6.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pop-breadcrumb-shortcode/breadcrumb.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: breadcrumb, shortcode

pop-breadcrumb-shortcode/breadcrumb.php 85% from 13 tests

This is the main PHP file of "Simple BreadCrumb" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("8.1" instead of "7.1")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pop-breadcrumb-shortcode.php" instead of "breadcrumb.php")

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
Success! There were no dangerous files found in this plugin170 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
XML40061
PO File33354
PHP2273552
CSS1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/simple_breadcrumb_screenshot.png4.11KB2.17KB▼ 47.23%
assets/images/icon-256x256.png17.36KB8.40KB▼ 51.62%
assets/images/screenshot.png3.17KB1.97KB▼ 37.84%