10% live-stream-church

Code Review | Live Stream Church

WordPress plugin Live Stream Church scored10%from 54 tests.

About plugin

  • Plugin page: live-stream-church
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Jun 6, 2020
  • Latest release: Jul 2, 2020
  • Number of updates: 22
  • Update frequency: every 1.4 days
  • Top authors: delreyagency (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,178 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

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

An overview of server-side resources used by Live Stream Church
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.84 ▼11.74
Dashboard /wp-admin3.32 ▲0.0252.58 ▼1.27
Posts /wp-admin/edit.php3.37 ▲0.0251.24 ▲3.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.46 ▼0.92
Media Library /wp-admin/upload.php3.24 ▲0.0242.35 ▲6.50

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
livestreamchurch_page_live_id

Browser metrics Passed 4 tests

This is an overview of browser requirements for Live Stream Church
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.69 ▲0.331.51 ▼0.5341.96 ▼5.56
Dashboard /wp-admin2,211 ▲345.57 ▲0.0491.68 ▼7.1441.20 ▼3.78
Posts /wp-admin/edit.php2,116 ▲162.03 ▼0.0039.58 ▲1.0337.10 ▼1.39
Add New Post /wp-admin/post-new.php1,539 ▲1323.18 ▼0.39666.23 ▼61.0365.44 ▲11.05
Media Library /wp-admin/upload.php1,419 ▲194.14 ▼0.04100.20 ▲2.7343.71 ▼1.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • livestreamchurch_page_live_id
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/live-stream-church/livestreamchurch.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/live-stream-church/template-livestreamchurch.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt might help

live-stream-church/livestreamchurch.php 92% from 13 tests

The primary PHP file in "Live Stream Church" version 0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("live-stream-church.php" instead of "livestreamchurch.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin562 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26721281
CSS1549250
PO File18831

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.28MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/upgrade.png50.87KB20.79KB▼ 59.13%
img/ico-heart.png0.33KB0.38KB0.00%
img/ico-menu.png0.17KB0.11KB▼ 36.09%
img/ico-bible.png0.63KB0.51KB▼ 18.58%
img/ico-menu2.png0.21KB0.13KB▼ 39.81%