93% arena-liveblog-and-chat-tool

Code Review | Arena.IM - Live Blogging for real-time events

WordPress plugin Arena.IM - Live Blogging for real-time events scored 93% from 54 tests.

About plugin

  • Plugin page: arena-liveblog-an...
  • Plugin version: 0.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-5.5
  • WordPress version: 5.8.1
  • First release: Sep 28, 2017
  • Latest release: Nov 6, 2020
  • Number of updates: 55
  • Update frequency: every 20.6 days
  • Top authors: arenaim (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active / 11,234 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼146.98ms] Passed 4 tests

Analyzing server-side resources used by Arena.IM - Live Blogging for real-time events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.2234.33 ▲12.00
Dashboard /wp-admin3.17 ▲0.1247.19 ▼5.30
Posts /wp-admin/edit.php3.26 ▲0.1543.37 ▲6.61
Add New Post /wp-admin/post-new.php5.07 ▼0.3658.12 ▼586.70
Media Library /wp-admin/upload.php3.11 ▲0.1132.89 ▼2.51
Arena /wp-admin/options-general.php?page=albfre_plugin3.1031.99
Arena Wizard /wp-admin/admin.php?page=albfre_list_events3.0931.68

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 82 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Arena.IM - Live Blogging for real-time events
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲10216.24 ▲0.248.38 ▼0.8549.48 ▲0.65
Dashboard /wp-admin2,980 ▲466.00 ▲0.05140.05 ▼4.13105.09 ▼7.65
Posts /wp-admin/edit.php2,746 ▲72.71 ▼0.0262.64 ▼5.3486.55 ▼8.30
Add New Post /wp-admin/post-new.php1,686 ▲318.82 ▲0.17415.09 ▲27.67104.26 ▲2.03
Media Library /wp-admin/upload.php1,814 ▲75.01 ▼0.01194.39 ▲34.29121.47 ▲9.96
Arena /wp-admin/options-general.php?page=albfre_plugin1,1122.0957.1892.66
Arena Wizard /wp-admin/admin.php?page=albfre_list_events9872.1452.4450.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/arena-liveblog-and-chat-tool/albfre.php:131

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


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

arena-liveblog-and-chat-tool/albfre.php 85% from 13 tests

This is the main PHP file of "Arena.IM - Live Blogging for real-time events" version 0.2.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("arena-liveblog-and-chat-tool.php" instead of "albfre.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin10,249 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PO File132074

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity5.50
▷ Minimum class complexity5.00
▷ Maximum class complexity6.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
48 compressed PNG files occupy 2.30MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/sports/albfre_boxing.png10.04KB9.92KB▼ 1.23%
assets/albfre_logo-bg.png9.53KB4.20KB▼ 55.87%
assets/sports/albfre_rugby.png10.79KB10.44KB▼ 3.28%