84% wpshore-breadcrumb

Code Review | WPshore Breadcrumbs

WordPress plugin WPshore Breadcrumbs scored84%from 54 tests.

About plugin

  • Plugin page: wpshore-breadcrumb
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Feb 22, 2013
  • Latest release: Sep 22, 2014
  • Number of updates: 11
  • Update frequency: every 52.9 days
  • Top authors: nablasol (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /6,820 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.25ms] Passed 4 tests

Server-side resources used by WPshore Breadcrumbs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.51 ▼2.91
Dashboard /wp-admin3.33 ▲0.0345.76 ▼4.27
Posts /wp-admin/edit.php3.39 ▲0.0249.15 ▼4.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0291.61 ▼17.35
Media Library /wp-admin/upload.php3.26 ▲0.0239.40 ▲0.79

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPshore Breadcrumbs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.301.60 ▼0.7640.54 ▼5.88
Dashboard /wp-admin2,195 ▲155.62 ▼0.0189.16 ▼2.4344.04 ▼0.11
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0240.45 ▲3.1135.64 ▲2.25
Add New Post /wp-admin/post-new.php1,526 ▼222.97 ▼0.12676.95 ▲32.9962.31 ▲8.06
Media Library /wp-admin/upload.php1,403 ▲64.20 ▼0.02103.33 ▼1.8144.88 ▲2.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wpshore-breadcrumb/wpshore-breadcrumbs.php:122

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: breadcrumbs, breadcrumb, navigation, menu

wpshore-breadcrumb/wpshore-breadcrumbs.php 92% from 13 tests

This is the main PHP file of "WPshore Breadcrumbs" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpshore-breadcrumb.php" instead of "wpshore-breadcrumbs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP122992

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin