83% rdfa-breadcrumb

Code Review | RDFa Breadcrumb

WordPress plugin RDFa Breadcrumb scored83%from 54 tests.

About plugin

  • Plugin page: rdfa-breadcrumb
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Dec 20, 2011
  • Latest release: Jan 12, 2016
  • Number of updates: 31
  • Update frequency: every 47.9 days
  • Top authors: yawalkarm (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /43,769 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by RDFa Breadcrumb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.48 ▲2.63
Dashboard /wp-admin3.32 ▲0.0245.79 ▼3.50
Posts /wp-admin/edit.php3.37 ▲0.0141.69 ▼4.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.19 ▲2.22
Media Library /wp-admin/upload.php3.24 ▲0.0132.87 ▼3.90

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for RDFa Breadcrumb
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8014.47 ▲0.031.77 ▼0.4143.70 ▼8.88
Dashboard /wp-admin2,224 ▲395.79 ▼0.0196.67 ▼12.9967.61 ▲24.16
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0136.75 ▼1.3131.12 ▲0.01
Add New Post /wp-admin/post-new.php1,545 ▲3118.23 ▲0.68687.81 ▲4.9755.02 ▼13.52
Media Library /wp-admin/upload.php1,397 ▲124.14 ▼0.05104.72 ▼3.6144.83 ▼1.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× 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/rdfa-breadcrumb/rdfa-breadcrumbs.php:501

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (The RDFa Breadcrumbs on your website.), #2 (RDFa Breadcrumbs displayed by Google Webmasters rich snippet testing tool.), #3 (Breadcrumbs on google search results.), #4 (New user Interface of a plugin.)
The official readme.txt is a good inspiration

rdfa-breadcrumb/rdfa-breadcrumbs.php 85% from 13 tests

This is the main PHP file of "RDFa Breadcrumb" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 160 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("rdfa-breadcrumb.php" instead of "rdfa-breadcrumbs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,438 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
HTML2869389
CSS233150383
PHP110688323
PO File6102126300
JavaScript309543

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
20 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/rdfa-breadcrumb/images/ui-bg_glass_40_ffc73d_1x400.png0.13KB0.16KB0.00%
css/rdfa-breadcrumb/images/ui-bg_glass_40_0078a3_1x400.png0.13KB0.16KB0.00%
css/rdfa-breadcrumb/images/ui-bg_glass_20_555555_1x400.png0.11KB0.15KB0.00%
screenshot-3.png28.70KB17.37KB▼ 39.47%
screenshot-5.png4.44KB3.39KB▼ 23.66%