84% bloglive-online-live-blogging

Code Review | BlogLive.Online live blogging

WordPress plugin BlogLive.Online live blogging scored84%from 54 tests.

About plugin

  • Plugin page: bloglive-online-l...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2022
  • Latest release: Nov 18, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: robintas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼2.98MB] [CPU: ▼587,356.44ms] Passed 4 tests

Server-side resources used by BlogLive.Online live blogging
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▼12.0240.32 ▼2,349,377.71
Dashboard /wp-admin3.37 ▲0.0349.76 ▼7.35
Posts /wp-admin/edit.php3.49 ▲0.0949.35 ▼4.55
Add New Post /wp-admin/post-new.php5.96 ▲0.0385.44 ▼36.13
Media Library /wp-admin/upload.php3.30 ▲0.0338.76 ▲3.08

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

BlogLive.Online live blogging: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.26 ▼0.091.72 ▼0.1436.18 ▼10.68
Dashboard /wp-admin2,211 ▲315.65 ▼0.1187.01 ▼0.6740.39 ▲0.41
Posts /wp-admin/edit.php2,113 ▲162.02 ▲0.0234.33 ▼5.3137.88 ▲2.70
Add New Post /wp-admin/post-new.php1,552 ▲2418.32 ▼4.47612.00 ▼64.5169.93 ▲9.48
Media Library /wp-admin/upload.php1,419 ▲224.19 ▼0.02103.68 ▼0.2743.71 ▼1.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bloglive-online-live-blogging/bloglive.php:113

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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: media, blogging, liveblog, live, social...

bloglive-online-live-blogging/bloglive.php 85% from 13 tests

The main file in "BlogLive.Online live blogging" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bloglive-online-live-blogging.php" instead of "bloglive.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 345 characters long)

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
Good job! No executable or dangerous file extensions detected108 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1209108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin