67% live-blogging-plus

Code Review | Live Blogging Plus

WordPress plugin Live Blogging Plus scored67%from 54 tests.

About plugin

  • Plugin page: live-blogging-plus
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.5
  • WordPress version: 6.3.1
  • First release: Dec 30, 2013
  • Latest release: Apr 11, 2018
  • Number of updates: 5
  • Update frequency: every 312.6 days
  • Top authors: Vidyut (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /7,997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.03ms] Passed 4 tests

This is a short check of server-side resources used by Live Blogging Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.10 ▼5.51
Dashboard /wp-admin3.39 ▲0.0855.89 ▲1.02
Posts /wp-admin/edit.php3.44 ▲0.0851.78 ▲2.73
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.64 ▼14.64
Media Library /wp-admin/upload.php3.31 ▲0.0838.58 ▼0.98
Live Blogging /wp-admin/options-general.php?page=live-blogging-options3.2537.81
Add New /wp-admin/post-new.php?post_type=liveblog_entry3.3646.03
Live Blog Entries /wp-admin/edit.php?post_type=liveblog_entry3.3539.97

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 14 new options
New WordPress options
widget_recent-comments
liveblogging_update_effect
db_upgraded
liveblogging_twitter_request_secret
liveblogging_date_style
liveblogging_method
widget_recent-posts
liveblogging_style
liveblogging_id
liveblogging_twitter_request_token
...

Browser metrics Passed 4 tests

Live Blogging Plus: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲16513.96 ▼0.809.19 ▲7.2446.25 ▲4.44
Dashboard /wp-admin2,249 ▲555.88 ▲0.05102.89 ▼4.6771.60 ▲24.37
Posts /wp-admin/edit.php2,140 ▲402.03 ▲0.0135.03 ▼0.2734.76 ▼4.06
Add New Post /wp-admin/post-new.php6,264 ▲4,73319.04 ▼4.251,049.61 ▲427.1861.39 ▲11.79
Media Library /wp-admin/upload.php1,432 ▲354.27 ▲0.12107.92 ▲2.0273.10 ▲27.72
Live Blogging /wp-admin/options-general.php?page=live-blogging-options1,0832.0525.7032.65
Add New /wp-admin/post-new.php?post_type=liveblog_entry2,3217.71170.32136.78
Live Blog Entries /wp-admin/edit.php?post_type=liveblog_entry1,1201.9734.0133.07

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
  • Zombie WordPress options were found after uninstall: 17 options
    • liveblogging_style
    • theysaidso_admin_options
    • liveblogging_twitter_request_secret
    • widget_recent-posts
    • widget_recent-comments
    • liveblogging_twitter_token
    • liveblogging_id
    • widget_theysaidso_widget
    • liveblogging_enable_twitter
    • liveblogging_method
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=live-blogging-options
    • > Notice in wp-content/plugins/live-blogging-plus/twitteroauth/OAuth.php+385
    Undefined index: port
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=live-blogging-options
    • > Notice in wp-content/plugins/live-blogging-plus/live-blogging-plus.php+348
    Undefined index: oauth_token
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=live-blogging-options
    • > Notice in wp-content/plugins/live-blogging-plus/live-blogging-plus.php+352
    Undefined index: oauth_token_secret
    • > GET request to /wp-admin/post-new.php?post_type=liveblog_entry
    • > User deprecated in wp-includes/functions.php+5828
    Hook media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead.

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/live-blogging-plus/twittercallback.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-blogging-plus/live-blogging-plus.php:41

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=liveblog_entry
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'options')" "TypeError: Cannot read properties of null (reading 'options')\n at get_selected_liveblog_post_id (/wp-admin/post-new.php?post_type=liveblog_entry:80:61)\n at live_blogging_update_chatbox (/wp-admin/post-new.php?post_type=liveblog_entry:89:50)\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=liveblog_entry:75:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=liveblog_entry
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'options')

Optimizations

Plugin configuration Passed 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
7 plugin tags: blogging, event, javascript, live, micro...

live-blogging-plus/live-blogging-plus.php Passed 13 tests

"Live Blogging Plus" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
Plugin to support automatic live blogging and Twitter updates with link to liveblog.

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 plugin2,401 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP43034452,122
PO File2124143278
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.92
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes216.67%
▷ Concrete classes1083.33%
▷ Final classes00.00%
Methods76
▷ Static methods1013.16%
▷ Public methods6585.53%
▷ Protected methods22.63%
▷ Private methods911.84%
Functions46
▷ Named functions46100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/delete.png0.70KB0.72KB0.00%
img/icon.png0.75KB0.75KB0.13%
img/add.png0.72KB0.75KB0.00%
twitteroauth/signin.png2.31KB1.70KB▼ 26.41%