10% schema-breadcrumbs

Code Review | Schema Breadcrumbs

WordPress plugin Schema Breadcrumbs scored10%from 54 tests.

About plugin

  • Plugin page: schema-breadcrumbs
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.1
  • WordPress version: 6.3.1
  • First release: Jan 13, 2016
  • Latest release: Jul 10, 2023
  • Number of updates: 47
  • Update frequency: every 58.2 days
  • Top authors: deano1987 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,781 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/schema-breadcrumbs/WDPanelAdmin.php+9
    Methods with the same name as their class will not be constructors in a future version of PHP; WDPanelAdmin has a deprecated constructor

Server metrics [RAM: ▼1.59MB] [CPU: ▼50.55ms] Passed 4 tests

Server-side resources used by Schema Breadcrumbs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.40 ▼1.069.70 ▼28.16
Dashboard /wp-admin2.42 ▼0.898.20 ▼37.98
Posts /wp-admin/edit.php2.42 ▼0.946.99 ▼41.10
Add New Post /wp-admin/post-new.php2.42 ▼3.477.47 ▼94.97
Media Library /wp-admin/upload.php2.42 ▼0.817.59 ▼24.22
Schema Breadcrumbs /wp-admin/options-general.php?page=schema-breadcrumbs2.427.87

Server storage [IO: ▲0.04MB] [DB: ▲0.38MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
schema_breadcrumbs
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Schema Breadcrumbs: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.59 ▼0.771.72 ▼0.0442.52 ▲1.74
Dashboard /wp-admin2,210 ▲225.79 ▼0.1197.37 ▼8.9840.23 ▼3.94
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0139.69 ▼1.1436.49 ▲1.12
Add New Post /wp-admin/post-new.php1,536 ▲123.71 ▲0.60653.28 ▼21.2864.02 ▲5.30
Media Library /wp-admin/upload.php1,389 ▼24.19 ▲0.0197.19 ▼1.6642.13 ▼0.04
Schema Breadcrumbs /wp-admin/options-general.php?page=schema-breadcrumbs1,2374.8652.2064.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/schema-breadcrumbs/WDPanelAdmin.php+9
    Methods with the same name as their class will not be constructors in a future version of PHP; WDPanelAdmin has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • schema_breadcrumbs

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=schema-breadcrumbs
    • > Deprecated in wp-content/plugins/schema-breadcrumbs/WDPanelAdmin.php+9
    Methods with the same name as their class will not be constructors in a future version of PHP; WDPanelAdmin has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=schema-breadcrumbs
    • > Notice in wp-content/plugins/schema-breadcrumbs/schema-breadcrumbs.php+189
    Undefined index: trytheme
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=schema-breadcrumbs
    • > User deprecated in wp-includes/functions.php+5453
    Function clean_url is deprecated since version 3.0.0! Use esc_url() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/schema-breadcrumbs/schema-breadcrumbs.php:39

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=schema-breadcrumbs
    • > Network (severe)
    https://yoast.com/theme/yoast-16x16.png - Failed to load resource: the server responded with a status of 404 ()

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
7 plugin tags: rdfa, breadcrumbs, schema, google, breadcrumb...

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

The main PHP script in "Schema Breadcrumbs" version 2.1.0 is automatically included on every request by WordPress
39 characters long description:
Outputs a fully Schema valid breadcrumb

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin902 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2183147882
CSS15020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.00
▷ Minimum class complexity8.00
▷ Maximum class complexity18.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
script_link.png0.86KB1.01KB0.00%