84% easy-liveblogs

Code Review | Easy Liveblogs

WordPress plugin Easy Liveblogs scored84%from 54 tests.

About plugin

  • Plugin page: easy-liveblogs
  • Plugin version: 2.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: May 17, 2019
  • Latest release: Aug 22, 2023
  • Number of updates: 40
  • Update frequency: every 38.9 days
  • Top authors: jeffreyvr (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /5,236 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.24ms] Passed 4 tests

This is a short check of server-side resources used by Easy Liveblogs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.04 ▼4.40
Dashboard /wp-admin3.37 ▲0.0751.26 ▲2.00
Posts /wp-admin/edit.php3.43 ▲0.0748.46 ▲0.51
Add New Post /wp-admin/post-new.php5.98 ▲0.0980.24 ▼13.27
Media Library /wp-admin/upload.php3.29 ▲0.0631.86 ▲0.22
Settings /wp-admin/edit.php?post_type=elb_entry&page=elb-settings3.2630.87
Add New /wp-admin/post-new.php?post_type=elb_entry3.4350.05
All Liveblog Entries /wp-admin/edit.php?post_type=elb_entry3.3335.41

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Liveblogs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲17614.03 ▼0.7123.48 ▲21.4638.81 ▼6.69
Dashboard /wp-admin2,239 ▲504.88 ▼1.00110.30 ▲6.8242.86 ▲6.22
Posts /wp-admin/edit.php2,122 ▲332.05 ▼0.0939.55 ▲3.0838.19 ▲3.87
Add New Post /wp-admin/post-new.php6,253 ▲4,72026.24 ▲2.92824.03 ▲191.7549.31 ▼7.98
Media Library /wp-admin/upload.php1,424 ▲364.29 ▲0.0796.38 ▼9.0941.00 ▼4.08
Settings /wp-admin/edit.php?post_type=elb_entry&page=elb-settings1,0302.0321.4128.35
Add New /wp-admin/post-new.php?post_type=elb_entry2,2487.64174.9661.65
All Liveblog Entries /wp-admin/edit.php?post_type=elb_entry1,0991.9530.5832.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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 no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function elb_display_social_sharing() in wp-content/plugins/easy-liveblogs/templates/sharing.php:1
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/easy-liveblogs/assets/js/index.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-liveblogs/templates/post.php:6

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 Passed 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
1 plugin tags: liveblog

easy-liveblogs/easy-liveblogs.php Passed 13 tests

"Easy Liveblogs" version 2.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
Live blogging made easy with the Easy Liveblogs plugin from vanrossum.dev.

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 detected2,423 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP273935411,362
CSS66016651
PO File2165182392
Markdown18010
JavaScript3028

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.51
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods42
▷ Static methods819.05%
▷ Public methods3992.86%
▷ Protected methods00.00%
▷ Private methods37.14%
Functions71
▷ Named functions7098.59%
▷ Anonymous functions11.41%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin