90% livesession

Code Review | LiveSession - Visitor Recording for WordPress

WordPress plugin LiveSession - Visitor Recording for WordPress scored90%from 54 tests.

About plugin

  • Plugin page: livesession
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2020
  • Latest release: Jul 19, 2021
  • Number of updates: 13
  • Update frequency: every 21.8 days
  • Top authors: kdrazkiewicz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,867 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.03MB] [CPU: ▼5.06ms] Passed 4 tests

Server-side resources used by LiveSession - Visitor Recording for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.88 ▼4.06
Dashboard /wp-admin3.34 ▲0.0350.41 ▼3.05
Posts /wp-admin/edit.php3.45 ▲0.0950.74 ▼0.53
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.06 ▼12.58
Media Library /wp-admin/upload.php3.26 ▲0.0339.89 ▲0.37
LiveSession /wp-admin/options-general.php?page=livesession_settings3.2432.96

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
livesession_version
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by LiveSession - Visitor Recording for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.72 ▲0.371.67 ▼0.4642.18 ▼3.08
Dashboard /wp-admin2,201 ▲275.59 ▲0.0388.31 ▼0.2938.69 ▼10.36
Posts /wp-admin/edit.php2,103 ▲32.16 ▲0.1436.82 ▼2.0539.47 ▲1.22
Add New Post /wp-admin/post-new.php1,531 ▲323.05 ▼0.03747.98 ▲98.7868.11 ▲17.69
Media Library /wp-admin/upload.php1,406 ▲64.18 ▼0.0397.87 ▼10.5246.05 ▼0.58
LiveSession /wp-admin/options-general.php?page=livesession_settings8832.1422.5439.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • livesession_version
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in livesession/assets to your readme.txt
You can look at the official readme.txt

livesession/livesession.php Passed 13 tests

"LiveSession - Visitor Recording for WordPress" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
59 characters long description:
The fastest way to understand customer's digital experience

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin274 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35843251
CSS15023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods423.53%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/static/livesession-logo.png9.93KB6.75KB▼ 31.98%