79% flexy-breadcrumb

Code Review | Flexy Breadcrumb

WordPress plugin Flexy Breadcrumb scored 79% from 54 tests.

About plugin

  • Plugin page: flexy-breadcrumb
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 15, 2017
  • Latest release: Aug 10, 2023
  • Number of updates: 33
  • Update frequency: every 71.9 days
  • Top authors: PressTigers (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

20,000+ active / 111,835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.32MB] [CPU: ▼0.40ms] Passed 4 tests

An overview of server-side resources used by Flexy Breadcrumb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3250.06 ▲2.74
Dashboard /wp-admin3.62 ▲0.3156.55 ▼1.15
Posts /wp-admin/edit.php3.73 ▲0.3752.71 ▲1.14
Add New Post /wp-admin/post-new.php6.22 ▲0.3396.37 ▼4.33
Media Library /wp-admin/upload.php3.54 ▲0.3146.69 ▲12.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Flexy Breadcrumb
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲12113.97 ▲0.795.18 ▲3.3543.30 ▼2.93
Dashboard /wp-admin2,216 ▲105.83 ▲0.99115.78 ▲3.2982.63 ▲39.86
Posts /wp-admin/edit.php2,114 ▲252.00 ▼0.0638.90 ▲3.9134.69 ▼0.28
Add New Post /wp-admin/post-new.php1,447 ▼8617.80 ▼5.43835.00 ▲193.9852.94 ▼4.91
Media Library /wp-admin/upload.php1,407 ▲164.21 ▲0.04102.19 ▲3.4680.38 ▲36.33

Uninstaller [IO: ✅] [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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/flexy-breadcrumb/admin/partials/flexy-breadcrumb-admin-display.php
    • > /wp-content/plugins/flexy-breadcrumb/public/partials/flexy-breadcrumb-public-display.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flexy-breadcrumb/admin/settings/class-flexy-breadcrumb-settings-general.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexy-breadcrumb/public/class-flexy-breadcrumb-typography.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flexy-breadcrumb/admin/class-flexy-breadcrumb-settings-init.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flexy-breadcrumb/admin/settings/class-flexy-breadcrumb-settings-typography.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
7 plugin tags: navigation, breadcrumb, navigate, page link, menu...

flexy-breadcrumb/flexy-breadcrumb.php Passed 13 tests

The main PHP script in "Flexy Breadcrumb" version 1.2.1 is automatically included on every request by WordPress
91 characters long description:
Flexy Breadcrumb is a super light weight & easy to navigate through current page hierarchy.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,660 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS427601,727
PHP182979111,101
PO File14659109
JavaScript493852

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.69
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods56
▷ Static methods23.57%
▷ Public methods5191.07%
▷ Protected methods00.00%
▷ Private methods58.93%
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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/powerByIcon.png6.17KB2.52KB▼ 59.18%
admin/images/admin-menu-icon.png1.26KB0.40KB▼ 68.14%
admin/images/flexy-breadcrumb-logo.png5.45KB3.04KB▼ 44.24%