90% breadcrumb-for-frontend

Code Review | Breadcrumb For Frontend

WordPress plugin Breadcrumb For Frontend scored90%from 54 tests.

About plugin

  • Plugin page: breadcrumb-for-fr...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Jul 12, 2018
  • Latest release: Jul 13, 2018
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: gautamb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,128 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Breadcrumb For Frontend
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.83 ▼4.67
Dashboard /wp-admin3.34 ▲0.0446.04 ▼8.88
Posts /wp-admin/edit.php3.39 ▲0.0350.97 ▼6.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.57 ▼0.56
Media Library /wp-admin/upload.php3.26 ▲0.0332.31 ▼3.46

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Breadcrumb For Frontend
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲18013.94 ▼0.367.83 ▲5.9137.83 ▼4.80
Dashboard /wp-admin2,249 ▲614.84 ▼1.0198.27 ▼17.2548.55 ▲4.30
Posts /wp-admin/edit.php2,092 ▲62.14 ▲0.1340.42 ▲3.6834.70 ▼0.56
Add New Post /wp-admin/post-new.php1,532 ▼223.32 ▲0.17626.49 ▼36.8761.71 ▲7.94
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.1098.36 ▼1.2740.99 ▼1.65

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #3 (BFF plugin is fully compatiable with all devices(screenshot-3.png).) image not found
Please take inspiration from this readme.txt

breadcrumb-for-frontend/breadcrumb-for-frontend.php Passed 13 tests

The principal PHP file in "Breadcrumb For Frontend" v. 1.0.0 is loaded by WordPress automatically on each request
110 characters long description:
Breadcrumb For Frontend plugin is used for displaying the breadcrumb for web pages to easily navigate on pages

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
Success! There were no dangerous files found in this plugin226 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP242111170
CSS141449
JavaScript1117

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-2.png83.90KB30.66KB▼ 63.45%
assets/images/screeshot-3.png25.86KB12.38KB▼ 52.13%
assets/images/screenshot-1.png69.46KB27.93KB▼ 59.79%