10% st-breadcrumbs

Code Review | ST Breadcrumb

WordPress plugin ST Breadcrumb scored10%from 54 tests.

About plugin

  • Plugin page: st-breadcrumbs
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Oct 6, 2014
  • Latest release: Dec 2, 2015
  • Number of updates: 12
  • Update frequency: every 35.3 days
  • Top authors: beautifultemplates (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,327 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/st-breadcrumbs/widget.php+50
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.15ms] Passed 4 tests

A check of server-side resources used by ST Breadcrumb
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.433.79 ▼33.94
Dashboard /wp-admin2.05 ▼1.265.40 ▼42.92
Posts /wp-admin/edit.php2.05 ▼1.316.29 ▼43.08
Add New Post /wp-admin/post-new.php2.05 ▼3.845.17 ▼100.64
Media Library /wp-admin/upload.php2.05 ▼1.185.40 ▼28.35
ST Breadcrumb WP /wp-admin/options-general.php?page=st_breadcrumb_wp2.055.22

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ST Breadcrumb
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.48 ▼0.131.60 ▼0.3839.15 ▼2.65
Dashboard /wp-admin2,212 ▲274.85 ▼0.06109.65 ▲9.6639.24 ▼3.54
Posts /wp-admin/edit.php2,098 ▲92.00 ▼0.0440.54 ▼0.5835.48 ▲0.13
Add New Post /wp-admin/post-new.php1,528 ▼518.29 ▼5.12618.02 ▼30.0066.04 ▲16.17
Media Library /wp-admin/upload.php1,394 ▲64.22 ▲0.0996.61 ▼19.5243.55 ▼4.29
ST Breadcrumb WP /wp-admin/options-general.php?page=st_breadcrumb_wp1,0132.0823.1748.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/st-breadcrumbs/widget.php+50
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_st_breadcrumb_widget
    • st_breadcrumb_admin_notice
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=st_breadcrumb_wp
    • > Deprecated in wp-content/plugins/st-breadcrumbs/widget.php+50
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=st_breadcrumb_wp
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in st_breadcrumb_widget is deprecated since version 4.3.0! Use __construct() instead.

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/st-breadcrumbs/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/st-breadcrumbs/st-breadcrumb.php:12

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
2 plugin tags: breadcrumb plugin, breadcrumb

st-breadcrumbs/st-breadcrumb.php 92% from 13 tests

This is the main PHP file of "ST Breadcrumb" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("st-breadcrumbs.php" instead of "st-breadcrumb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin663 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2914363
CSS202245
PO File1191955

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.50
▷ Minimum class complexity4.00
▷ Maximum class complexity29.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/bc-icon.png1.36KB0.69KB▼ 49.50%
images/st-searchwp-bg.png0.08KB0.09KB0.00%