94% live-broadcast

Code Review | Live Broadcast

WordPress plugin Live Broadcast scored 94% from 54 tests.

About plugin

  • Plugin page: live-broadcast
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 5.8.1
  • First release: Jul 24, 2013
  • Latest release: Sep 4, 2014
  • Number of updates: 14
  • Update frequency: every 29.1 days
  • Top authors: valeriosza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 4,836 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼144.20ms] Passed 4 tests

Analyzing server-side resources used by Live Broadcast
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1435.91 ▲10.75
Dashboard /wp-admin3.09 ▲0.0349.85 ▼6.03
Posts /wp-admin/edit.php3.14 ▲0.0250.04 ▼10.56
Add New Post /wp-admin/post-new.php5.44 ▲0.0199.14 ▼563.98
Media Library /wp-admin/upload.php3.03 ▲0.0338.65 ▲3.76
All Posts Live /wp-admin/edit.php?post_type=live_broadcast3.0738.98
New Post Live /wp-admin/post-new.php?post_type=live_broadcast3.0952.40

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Live Broadcast
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲10515.98 ▲0.628.87 ▼2.1949.25 ▼2.71
Dashboard /wp-admin3,005 ▲715.90 ▼0.10171.13 ▼23.17120.94 ▼8.13
Posts /wp-admin/edit.php2,774 ▲352.73 ▲0.0378.93 ▲3.9095.94 ▲2.64
Add New Post /wp-admin/post-new.php1,706 ▲12518.68 ▲0.56454.57 ▲14.20116.48 ▼3.52
Media Library /wp-admin/upload.php1,842 ▲355.03 ▲0.00173.71 ▲9.86130.30 ▲6.52
All Posts Live /wp-admin/edit.php?post_type=live_broadcast1,4412.6475.8274.57
New Post Live /wp-admin/post-new.php?post_type=live_broadcast2,1994.59154.5392.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 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 load_plugin_textdomain() in wp-content/plugins/live-broadcast/live-broadcast.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

live-broadcast/live-broadcast.php 92% from 13 tests

Analyzing the main PHP file in "Live Broadcast" version 0.1.3
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin130 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP181166
PO File2122464

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.36
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin