10% yummi-multicategory-breadcrumbs

Code Review | Yummi Breadcrumbs (SubCategories Support)

WordPress plugin Yummi Breadcrumbs (SubCategories Support) scored 10% from 54 tests.

About plugin

  • Plugin page: yummi-multicatego...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9
  • WordPress version: 5.9.2
  • First release: Aug 27, 2015
  • Latest release: Mar 30, 2019
  • Number of updates: 158
  • Update frequency: every 8.3 days
  • Top authors: evilex (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 8,808 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/additional.php+3
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.31MB] [CPU: ▼314.52ms] 75% from 4 tests

Analyzing server-side resources used by Yummi Breadcrumbs (SubCategories Support)
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 712.38ms on /wp-admin/admin.php?page=yummi)
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3055.36 ▲1.05
Dashboard /wp-admin3.77 ▲0.3641.43 ▲2.86
Posts /wp-admin/edit.php3.99 ▲0.3570.99 ▼47.55
Add New Post /wp-admin/post-new.php7.23 ▲0.25101.05 ▼1,214.22
Media Library /wp-admin/upload.php3.64 ▲0.3527.99 ▲2.64
Yummi Plugins /wp-admin/admin.php?page=yummi3.75712.38
Yummi Breadcrumbs /wp-admin/admin.php?page=yummibreadcrumbs3.5931.44

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 3 new options
New WordPress options
name
br-yummi
yummibreadcrumbs_redirect

Browser metrics Passed 4 tests

A check of browser resources used by Yummi Breadcrumbs (SubCategories Support)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲4815.36 ▼0.196.17 ▲0.362.30 ▼0.29
Dashboard /wp-admin2,925 ▲726.16 ▼0.08120.78 ▼1.30183.93 ▲15.16
Posts /wp-admin/edit.php2,703 ▲123.13 ▼0.1191.03 ▲23.22139.76 ▼12.57
Add New Post /wp-admin/post-new.php1,718 ▲5221.02 ▲0.57434.44 ▼23.61244.88 ▲80.52
Media Library /wp-admin/upload.php1,729 ▲285.50 ▼0.02136.24 ▼8.14215.82 ▲29.54
Yummi Plugins /wp-admin/admin.php?page=yummi2,4937.84200.49221.32
Yummi Breadcrumbs /wp-admin/admin.php?page=yummibreadcrumbs2,2277.41194.30475.47

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
  • Zombie WordPress options were found after uninstall: 3 options
    • yummibreadcrumbs_redirect
    • name
    • br-yummi

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=yummi
    • > Notice in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/yummi-plugins.php+117
    Undefined variable: tab
    • > GET request to /wp-admin/admin.php?page=yummibreadcrumbs
    • > Notice in wp-content/plugins/yummi-multicategory-breadcrumbs/admin.php+532
    Undefined index: exCats

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
Please take a closer look at the following
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/br_amp.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/additional.php on line 27
    • > PHP Notice
      Undefined variable: bro in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/additional.php on line 27
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/additional.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/yummi-plugins.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/yummi-multicategory-breadcrumbs/yummi-multicategory-breadcrumbs.php:18
    • > PHP Notice
      Undefined variable: bro in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/additional.php on line 3
    • > PHP Notice
      Undefined variable: bro in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/additional.php on line 12
    • > PHP Notice
      Undefined variable: bro in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/additional.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yummi-multicategory-breadcrumbs/includes/br.php:81

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=yummi
    • > Network (severe)
    https://www.paypalobjects.com/en_IT/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can take inspiration from this readme.txt

yummi-multicategory-breadcrumbs/yummi-multicategory-breadcrumbs.php Passed 13 tests

The main PHP file in "Yummi Breadcrumbs (SubCategories Support)" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
125 characters long description:
Yummi Breadcrumbs is Super light weight & easy plugin with support SubCategories showing, SEO friendly and Auto Installation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,767 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP62723111,561
PO File188110202
CSS4004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity24.00
▷ Minimum class complexity15.00
▷ Maximum class complexity42.00
Average method complexity5.31
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/dashicons-yummi.png1.81KB0.85KB▼ 52.89%