90% live-blog-wp

Code Review | Live Blog WP - Easy WordPress Live Blogging

WordPress plugin Live Blog WP - Easy WordPress Live Blogging scored90%from 54 tests.

About plugin

  • Plugin page: live-blog-wp
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 17, 2021
  • Latest release: Mar 8, 2021
  • Number of updates: 10
  • Update frequency: every 1.9 days
  • Top authors: liveblogwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /751 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
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.65ms] Passed 4 tests

This is a short check of server-side resources used by Live Blog WP - Easy WordPress Live Blogging
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.13 ▼4.27
Dashboard /wp-admin3.31 ▼0.0443.53 ▼16.53
Posts /wp-admin/edit.php3.36 ▲0.0042.76 ▼9.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.79 ▲0.53
Media Library /wp-admin/upload.php3.23 ▲0.0030.10 ▼4.68

Server storage [IO: ▲0.63MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Live Blog WP - Easy WordPress Live Blogging: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.29 ▲0.031.64 ▼0.1740.00 ▼3.07
Dashboard /wp-admin2,212 ▲455.67 ▲0.0291.71 ▼17.4843.63 ▲0.40
Posts /wp-admin/edit.php2,117 ▲171.99 ▼0.0442.06 ▲7.0037.45 ▲4.90
Add New Post /wp-admin/post-new.php1,549 ▲1418.07 ▼0.05597.36 ▼30.3763.10 ▼0.86
Media Library /wp-admin/upload.php1,414 ▲144.15 ▼0.0197.40 ▼0.9842.07 ▼3.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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 SRP test was a success

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: liveblog, live blog, live blogging

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

The entry point to "Live Blog WP - Easy WordPress Live Blogging" version 1.0.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin10,543 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS102,8648,199
PHP105812212,205
JavaScript51525139

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.70
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods30
▷ Static methods1343.33%
▷ Public methods2996.67%
▷ Protected methods00.00%
▷ Private methods13.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.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
No PNG files were detected