84% jm-live-blog

Code Review | JM Live Blog

WordPress plugin JM Live Blog scored84%from 54 tests.

About plugin

  • Plugin page: jm-live-blog
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 21, 2016
  • Latest release: Jan 30, 2023
  • Number of updates: 35
  • Update frequency: every 68.1 days
  • Top authors: ArenaPigskin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /4,482 total downloads

Benchmarks

Plugin footprint 83% 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.21MB] [CPU: ▼4.71ms] Passed 4 tests

A check of server-side resources used by JM Live Blog
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2240.35 ▲1.41
Dashboard /wp-admin3.52 ▲0.1748.41 ▼7.86
Posts /wp-admin/edit.php3.63 ▲0.2745.61 ▲1.83
Add New Post /wp-admin/post-new.php6.12 ▲0.2382.38 ▼14.23
Media Library /wp-admin/upload.php3.44 ▲0.2136.11 ▲2.73

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_jm_live_blog_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for JM Live Blog
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲12813.50 ▼0.858.83 ▲7.2240.84 ▲2.90
Dashboard /wp-admin2,195 ▲155.60 ▼0.0796.76 ▲8.8543.97 ▲1.81
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0733.93 ▼2.2834.28 ▼0.16
Add New Post /wp-admin/post-new.php6,665 ▲5,13927.70 ▲3.90889.04 ▲216.8860.44 ▲8.86
Media Library /wp-admin/upload.php1,403 ▲94.17 ▼0.0195.10 ▼5.2340.95 ▼4.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_jm_live_blog_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/jm-live-blog/blocks/build/live-blog-block/template.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jm-live-blog/public/partials/jm-live-blog-widget.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: blog, live blog, live updates, ajax

jm-live-blog/jm-live-blog.php 92% from 13 tests

The main PHP script in "JM Live Blog" version 2.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 252 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
There were no executable files found in this plugin2,413 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP14193595823
JavaScript112228815
PO File6126150411
CSS9254132
Sass100105
Markdown322079
JSON10048

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods46
▷ Static methods24.35%
▷ Public methods3882.61%
▷ Protected methods00.00%
▷ Private methods817.39%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.28MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/jm-live-blog-logo.png128.72KB75.12KB▼ 41.64%
images/jm-live-blog-logo.png160.85KB75.12KB▼ 53.30%