84% lana-breadcrumb

Code Review | Lana Breadcrumb

WordPress plugin Lana Breadcrumb scored 84% from 54 tests.

About plugin

  • Plugin page: lana-breadcrumb
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Oct 22, 2016
  • Latest release: May 28, 2022
  • Number of updates: 24
  • Update frequency: every 85.2 days
  • Top authors: lanacodes (70.83%)lanadesign (33.33%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 8,201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.48ms] Passed 4 tests

Server-side resources used by Lana Breadcrumb
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.49 ▼2.17
Dashboard /wp-admin3.34 ▲0.0346.00 ▼8.95
Posts /wp-admin/edit.php3.39 ▲0.0348.46 ▼1.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.97 ▼5.73
Media Library /wp-admin/upload.php3.26 ▲0.0333.76 ▼0.97

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_lana_breadcrumb
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Lana Breadcrumb
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.28 ▼1.401.74 ▼0.6842.88 ▼0.21
Dashboard /wp-admin2,209 ▲215.83 ▼0.1895.55 ▼22.3538.29 ▼9.91
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0539.16 ▲0.5435.33 ▲1.67
Add New Post /wp-admin/post-new.php1,520 ▼2423.21 ▲5.06633.99 ▼6.6164.07 ▼3.40
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0396.63 ▼0.0641.35 ▼1.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_lana_breadcrumb

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× 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/lana-breadcrumb/includes/class-lana-breadcrumb-widget.php:6

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: seo breadcrumb, bootstrap breadcrumb, breadcrumb

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

The entry point to "Lana Breadcrumb" version 1.1.0 is a PHP file that has certain tags in its header comment area
69 characters long description:
Indicate the current page's location within a navigational 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
Good job! No executable or dangerous file extensions detected168 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24099146
CSS14022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin