99% jinx-breadcrumbs

Code Review | Jinx-Breadcrumbs

WordPress plugin Jinx-Breadcrumbs scored 99% from 54 tests.

About plugin

  • Plugin page: jinx-breadcrumbs
  • Plugin version: 0.2.11
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 5.8.1
  • First release: Nov 30, 2020
  • Latest release: Jun 4, 2021
  • Number of updates: 4
  • Update frequency: every 47.2 days
  • Top authors: Lugat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 155 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼140.15ms] Passed 4 tests

An overview of server-side resources used by Jinx-Breadcrumbs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0537.30 ▲1.94
Dashboard /wp-admin3.11 ▲0.0655.05 ▲5.55
Posts /wp-admin/edit.php3.16 ▲0.0648.97 ▲0.27
Add New Post /wp-admin/post-new.php5.47 ▲0.0495.18 ▼563.01
Media Library /wp-admin/upload.php3.05 ▲0.0535.34 ▲0.22

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Jinx-Breadcrumbs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.15 ▲0.669.99 ▼2.2048.04 ▼2.71
Dashboard /wp-admin2,973 ▲425.90 ▼0.02145.95 ▼9.87118.12 ▲3.29
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0169.87 ▼0.6691.12 ▲2.24
Add New Post /wp-admin/post-new.php1,615 ▲1121.38 ▲2.48282.05 ▼120.45105.89 ▼7.09
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.02182.54 ▲31.51119.94 ▼7.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: breadcrumbs, seo

jinx-breadcrumbs/index.php 85% from 13 tests

Analyzing the main PHP file in "Jinx-Breadcrumbs" version 0.2.11
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jinx-breadcrumbs.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 detected281 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31369281

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity19.50
▷ Minimum class complexity2.00
▷ Maximum class complexity37.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods746.67%
▷ Protected methods853.33%
▷ 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin