83% breadcrumbs-divi-module

Code Review | Breadcrumbs Divi Module

WordPress plugin Breadcrumbs Divi Module scored83%from 54 tests.

About plugin

  • Plugin page: breadcrumbs-divi-...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: May 7, 2020
  • Latest release: Jun 3, 2023
  • Number of updates: 19
  • Update frequency: every 59.1 days
  • Top authors: themeythemes (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

10,000+ active /32,535 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.46ms] Passed 4 tests

An overview of server-side resources used by Breadcrumbs Divi Module
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.03 ▼7.81
Dashboard /wp-admin3.35 ▲0.0453.14 ▼2.06
Posts /wp-admin/edit.php3.40 ▲0.0452.11 ▼0.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.06 ▼18.27
Media Library /wp-admin/upload.php3.27 ▲0.0436.67 ▼1.69

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/breadcrumbs-divi-module/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Breadcrumbs Divi Module
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3213.22 ▼1.151.76 ▼0.4842.87 ▼0.77
Dashboard /wp-admin2,227 ▲335.85 ▼0.04112.87 ▲6.4944.03 ▼3.14
Posts /wp-admin/edit.php2,103 ▲242.00 ▼0.0435.86 ▲0.7534.22 ▲1.45
Add New Post /wp-admin/post-new.php1,548 ▲323.13 ▲0.05629.21 ▼2.9853.74 ▲4.22
Media Library /wp-admin/upload.php1,406 ▲64.27 ▲0.0497.12 ▼4.5941.97 ▼4.11

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% 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 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
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/breadcrumbs-divi-module/divi-breadcrumbs.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/breadcrumbs-divi-module/includes/modules/DiviBreadcrumbs/DiviBreadcrumbs.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/breadcrumbs-divi-module/includes/DiviBreadcrumbs.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

breadcrumbs-divi-module/divi-breadcrumbs.php 85% from 13 tests

"Breadcrumbs Divi Module" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("breadcrumbs-divi-module.php" instead of "divi-breadcrumbs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected895 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
Markdown12120453
PHP411289438
CSS2002
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin