10% broadcast-companion-youtube

Code Review | Broadcast Companion (YouTube)

WordPress plugin Broadcast Companion (YouTube) scored10%from 54 tests.

About plugin

  • Plugin page: broadcast-compani...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 20, 2022
  • Latest release: Jun 22, 2022
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: j.burleigh1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /331 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/broadcast-companion-youtube/bc-companion-notice.php+4
    Undefined index: bcyt_channel_id

Server metrics [RAM: ▼1.91MB] [CPU: ▼49.76ms] Passed 4 tests

A check of server-side resources used by Broadcast Companion (YouTube)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.395.32 ▼36.79
Dashboard /wp-admin2.10 ▼1.217.04 ▼42.20
Posts /wp-admin/edit.php2.10 ▼1.267.61 ▼41.69
Add New Post /wp-admin/post-new.php2.10 ▼3.797.97 ▼78.37
Media Library /wp-admin/upload.php2.10 ▼1.147.22 ▼25.53

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Broadcast Companion (YouTube)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21114.20 ▼0.178.89 ▲6.8341.00 ▼3.17
Dashboard /wp-admin2,256 ▲684.86 ▼0.97109.93 ▼8.5440.58 ▼2.89
Posts /wp-admin/edit.php2,138 ▲522.06 ▲0.0739.86 ▲1.8336.92 ▲4.19
Add New Post /wp-admin/post-new.php1,533 ▼117.49 ▼5.35657.23 ▲23.3367.55 ▲18.25
Media Library /wp-admin/upload.php1,438 ▲534.24 ▲0.0699.64 ▲2.9943.12 ▲0.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/broadcast-companion-youtube/bc-companion-notice.php+4
    Undefined index: bcyt_channel_id
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 | 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/broadcast-companion-youtube/bc-companion.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/broadcast-companion-youtube/bc-companion-notice.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were no plugin tags found

broadcast-companion-youtube/bc-companion.php 92% from 13 tests

"Broadcast Companion (YouTube)" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("broadcast-companion-youtube.php" instead of "bc-companion.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
There were no executable files found in this plugin204 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript191108
PHP2341196

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin