78% sb-breadcrumbs

Code Review | SB Breadcrumbs

WordPress plugin SB Breadcrumbs scored 78% from 54 tests.

About plugin

  • Plugin page: sb-breadcrumbs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Mar 13, 2014
  • Latest release: Mar 13, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: jacking83 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,556 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.40ms] Passed 4 tests

An overview of server-side resources used by SB Breadcrumbs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.77 ▼6.77
Dashboard /wp-admin3.36 ▲0.0549.78 ▼0.53
Posts /wp-admin/edit.php3.41 ▲0.0553.17 ▼18.14
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.16 ▲3.84
Media Library /wp-admin/upload.php3.28 ▲0.0538.35 ▲6.26
SB Breadcrumbs /wp-admin/options-general.php?page=sb_breadcrumbs-setting3.2238.00

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for SB Breadcrumbs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲613.26 ▼1.511.66 ▼0.3644.56 ▲1.10
Dashboard /wp-admin2,210 ▲44.89 ▼1.02109.06 ▲0.4644.48 ▲4.60
Posts /wp-admin/edit.php2,096 ▲101.97 ▼0.0639.57 ▲3.2936.57 ▲5.43
Add New Post /wp-admin/post-new.php1,517 ▼217.78 ▼5.55608.54 ▼78.1156.65 ▼8.40
Media Library /wp-admin/upload.php1,386 ▲14.20 ▲0.0594.57 ▼4.9741.71 ▼2.39
SB Breadcrumbs /wp-admin/options-general.php?page=sb_breadcrumbs-setting9142.0627.8633.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+102
    Undefined index: show_on_home
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+113
    Undefined index: use_def_style
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+122
    Undefined index: home
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+128
    Undefined index: category
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+134
    Undefined index: search
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+140
    Undefined index: tag
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+146
    Undefined index: author
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+152
    Undefined index: p404
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+158
    Undefined index: year
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+164
    Undefined index: month
    • > GET request to /wp-admin/options-general.php?page=sb_breadcrumbs-setting
    • > Notice in wp-content/plugins/sb-breadcrumbs/sb_options.php+170
    Undefined index: day

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-breadcrumbs/sb_options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-breadcrumbs/sb_options.php:4

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: custom css, have options, breadcrumbs

sb-breadcrumbs/index.php 92% from 13 tests

The main PHP file in "SB Breadcrumbs" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sb-breadcrumbs.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected282 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP37023252
CSS12030

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png5.25KB2.58KB▼ 50.96%
img/breadcrumbs-bg.png1.02KB1.02KB0.00%
img/icon-arrow-right.png0.97KB0.16KB▼ 83.84%
screenshot-2.png16.89KB9.43KB▼ 44.19%