78% breadcrumb-tmc

Code Review | Breadcrumb TMC

WordPress plugin Breadcrumb TMC scored 78% from 54 tests.

About plugin

  • Plugin page: breadcrumb-tmc
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2020
  • Latest release: Aug 29, 2022
  • Number of updates: 35
  • Update frequency: every 27.5 days
  • Top authors: wptmcdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 4,496 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Breadcrumb TMC
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0249.61 ▲1.04
Dashboard /wp-admin3.31 ▲0.0144.64 ▼3.20
Posts /wp-admin/edit.php3.36 ▲0.0046.61 ▲1.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.02 ▲3.23
Media Library /wp-admin/upload.php3.23 ▲0.0033.14 ▲2.56

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Breadcrumb TMC
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.46 ▼1.102.19 ▲0.4339.65 ▼3.78
Dashboard /wp-admin2,206 ▲184.87 ▼0.03107.22 ▼9.2140.29 ▼4.88
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0242.28 ▲3.7734.19 ▲0.61
Add New Post /wp-admin/post-new.php1,537 ▲423.62 ▲0.53626.02 ▼47.7560.70 ▲8.96
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.0898.94 ▼6.9843.37 ▼2.30

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/breadcrumb-tmc/breadcrumb-tmc.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function breadcrumb_tmc\\v1_4_0\\plugin_dir_path() in wp-content/plugins/breadcrumb-tmc/src/Breadcrumb.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function breadcrumb_tmc\\v1_4_0\\plugin_dir_path() in wp-content/plugins/breadcrumb-tmc/src/Breadcrumb.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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: structured data markup, breadcrumb navigation, breadcrumb, breadcrumb shortcode, breadcrumb trail...

breadcrumb-tmc/breadcrumb-tmc.php 92% from 13 tests

The main PHP file in "Breadcrumb TMC" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected623 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7529280613
CSS10310

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.00
▷ Minimum class complexity4.00
▷ Maximum class complexity38.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods42
▷ Static methods2457.14%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin