93% very-simple-breadcrumb

Code Review | Very Simple Breadcrumb

WordPress plugin Very Simple Breadcrumb scored 93% from 54 tests.

About plugin

  • Plugin page: very-simple-bread...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 5.9.2
  • First release: Dec 28, 2016
  • Latest release: Dec 28, 2016
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: infodesignbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 606 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by Very Simple Breadcrumb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0159.76 ▲9.49
Dashboard /wp-admin3.42 ▲0.0135.82 ▲1.31
Posts /wp-admin/edit.php3.65 ▲0.0136.60 ▼64.12
Add New Post /wp-admin/post-new.php6.89 ▼0.08142.61 ▼1,206.97
Media Library /wp-admin/upload.php3.30 ▲0.0127.93 ▲0.34
Very Simple Breadcrumb /wp-admin/options-general.php?page=very-simple-breadcrumb3.2722.47

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Very Simple Breadcrumb
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,904 ▲15016.47 ▲0.839.19 ▲2.032.80 ▲0.53
Dashboard /wp-admin2,925 ▲646.75 ▲0.56117.27 ▼15.16198.90 ▲31.36
Posts /wp-admin/edit.php2,724 ▲303.30 ▲0.0766.94 ▲0.52163.14 ▲13.80
Add New Post /wp-admin/post-new.php1,786 ▲3419.72 ▼1.44393.71 ▼99.72169.60 ▲12.22
Media Library /wp-admin/upload.php1,728 ▲305.91 ▲0.38128.74 ▼11.88197.01 ▲11.12
Very Simple Breadcrumb /wp-admin/options-general.php?page=very-simple-breadcrumb1,7383.5179.83201.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/very-simple-breadcrumb/very-simple-breadcrumb.php:11
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/very-simple-breadcrumb/very-simple-breadcrumb.php on line 11

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #2 (Dashboard Appearnce after activating the plugin) image not found
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

very-simple-breadcrumb/very-simple-breadcrumb.php 92% from 13 tests

The principal PHP file in "Very Simple Breadcrumb" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 348 characters long)

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
No dangerous file extensions were detected192 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15919189
JavaScript1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions8
▷ Named functions8100.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
There are no PNG files in this plugin