78% seo-breadcrumbs

Code Review | SEO Breadcrumbs

WordPress plugin SEO Breadcrumbs scored78%from 54 tests.

About plugin

  • Plugin page: seo-breadcrumbs
  • Plugin version: 7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: May 9, 2017
  • Latest release: Apr 5, 2021
  • Number of updates: 23
  • Update frequency: every 62.4 days
  • Top authors: krnmsaikrishna (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /16,410 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.69ms] Passed 4 tests

A check of server-side resources used by SEO Breadcrumbs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.88 ▲2.51
Dashboard /wp-admin3.40 ▲0.1047.67 ▼2.85
Posts /wp-admin/edit.php3.45 ▲0.1045.76 ▼3.23
Add New Post /wp-admin/post-new.php5.98 ▲0.1088.70 ▼0.28
Media Library /wp-admin/upload.php3.33 ▲0.1039.58 ▼0.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 16 new options
New WordPress options
sbc_default_settings
widget_recent-comments
sbc_home
widget_recent-posts
sbc_before_fontcolor
theysaidso_admin_options
sbc_separator_color
sbc_after_bgcolor
widget_theysaidso_widget
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for SEO Breadcrumbs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7213.24 ▼1.201.84 ▼0.0242.00 ▼2.49
Dashboard /wp-admin2,237 ▲314.87 ▼1.03110.07 ▲2.5942.20 ▼1.30
Posts /wp-admin/edit.php2,116 ▲161.99 ▲0.0036.12 ▼0.4836.10 ▲1.34
Add New Post /wp-admin/post-new.php1,562 ▲3123.29 ▼0.05611.44 ▼70.7050.00 ▼2.49
Media Library /wp-admin/upload.php1,416 ▲164.20 ▼0.0396.14 ▼16.2042.15 ▼0.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • sbc_after_bgcolor
    • can_compress_scripts
    • widget_seo_breadcrumbs_widget
    • widget_recent-comments
    • sbc_default_settings
    • sbc_before_bgcolor
    • db_upgraded
    • sbc_before_fontcolor
    • widget_theysaidso_widget
    • sbc_after_fontcolor
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/seo-breadcrumbs/seo-breadcrumbs.php
    • > /wp-content/plugins/seo-breadcrumbs/functions.php
    • > /wp-content/plugins/seo-breadcrumbs/settings.php
    • > /wp-content/plugins/seo-breadcrumbs/uninstall.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/seo-breadcrumbs/shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/seo-breadcrumbs/widget.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: navigation, trail, seo breadcrumbs, list, breadcrumb...

seo-breadcrumbs/seo-breadcrumbs.php 92% from 13 tests

Analyzing the main PHP file in "SEO Breadcrumbs" version 7.0
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 298 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected836 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP620468432
CSS2759362
XML10035
JavaScript2027

PHP code Passed 2 tests

An short overview of 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.29
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/plugin-donate.png1.67KB0.00KB▼ 100.00%
images/style2.png14.90KB7.89KB▼ 47.07%
images/style4.png6.49KB3.15KB▼ 51.46%
images/style0.png7.60KB3.39KB▼ 55.43%
images/style5.png6.67KB2.88KB▼ 56.75%