84% add-a-yoast-breadcrumb

Code Review | Add a Yoast Breadcrumb

WordPress plugin Add a Yoast Breadcrumb scored84%from 54 tests.

About plugin

  • Plugin page: add-a-yoast-bread...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Mar 8, 2016
  • Latest release: Apr 16, 2016
  • Number of updates: 4
  • Update frequency: every 11.2 days
  • Top authors: allonsacks@gmail.com (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,298 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼4.43ms] Passed 4 tests

A check of server-side resources used by Add a Yoast Breadcrumb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.22 ▼0.07
Dashboard /wp-admin3.31 ▲0.0150.81 ▲0.69
Posts /wp-admin/edit.php3.36 ▲0.0043.20 ▼1.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.85 ▼17.24
Media Library /wp-admin/upload.php3.23 ▲0.0037.07 ▲3.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Add a Yoast Breadcrumb
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.42 ▼0.121.74 ▲0.0844.40 ▲1.10
Dashboard /wp-admin2,195 ▲185.54 ▼0.0983.14 ▼5.1739.84 ▼4.13
Posts /wp-admin/edit.php2,082 ▼152.03 ▲0.0234.35 ▼1.2132.20 ▼9.16
Add New Post /wp-admin/post-new.php6,265 ▲4,73926.22 ▲3.20923.68 ▲270.1858.12 ▲2.80
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.05107.22 ▲8.2145.79 ▲1.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/add-a-yoast-breadcrumb/add-a-yoast-breadcrumb.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === add-a-yoast-breadcrumb === )
The official readme.txt is a good inspiration

add-a-yoast-breadcrumb/add-a-yoast-breadcrumb.php Passed 13 tests

The main PHP script in "Add a Yoast Breadcrumb" version 1.1.0 is automatically included on every request by WordPress
82 characters long description:
This plugin gives you an option to append a link after the first breadcrumb (Home)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1241084

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.64
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 2 tests

Image compression Passed 2 tests

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