68% team-broadcast-status-list

Code Review | Team Broadcast Status List

WordPress plugin Team Broadcast Status List scored68%from 54 tests.

About plugin

  • Plugin page: team-broadcast-st...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2015
  • Latest release: Jan 28, 2016
  • Number of updates: 48
  • Update frequency: every 2.7 days
  • Top authors: athalahta (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /4,693 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.68ms] Passed 4 tests

Server-side resources used by Team Broadcast Status List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.91 ▼5.30
Dashboard /wp-admin3.40 ▲0.1053.26 ▲4.11
Posts /wp-admin/edit.php3.51 ▲0.1650.51 ▼0.96
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.34 ▼9.88
Media Library /wp-admin/upload.php3.32 ▲0.0936.13 ▲1.43
TBSL Settings /wp-admin/options-general.php?page=tbsl-setting-admin3.3136.78

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: 1 new table, 8 new options
New tables
wp_tbsl_channels
New WordPress options
widget_team_broadcast_status_list
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
jal_db_version
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Team Broadcast Status List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.74 ▼0.631.66 ▼0.1542.21 ▼6.57
Dashboard /wp-admin2,226 ▲445.03 ▼0.8497.46 ▼8.8239.13 ▼0.69
Posts /wp-admin/edit.php2,114 ▲282.30 ▲0.2735.96 ▼1.8431.30 ▼3.87
Add New Post /wp-admin/post-new.php1,540 ▲719.36 ▼3.66639.70 ▼56.6837.14 ▼14.89
Media Library /wp-admin/upload.php1,414 ▲324.54 ▲0.2796.60 ▼8.4944.95 ▲0.02
TBSL Settings /wp-admin/options-general.php?page=tbsl-setting-admin1,7694.3683.7527.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_tbsl_channels
  • This plugin does not fully uninstall, leaving 8 options in the database
    • jal_db_version
    • widget_recent-comments
    • widget_team_broadcast_status_list
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/team-broadcast-status-list/assets/includes/delete.php
    • > /wp-content/plugins/team-broadcast-status-list/widget.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=tbsl-setting-admin
    • > Network (severe)
    wp-content/plugins/team-broadcast-status-list/my-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: offline, online, stream, twitch, list...

team-broadcast-status-list/widget.php 85% from 13 tests

The entry point to "Team Broadcast Status List" version 1.2.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("team-broadcast-status-list.php" instead of "widget.php")
  • Description: The description should be shorter than 140 characters (currently 570 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected776 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4174114562
CSS150214

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity20.50
▷ Minimum class complexity15.00
▷ Maximum class complexity26.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.83MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png61.03KB24.60KB▼ 59.69%
assets/images/twitch_on.png17.81KB0.50KB▼ 97.20%
assets/screenshot-2.png31.73KB13.94KB▼ 56.06%
assets/screenshot-1.png72.75KB34.00KB▼ 53.27%
assets/icon-256x256.png28.18KB5.50KB▼ 80.49%