84% instant-breadcrumbs

Code Review | Instant Breadcrumbs

WordPress plugin Instant Breadcrumbs scored 84% from 54 tests.

About plugin

  • Plugin page: instant-breadcrumbs
  • Plugin version: 1.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2013
  • Latest release: Aug 8, 2014
  • Number of updates: 66
  • Update frequency: every 3.4 days
  • Top authors: loseyourmarbles (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active / 33,655 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▲2.16ms] Passed 4 tests

Server-side resources used by Instant Breadcrumbs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2142.41 ▼2.77
Dashboard /wp-admin3.58 ▲0.2753.83 ▲1.31
Posts /wp-admin/edit.php3.63 ▲0.2756.74 ▲8.14
Add New Post /wp-admin/post-new.php6.09 ▲0.2194.23 ▲1.97
Media Library /wp-admin/upload.php3.44 ▲0.2142.80 ▲9.51
Breadcrumbs /wp-admin/themes.php?page=instant-breadcrumbs3.5542.93

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_lym_ib_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Instant Breadcrumbs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲413.21 ▼0.091.63 ▼0.3342.85 ▼0.62
Dashboard /wp-admin2,213 ▲105.90 ▲0.06108.77 ▲10.2140.38 ▲0.08
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0239.79 ▲3.8534.66 ▲2.16
Add New Post /wp-admin/post-new.php1,536 ▲1423.56 ▲0.43620.58 ▼114.0153.76 ▼8.03
Media Library /wp-admin/upload.php1,395 ▲74.21 ▼0.0496.92 ▼6.7640.60 ▼1.59
Breadcrumbs /wp-admin/themes.php?page=instant-breadcrumbs9292.0525.8529.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_lym_ib_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/instant-breadcrumbs/classes/class-instant-breadcrumbs-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/instant-breadcrumbs/classes/class-instant-breadcrumbs-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/instant-breadcrumbs/classes/class-instant-breadcrumbs-widget.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: breadcrumbs, links, navigation, menu

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

"Instant Breadcrumbs" version 1.4.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Adds a breadcrumb trail to your nav menu, with no theme editing!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,418 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP13971421,133
PO File3105123285

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.91
▷ Minimum class complexity7.00
▷ Maximum class complexity44.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods78
▷ Static methods4152.56%
▷ Public methods4962.82%
▷ Protected methods1417.95%
▷ Private methods1519.23%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/flattr-badge-large.png1.60KB1.56KB▼ 2.38%