84% woocommerce-breadcrumbs

Code Review | WooCommerce Breadcrumbs

WordPress plugin WooCommerce Breadcrumbs scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-bread...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Aug 10, 2023
  • Number of updates: 36
  • Update frequency: every 94.9 days
  • Top authors: ahortin (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

8,000+ active /93,855 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.28ms] Passed 4 tests

Server-side resources used by WooCommerce Breadcrumbs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.44 ▲2.56
Dashboard /wp-admin3.33 ▲0.0354.00 ▲0.01
Posts /wp-admin/edit.php3.38 ▲0.0349.96 ▼3.88
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.40 ▼15.63
Media Library /wp-admin/upload.php3.25 ▲0.0336.97 ▼5.63
WC Breadcrumbs /wp-admin/options-general.php?page=woocommerce-breadcrumbs3.2234.02

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Breadcrumbs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.75 ▲0.222.06 ▲0.1848.57 ▲2.93
Dashboard /wp-admin2,196 ▲225.54 ▲0.0284.11 ▼17.8636.69 ▼10.42
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0435.97 ▲0.5432.23 ▼4.13
Add New Post /wp-admin/post-new.php1,529 ▲123.22 ▲0.06691.70 ▼21.0660.73 ▲1.51
Media Library /wp-admin/upload.php1,401 ▲14.14 ▼0.0699.71 ▼11.4043.29 ▼5.89
WC Breadcrumbs /wp-admin/options-general.php?page=woocommerce-breadcrumbs8932.0123.7230.48

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 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/woocommerce-breadcrumbs/woocommerce-breadcrumbs.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: woocommerce, ecommerce, breadcrumbs, woothemes, commerce...

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

The entry point to "WooCommerce Breadcrumbs" version 1.0.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "2.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected231 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25777231

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin