10% genzel-breadcrumbs

Code Review | Genzel breadcrumbs

WordPress plugin Genzel breadcrumbs scored10%from 54 tests.

About plugin

  • Plugin page: genzel-breadcrumbs
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 3, 2017
  • Latest release: Jul 8, 2018
  • Number of updates: 16
  • Update frequency: every 23.2 days
  • Top authors: shra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /921 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/genzel-breadcrumbs/gb.class.php+213
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼1.84MB] [CPU: ▼62.24ms] Passed 4 tests

An overview of server-side resources used by Genzel breadcrumbs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.314.94 ▼41.31
Dashboard /wp-admin2.18 ▼1.176.48 ▼61.45
Posts /wp-admin/edit.php2.18 ▼1.186.04 ▼43.74
Add New Post /wp-admin/post-new.php2.18 ▼3.715.64 ▼102.46
Media Library /wp-admin/upload.php2.18 ▼1.065.57 ▼31.32
Genzel Breadcrumbs /wp-admin/options-general.php?page=genzel-breadcrumbs/gb.class.php2.186.24

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Genzel breadcrumbs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.35 ▼0.001.95 ▲0.2743.47 ▲1.71
Dashboard /wp-admin2,196 ▲165.55 ▼0.0288.63 ▼4.6238.86 ▼3.70
Posts /wp-admin/edit.php2,107 ▲42.02 ▼0.0141.02 ▲3.7936.40 ▼0.28
Add New Post /wp-admin/post-new.php1,529 ▲323.68 ▲0.64650.33 ▲5.7948.81 ▼2.61
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.05100.90 ▼3.8840.73 ▼4.65
Genzel Breadcrumbs /wp-admin/options-general.php?page=genzel-breadcrumbs/gb.class.php1,2451.6727.1350.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/genzel-breadcrumbs/gb.class.php+213
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=genzel-breadcrumbs/gb.class.php
    • > Warning in wp-content/plugins/genzel-breadcrumbs/gb.class.php+213
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=genzel-breadcrumbs/gb.class.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=genzel-breadcrumbs/gb.class.php
    • > Notice in wp-content/plugins/genzel-breadcrumbs/gb.class.php+412
    Undefined index: action

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/genzel-breadcrumbs/gb.class.php on line 213
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/genzel-breadcrumbs/settings.php on line 1
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/genzel-breadcrumbs/gb.class.php on line 213

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: trail, link, simple breadcrumbs, menu, navigation...

genzel-breadcrumbs/genzel-breadcrumbs.php Passed 13 tests

The main file in "Genzel breadcrumbs" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Helps build breadcrumbs nav links. Based on WP menu, can be configured and hooked.

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
Success! There were no dangerous files found in this plugin769 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP413542769

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity107.00
▷ Minimum class complexity107.00
▷ Maximum class complexity107.00
Average method complexity9.15
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin