84% breadcrumb-navigation-widget

Code Review | amr breadcrumb navigation

WordPress plugin amr breadcrumb navigation scored84%from 54 tests.

About plugin

  • Plugin page: breadcrumb-naviga...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 15, 2008
  • Latest release: Aug 17, 2020
  • Number of updates: 26
  • Update frequency: every 168.9 days
  • Top authors: anmari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /6,499 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.17ms] Passed 4 tests

This is a short check of server-side resources used by amr breadcrumb navigation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.95 ▼6.97
Dashboard /wp-admin3.32 ▲0.0149.70 ▼4.40
Posts /wp-admin/edit.php3.37 ▲0.0144.64 ▼8.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.38 ▼9.09
Media Library /wp-admin/upload.php3.24 ▲0.0138.42 ▲3.78

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_breadcrumb_navigation_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for amr breadcrumb navigation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.38 ▲0.061.64 ▼0.1342.05 ▼5.68
Dashboard /wp-admin2,195 ▲155.58 ▼0.1190.76 ▼0.3838.59 ▼6.24
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0239.73 ▲5.0834.93 ▼0.32
Add New Post /wp-admin/post-new.php1,558 ▲1323.16 ▼0.17663.92 ▼31.1851.49 ▼21.14
Media Library /wp-admin/upload.php1,403 ▲34.28 ▲0.0598.38 ▼4.5447.11 ▲1.34

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_breadcrumb_navigation_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 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/breadcrumb-navigation-widget/breadcrumb-navigation-widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: breadtrail, pages, breadcrumb, navigation, menu

breadcrumb-navigation-widget/breadcrumb-navigation-widget.php 85% from 13 tests

The main PHP script in "amr breadcrumb navigation" version 1.6 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 224 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin172 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13514110
CSS22842
PO File14720

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
bg-breadcrumb.png0.29KB0.15KB▼ 48.65%