90% json-ld-breadcrumbs

Code Review | JSON-LD Breadcrumbs

WordPress plugin JSON-LD Breadcrumbs scored90%from 54 tests.

About plugin

  • Plugin page: json-ld-breadcrumbs
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Apr 24, 2017
  • Latest release: Aug 17, 2023
  • Number of updates: 13
  • Update frequency: every 177.4 days
  • Top authors: Nikschavan (92.31%)patilvikasj (15.38%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /5,915 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by JSON-LD Breadcrumbs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.0442.10 ▼9.81
Dashboard /wp-admin3.60 ▲0.0451.75 ▼12.46
Posts /wp-admin/edit.php3.72 ▲0.0454.32 ▲2.94
Add New Post /wp-admin/post-new.php6.18 ▲0.04106.33 ▼4.96
Media Library /wp-admin/upload.php3.53 ▲0.0435.27 ▼3.64

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for JSON-LD Breadcrumbs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.37 ▲0.151.81 ▼0.4141.92 ▼2.13
Dashboard /wp-admin2,195 ▲245.67 ▼0.0297.18 ▲1.9845.00 ▼0.58
Posts /wp-admin/edit.php2,097 ▼02.01 ▼0.1139.37 ▲2.9836.71 ▲2.17
Add New Post /wp-admin/post-new.php1,545 ▲1223.29 ▼0.10600.09 ▼63.6450.91 ▼9.15
Media Library /wp-admin/upload.php1,400 ▲34.24 ▼0.0299.87 ▼10.2344.50 ▼0.60

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: json-ld, schema, google, breadcrumb, microdata...

json-ld-breadcrumbs/json-ld-breadcrumbs.php Passed 13 tests

This is the main PHP file of "JSON-LD Breadcrumbs" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
86 characters long description:
Adds JSON-LD based Breadcrumbs schema to your site visible only to the Search Engines.

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
Success! There were no dangerous files found in this plugin225 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP249159211
XML15214

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods210.53%
▷ Protected methods00.00%
▷ Private methods1789.47%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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 are no PNG files in this plugin