83% seo-breadcrumb

Code Review | SEO BreadCrumb

WordPress plugin SEO BreadCrumb scored83%from 54 tests.

About plugin

  • Plugin page: seo-breadcrumb
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.7
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Oct 28, 2013
  • Number of updates: 9
  • Update frequency: every 0.5 days
  • Top authors: redsnow_ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,793 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by SEO BreadCrumb
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.36 ▼2.28
Dashboard /wp-admin3.31 ▼0.0446.08 ▼14.73
Posts /wp-admin/edit.php3.36 ▲0.0043.99 ▼5.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.37 ▼18.35
Media Library /wp-admin/upload.php3.23 ▲0.0032.28 ▼4.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEO BreadCrumb
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.61 ▼0.761.78 ▼0.1039.26 ▼1.33
Dashboard /wp-admin2,200 ▲155.84 ▼0.02101.61 ▲2.7441.16 ▼4.24
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0336.21 ▼4.3931.16 ▼5.40
Add New Post /wp-admin/post-new.php1,533 ▲1923.13 ▲5.64584.66 ▼102.4163.67 ▲0.43
Media Library /wp-admin/upload.php1,382 ▼94.26 ▲0.0694.16 ▼11.6343.77 ▼5.55

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-breadcrumb/prime-strategy-bread-crumb.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Output Sample of a breadcrumbs navigation) image missing
The official readme.txt might help

seo-breadcrumb/prime-strategy-bread-crumb.php 85% from 13 tests

The principal PHP file in "SEO BreadCrumb" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("seo-breadcrumb.php" instead of "prime-strategy-bread-crumb.php")
  • Description: The description should be shorter than 140 characters (currently 262 characters long)

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 detected433 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14325387
PO File1141446

PHP code Passed 2 tests

This is a very shot review 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.52
Average class complexity90.00
▷ Minimum class complexity90.00
▷ Maximum class complexity90.00
Average method complexity10.89
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods333.33%
▷ Protected methods00.00%
▷ Private methods666.67%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png1.95KB1.11KB▼ 42.75%