84% simple-breadcrumb

Code Review | Simple Breadcrumb

WordPress plugin Simple Breadcrumb scored 84% from 54 tests.

About plugin

  • Plugin page: simple-breadcrumb
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Feb 17, 2016
  • Number of updates: 13
  • Update frequency: every 1.8 days
  • Top authors: sudharmika (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,963 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
Installer ran successfully

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

Server-side resources used by Simple Breadcrumb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.15 ▼3.05
Dashboard /wp-admin3.32 ▲0.0146.57 ▼4.53
Posts /wp-admin/edit.php3.37 ▲0.0147.90 ▼3.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.92 ▼24.15
Media Library /wp-admin/upload.php3.24 ▲0.0136.40 ▲4.19

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

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

Browser metrics Passed 4 tests

Simple Breadcrumb: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.24 ▼1.311.77 ▼0.4041.81 ▼7.72
Dashboard /wp-admin2,203 ▲155.84 ▲0.98116.06 ▼4.5751.53 ▲2.94
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0740.37 ▼0.6040.38 ▲4.78
Add New Post /wp-admin/post-new.php1,533 ▼123.03 ▼0.23632.09 ▲16.1246.97 ▼8.95
Media Library /wp-admin/upload.php1,388 ▲34.13 ▼0.1194.94 ▼7.8641.51 ▼1.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-breadcrumb/simple-breadcrumb.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
6 plugin tags: plugin, archives, post, pages, breadcrumb...

simple-breadcrumb/simple-breadcrumb.php Passed 13 tests

The main PHP script in "Simple Breadcrumb" version 0.2 is automatically included on every request by WordPress
38 characters long description:
Just another simple breadcrumb plugin.

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
Success! There were no dangerous files found in this plugin98 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1202472
CSS10026

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.47MB with 0.33MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png483.31KB143.24KB▼ 70.36%