89% essential-breadcrumbs

Code Review | Essential Breadcrumbs

WordPress plugin Essential Breadcrumbs scored 89% from 54 tests.

About plugin

  • Plugin page: essential-breadcr...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7
  • WordPress version: 5.8.1
  • First release: Jan 5, 2016
  • Latest release: May 16, 2016
  • Number of updates: 8
  • Update frequency: every 50.4 days
  • Top authors: Essential Marketer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 1,689 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼141.14ms] Passed 4 tests

Analyzing server-side resources used by Essential Breadcrumbs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1433.78 ▲13.29
Dashboard /wp-admin3.09 ▲0.0445.37 ▲1.40
Posts /wp-admin/edit.php3.14 ▲0.0445.04 ▲3.01
Add New Post /wp-admin/post-new.php5.46 ▲0.0390.38 ▼565.95
Media Library /wp-admin/upload.php3.04 ▲0.0334.11 ▼3.01
Essential Breadcrumbs /wp-admin/options-general.php?page=essential-breadcrumbs3.0128.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Essential Breadcrumbs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲9015.92 ▲0.027.58 ▼0.7747.16 ▼1.39
Dashboard /wp-admin2,975 ▲415.90 ▼0.25137.77 ▼3.24115.15 ▲2.65
Posts /wp-admin/edit.php2,741 ▲22.69 ▼0.0070.54 ▲7.6696.06 ▲6.04
Add New Post /wp-admin/post-new.php1,722 ▲3917.09 ▼1.43362.87 ▲7.21117.85 ▲4.25
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.06145.23 ▼10.11120.27 ▼7.21
Essential Breadcrumbs /wp-admin/options-general.php?page=essential-breadcrumbs1,1212.9268.5065.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/essential-breadcrumbs/essential-breadcrumbs.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/essential-breadcrumbs/essential_breadcrumb_functions.php:92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/essential-breadcrumbs/admin/admin.php:3

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: url breadcrumbs, breadcrumbs, schema breadcrumbs, breadcrumbs based on url, essential breadcrumbs

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

The primary PHP file in "Essential Breadcrumbs" version 1.1.1 is used by WordPress to initiate all plugin functionality
73 characters long description:
Creates breadcrumbs based on the URL structure that are schema marked up.

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
Everything looks great! No dangerous files found in this plugin289 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP35222229
CSS20056
JavaScript1104

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/toggle-content.png0.50KB0.66KB0.00%