84% slkz-breadcrumbs

Code Review | SlkZ Breadcrumbs

WordPress plugin SlkZ Breadcrumbs scored84%from 54 tests.

About plugin

  • Plugin page: slkz-breadcrumbs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Mar 28, 2014
  • Latest release: Apr 16, 2014
  • Number of updates: 3
  • Update frequency: every 6.3 days
  • Top authors: SolykZ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,161 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.88ms] Passed 4 tests

Server-side resources used by SlkZ Breadcrumbs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.33 ▲1.70
Dashboard /wp-admin3.31 ▲0.0049.11 ▼9.31
Posts /wp-admin/edit.php3.36 ▲0.0049.81 ▼0.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.56 ▲5.07
Media Library /wp-admin/upload.php3.23 ▲0.0037.37 ▲0.46

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SlkZ Breadcrumbs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.37 ▲0.101.83 ▼0.1044.93 ▼2.63
Dashboard /wp-admin2,195 ▲155.63 ▼0.0392.47 ▼13.3038.50 ▼11.08
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0344.41 ▲3.9036.67 ▼0.00
Add New Post /wp-admin/post-new.php1,526 ▼1122.92 ▲4.82626.79 ▲5.9963.62 ▼3.72
Media Library /wp-admin/upload.php1,400 ▼34.19 ▲0.0493.43 ▼6.6244.75 ▼0.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/slkz-breadcrumbs/slkz-breadcrumbs.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: trails, breadcrumbs, bread, breadcrumb, trail...

slkz-breadcrumbs/slkz-breadcrumbs.php Passed 13 tests

The principal PHP file in "SlkZ Breadcrumbs" v. 1.0 is loaded by WordPress automatically on each request
135 characters long description:
Adds a breadcrumb trail to your WordPress installation to allow your users to keep track of their location within your pages structure.

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
No dangerous file extensions were detected123 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12410484
PO File13329
CSS11010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods240.00%
▷ Protected methods00.00%
▷ Private methods360.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 files were detected