10% genesis-simple-breadcrumbs

Code Review | Genesis Simple Breadcrumbs

WordPress plugin Genesis Simple Breadcrumbs scored10%from 54 tests.

About plugin

  • Plugin page: genesis-simple-br...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: May 29, 2011
  • Latest release: Jan 23, 2012
  • Number of updates: 7
  • Update frequency: every 40.2 days
  • Top authors: Nick_theGeek (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /13,311 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_theme_data is deprecated since version 3.4.0! Use wp_get_theme() instead.

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

This is a short check of server-side resources used by Genesis Simple Breadcrumbs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.75 ▼10.70
Dashboard /wp-admin3.31 ▲0.0050.28 ▼3.18
Posts /wp-admin/edit.php3.36 ▲0.0048.34 ▼5.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.60 ▼8.11
Media Library /wp-admin/upload.php3.23 ▲0.0037.20 ▲3.32

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Simple Breadcrumbs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.391.94 ▲0.1646.40 ▲4.59
Dashboard /wp-admin2,192 ▲185.55 ▼0.1391.06 ▲0.6838.52 ▼8.64
Posts /wp-admin/edit.php2,100 ▼32.03 ▼0.0137.35 ▼4.1235.12 ▼0.94
Add New Post /wp-admin/post-new.php1,526 ▼1122.97 ▲4.83666.43 ▲46.1354.11 ▼18.68
Media Library /wp-admin/upload.php1,400 ▼04.16 ▲0.04100.99 ▼7.2544.78 ▲0.62

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 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 items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-simple-breadcrumbs/admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-simple-breadcrumbs/output.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/genesis-simple-breadcrumbs/plugin.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === genesis-simple-breadcrumbs === )
Please take inspiration from this readme.txt

genesis-simple-breadcrumbs/plugin.php 92% from 13 tests

The entry point to "Genesis Simple Breadcrumbs" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("genesis-simple-breadcrumbs.php" instead of "plugin.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
Success! There were no dangerous files found in this plugin918 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4134168573
CSS12844295
JavaScript1132350

PHP code Passed 2 tests

An overview of 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.43
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity14.20
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
classes/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
classes/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
classes/images/ico-delete.png0.70KB0.72KB0.00%
classes/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
classes/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%