84% breadcrumb-trail

Code Review | Breadcrumb Trail

WordPress plugin Breadcrumb Trail scored84%from 54 tests.

About plugin

  • Plugin page: breadcrumb-trail
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8.2
  • WordPress version: 6.3.1
  • First release: Apr 5, 2009
  • Latest release: Sep 26, 2017
  • Number of updates: 22
  • Update frequency: every 140.7 days
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

20,000+ active /235,309 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.13MB] [CPU: ▼3.15ms] Passed 4 tests

A check of server-side resources used by Breadcrumb Trail
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1339.25 ▼2.06
Dashboard /wp-admin3.44 ▲0.1446.72 ▼1.77
Posts /wp-admin/edit.php3.56 ▲0.2048.87 ▲1.73
Add New Post /wp-admin/post-new.php6.02 ▲0.1383.96 ▼10.51
Media Library /wp-admin/upload.php3.37 ▲0.1339.67 ▲4.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Breadcrumb Trail
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.48 ▲0.101.58 ▼0.1540.99 ▼5.63
Dashboard /wp-admin2,209 ▲184.86 ▼0.02108.22 ▲5.3038.02 ▼2.09
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0239.74 ▼0.4834.55 ▲1.10
Add New Post /wp-admin/post-new.php1,533 ▲1923.27 ▲1.61658.76 ▲3.7254.07 ▼5.44
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.0394.25 ▼7.0940.63 ▼2.42

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/breadcrumb-trail/breadcrumb-trail.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Breadcrumbs in Google search results.), #2 (Date-based permalink structure in breadcrumbs.), #3 (Custom post type + taxonomy (portfolio).), #4 (Image attachment of a blog post.)
The official readme.txt is a good inspiration

breadcrumb-trail/breadcrumb-trail.php 92% from 13 tests

"Breadcrumb Trail" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 284 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,015 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2272534525
Markdown41500490

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity153.00
▷ Minimum class complexity153.00
▷ Maximum class complexity153.00
Average method complexity5.61
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods515.15%
▷ Protected methods2884.85%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
2 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png42.91KB25.10KB▼ 41.51%
screenshot-1.png44.67KB21.74KB▼ 51.33%