78% catch-breadcrumb

Code Review | Catch Breadcrumb

WordPress plugin Catch Breadcrumb scored78%from 54 tests.

About plugin

  • Plugin page: catch-breadcrumb
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: Nov 15, 2023
  • Number of updates: 29
  • Update frequency: every 64.4 days
  • Top authors: catchthemes (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /46,950 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▲1.92ms] Passed 4 tests

This is a short check of server-side resources used by Catch Breadcrumb
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2540.93 ▲5.64
Dashboard /wp-admin3.54 ▲0.2449.87 ▲3.33
Posts /wp-admin/edit.php3.66 ▲0.3047.08 ▼2.00
Add New Post /wp-admin/post-new.php6.12 ▲0.2492.46 ▲2.74
Media Library /wp-admin/upload.php3.47 ▲0.2436.19 ▲3.60

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Catch Breadcrumb
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18413.78 ▼0.489.74 ▲8.0045.44 ▲3.30
Dashboard /wp-admin2,211 ▲335.60 ▼0.0390.11 ▼18.1039.45 ▼2.64
Posts /wp-admin/edit.php2,116 ▲161.94 ▼0.0738.87 ▼1.6734.52 ▼4.25
Add New Post /wp-admin/post-new.php1,539 ▲122.94 ▼2.28597.91 ▼61.5451.37 ▼19.72
Media Library /wp-admin/upload.php1,410 ▲104.18 ▼0.0395.34 ▼7.7640.54 ▼6.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/catch-breadcrumb/public/partials/catch-breadcrumb-public-display.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-breadcrumb/admin/partials/sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/catch-breadcrumb/admin/partials/footer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-breadcrumb/public/partials/class-catch-breadcrumb-json-ld-schema.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/catch-breadcrumb/includes/CatchThemesThemePlugin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-breadcrumb/admin/partials/catch-breadcrumb-admin-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/catch-breadcrumb/includes/shortcodes.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-breadcrumb/includes/ctp-tabs-removal.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-breadcrumb/admin/partials/dashboard-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: breadcrumbs, trail, navigation, menu, breadcrumb

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

"Catch Breadcrumb" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,328 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP195536901,543
CSS214424714
JavaScript4153371

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.70
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods4389.58%
▷ Protected methods00.00%
▷ Private methods510.42%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants4
▷ Global constants4100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/premium-plugin-246x116.png9.01KB4.16KB▼ 53.83%
admin/images/free-plugin-246x116.png8.01KB3.81KB▼ 52.42%