10% user-recording

Code Review | User Recording For WordPress

WordPress plugin User Recording For WordPress scored10%from 54 tests.

About plugin

  • Plugin page: user-recording
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2017
  • Latest release: Aug 7, 2017
  • Number of updates: 22
  • Update frequency: every 0.8 days
  • Top authors: EDGARROJAS (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /810 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/user-recording/smart-session-recording-config.php+7
    Undefined variable: wpdb

Server metrics [RAM: ▼0.84MB] [CPU: ▼33.50ms] Passed 4 tests

A check of server-side resources used by User Recording For WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.60 ▲1.81
Dashboard /wp-admin3.11 ▼0.2030.15 ▼21.99
Posts /wp-admin/edit.php3.11 ▼0.2531.08 ▼26.02
Add New Post /wp-admin/post-new.php3.11 ▼2.7830.00 ▼84.55
Media Library /wp-admin/upload.php3.11 ▼0.1234.68 ▼1.44
Support /wp-admin/admin.php?page=user-recording/user-recording.phpsupport3.1129.80
User Recording For WordPress /wp-admin/admin.php?page=wp_session_recording_menu3.1131.19
Settings /wp-admin/admin.php?page=user-recording/user-recording.phpsettings3.1129.09

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 168 new files
Database: 4 new tables, 7 new options
New tables
smart_session_recording_detail
wp_smart_session_recording_detail
smart_session_recording_header
wp_smart_session_recording_header
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
SMART_FORMS_LATEST_DB_VERSION
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for User Recording For WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19215.13 ▲0.9625.24 ▲23.4739.35 ▼1.75
Dashboard /wp-admin2,253 ▲765.66 ▼0.0192.84 ▲0.8642.88 ▼5.33
Posts /wp-admin/edit.php2,156 ▲531.96 ▼0.0141.22 ▼0.1043.86 ▲7.53
Add New Post /wp-admin/post-new.php1,425 ▼10420.11 ▼2.78524.78 ▼68.50137.72 ▲90.00
Media Library /wp-admin/upload.php1,458 ▲584.20 ▼0.02107.42 ▼1.4751.09 ▲8.54
Support /wp-admin/admin.php?page=user-recording/user-recording.phpsupport8952.0226.6578.16
User Recording For WordPress /wp-admin/admin.php?page=wp_session_recording_menu9813.8774.9249.96
Settings /wp-admin/admin.php?page=user-recording/user-recording.phpsettings9063.1454.6037.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-admin/includes/upgrade.php+2917
    Undefined index: index_type
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_smart_session_recording_header
    • smart_session_recording_detail
    • wp_smart_session_recording_detail
    • smart_session_recording_header
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • SMART_FORMS_LATEST_DB_VERSION
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=user-recording/user-recording.phpsettings
    • > Notice in wp-admin/includes/upgrade.php+2917
    Undefined index: index_type
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=user-recording/user-recording.phpsettings
    • > Notice in wp-admin/includes/upgrade.php+2923
    Undefined index: index_name
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=user-recording/user-recording.phpsettings
    • > Notice in wp-admin/includes/upgrade.php+2926
    Undefined index: index_columns
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=user-recording/user-recording.phpsettings
    • > Notice in wp-admin/includes/upgrade.php+2957
    Undefined index: column_name
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=user-recording/user-recording.phpsettings
    • > Warning in wp-content/plugins/user-recording/user-recording.php+184
    Use of undefined constant SMART_FORMS_LATEST_DB_VERSION - assumed 'SMART_FORMS_LATEST_DB_VERSION' (this will throw an Error in a future version of PHP)

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
The following issues need your attention
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/user-recording/smart-session-recording-ajax.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/user-recording/screens/player.php:9
    • > PHP Notice
      Undefined index: duration in wp-content/plugins/user-recording/smart-session-recording-ajax.php on line 54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/user-recording/smart-session-recording-config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/user-recording/screens/child_player.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/user-recording/smart-session-recording-config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/user-recording/screens/settings.php:2
    • > PHP Notice
      Undefined index: uniqid in wp-content/plugins/user-recording/smart-session-recording-ajax.php on line 53
    • > PHP Warning
      Use of undefined constant SMART_SESSION_RECORDING_URL - assumed 'SMART_SESSION_RECORDING_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/user-recording/screens/player.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/user-recording/screens/support.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: capture, session recording, user recording, recording

user-recording/user-recording.php 85% from 13 tests

The main PHP file in "User Recording For WordPress" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected46,216 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript486,20114,98630,798
CSS518247,356
TypeScript368551,2573,644
SVG3003,247
PHP15188219912
JSX211243
JSON10016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods36
▷ Static methods2672.22%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
Functions28
▷ Named functions1864.29%
▷ Anonymous functions1035.71%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo.png17.99KB6.95KB▼ 61.38%
img/mouse.png3.01KB0.27KB▼ 91.16%
img/icon.png3.39KB0.83KB▼ 75.63%