83% breadcrumbs-anywhere

Code Review | Breadcrumbs Anywhere

WordPress plugin Breadcrumbs Anywhere scored 83% from 54 tests.

About plugin

  • Plugin page: breadcrumbs-anywhere
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 23, 2020
  • Latest release: May 13, 2020
  • Number of updates: 12
  • Update frequency: every 9.3 days
  • Top authors: desparza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 803 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.02MB] [CPU: ▼5.10ms] Passed 4 tests

Server-side resources used by Breadcrumbs Anywhere
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.84 ▼12.08
Dashboard /wp-admin3.33 ▲0.0244.37 ▼0.72
Posts /wp-admin/edit.php3.38 ▲0.0250.30 ▲3.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.85 ▼9.63
Media Library /wp-admin/upload.php3.25 ▲0.0235.24 ▲2.02
Breadcrumbs Anywhere /wp-admin/admin.php?page=breadcrumbs-anywhere-settings3.2132.32
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu3.2129.84

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

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

Browser metrics Passed 4 tests

Breadcrumbs Anywhere: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲7914.45 ▲0.051.74 ▼0.6540.29 ▼5.34
Dashboard /wp-admin2,228 ▲375.80 ▼0.0998.55 ▼7.4244.98 ▼1.05
Posts /wp-admin/edit.php2,114 ▲282.06 ▲0.0139.79 ▲1.4240.38 ▲8.01
Add New Post /wp-admin/post-new.php1,535 ▲2117.69 ▲0.20629.29 ▼65.5756.78 ▲3.68
Media Library /wp-admin/upload.php1,407 ▲194.17 ▼0.1196.28 ▼2.7643.04 ▼0.77
Breadcrumbs Anywhere /wp-admin/admin.php?page=breadcrumbs-anywhere-settings8032.1825.0736.11
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu8022.0524.9228.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • 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
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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/breadcrumbs-anywhere/wp-breadcrumbs-anywhere.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires php: Version not formatted correctly
The official readme.txt is a good inspiration

breadcrumbs-anywhere/wp-breadcrumbs-anywhere.php 85% from 13 tests

Analyzing the main PHP file in "Breadcrumbs Anywhere" version 1.0
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("breadcrumbs-anywhere.php" instead of "wp-breadcrumbs-anywhere.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21827100
CSS1112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin