78% dp-rdfa-breadcrumb-generator

Code Review | DP RDFa Breadcrumb Generator

WordPress plugin DP RDFa Breadcrumb Generator scored 78% from 53 tests.

About plugin

  • Plugin page: dp-rdfa-breadcrum...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.1.0
  • WordPress version: 5.8.1
  • First release: Sep 5, 2014
  • Latest release: Dec 18, 2014
  • Number of updates: 21
  • Update frequency: every 5.0 days
  • Top authors: mylo2h2s (100%)

Code review

53 tests

User reviews

4 reviews

Install metrics

300+ active / 3,891 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼278.90ms] Passed 4 tests

This is a short check of server-side resources used by DP RDFa Breadcrumb Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0039.17 ▲6.38
Dashboard /wp-admin3.07 ▲0.0233.35 ▼9.11
Posts /wp-admin/edit.php3.12 ▲0.0143.26 ▼7.62
Add New Post /wp-admin/post-new.php5.43 ▲0.0087.02 ▼1,093.73
Media Library /wp-admin/upload.php3.01 ▲0.0032.54 ▼5.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 12 new options
New WordPress options
dp_breadcrumb_optlastchild
dp_breadcrumb_optmultiple
dp_breadcrumb_optseparator
dp_breadcrumb_showpage
dp_breadcrumb_opttext
dp_breadcrumb_opttexthome
dp_breadcrumb_showarchive
dp_breadcrumb_opttitle
dp_breadcrumb_showpost
dp_breadcrumb_optremove
...

Browser metrics Passed 4 tests

An overview of browser requirements for DP RDFa Breadcrumb Generator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲7715.85 ▲0.407.17 ▼0.8048.57 ▼3.24
Dashboard /wp-admin2,964 ▲1145.94 ▲0.09145.63 ▲11.06105.98 ▼0.67
Posts /wp-admin/edit.php2,711 ▲52.69 ▲0.0067.12 ▲3.1889.65 ▲3.52
Add New Post /wp-admin/post-new.php1,654 ▼19917.46 ▼1.63390.45 ▲14.28113.94 ▲3.87
Media Library /wp-admin/upload.php1,777 ▲615.02 ▲0.02153.49 ▲8.25115.58 ▲2.05
DP Breadcrumb /wp-admin/dp-rdfa-breadcrumb-generator.php260.900.0514.34

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 12 options
    • dp_breadcrumb_showhome
    • dp_breadcrumb_optseparator
    • dp_breadcrumb_opttext
    • dp_breadcrumb_showpost
    • dp_breadcrumb_opttitle
    • dp_breadcrumb_showpage
    • dp_breadcrumb_optlastchild
    • dp_breadcrumb_opttexthome
    • dp_breadcrumb_optremove
    • dp_breadcrumb_showtag
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dp-rdfa-breadcrumb-generator/dp-rdfa-breadcrumb-generator-opt.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/dp-rdfa-breadcrumb-generator.php
    • > Network (severe)
    wp-admin/dp-rdfa-breadcrumb-generator.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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
10 plugin tags: microdata, trail, multiple breadcrumbs, widget, google...

dp-rdfa-breadcrumb-generator/dp-rdfa-breadcrumb-generator.php 92% from 13 tests

This is the main PHP file of "DP RDFa Breadcrumb Generator" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

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
No dangerous file extensions were detected406 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28225406

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin