84% wpsso-breadcrumbs

Code Review | WPSSO Schema Breadcrumbs Markup

WordPress plugin WPSSO Schema Breadcrumbs Markup scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-breadcrumbs
  • Plugin version: 5.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2018
  • Latest release: Nov 9, 2023
  • Number of updates: 1,760
  • Update frequency: every 1.2 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

700+ active /40,180 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
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼8.06ms] Passed 4 tests

Server-side resources used by WPSSO Schema Breadcrumbs Markup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.21 ▼6.37
Dashboard /wp-admin3.45 ▲0.1446.08 ▼8.60
Posts /wp-admin/edit.php3.56 ▲0.2046.16 ▼4.10
Add New Post /wp-admin/post-new.php6.03 ▲0.1481.26 ▼13.16
Media Library /wp-admin/upload.php3.37 ▲0.1434.53 ▼3.16

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

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

Browser metrics Passed 4 tests

WPSSO Schema Breadcrumbs Markup: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3414.14 ▼0.031.87 ▼0.1740.75 ▼3.56
Dashboard /wp-admin2,201 ▲215.60 ▼0.0288.97 ▲3.7640.83 ▼3.07
Posts /wp-admin/edit.php2,106 ▲92.03 ▲0.0139.14 ▲1.7236.52 ▲1.67
Add New Post /wp-admin/post-new.php1,532 ▲623.30 ▲0.10660.15 ▼44.2650.28 ▼7.61
Media Library /wp-admin/upload.php1,409 ▲124.14 ▼0.02101.95 ▼6.5443.15 ▼5.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 16× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/wpsso-breadcrumbs/lib/compat.php
    • > /wp-content/plugins/wpsso-breadcrumbs/lib/abstract/add-on.php
    • > /wp-content/plugins/wpsso-breadcrumbs/lib/abstract/com/add-on.php
    • > /wp-content/plugins/wpsso-breadcrumbs/wpsso-breadcrumbs.php
    • > /wp-content/plugins/wpsso-breadcrumbs/lib/config.php
    • > /wp-content/plugins/wpsso-breadcrumbs/gettext/gettext-lib-config.php
    • > /wp-content/plugins/wpsso-breadcrumbs/lib/submenu/breadcrumbs.php
    • > /wp-content/plugins/wpsso-breadcrumbs/lib/functions.php
    • > /wp-content/plugins/wpsso-breadcrumbs/lib/register.php
    • > /wp-content/plugins/wpsso-breadcrumbs/lib/filters-messages.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: google, schema, seo, breadcrumbs, hierarchy...

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

"WPSSO Schema Breadcrumbs Markup" version 5.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Schema BreadcrumbList markup in JSON-LD format for Google Rich Results.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,193 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP165853251,026
PO File1222269
HTML350065
Markdown118033

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.47
Average class complexity13.08
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods56
▷ Static methods1323.21%
▷ Public methods4682.14%
▷ Protected methods610.71%
▷ Private methods47.14%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants7
▷ Global constants7100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png52.34KB19.99KB▼ 61.82%
images/icon-128x128.png19.60KB7.58KB▼ 61.34%