72% siterecording

Code Review | SiteRecording by 500apps - Best Website Recording Plugin To Record User Behaviour

WordPress plugin SiteRecording by 500apps - Best Website Recording Plugin To Record User Behaviour scored72%from 54 tests.

About plugin

  • Plugin page: siterecording
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2023
  • Latest release: Jan 5, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: 500appsmarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.98ms] Passed 4 tests

Server-side resources used by SiteRecording by 500apps - Best Website Recording Plugin To Record User Behaviour
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0523.03 ▼21.80
Dashboard /wp-admin3.34 ▲0.0450.87 ▼3.08
Posts /wp-admin/edit.php3.39 ▲0.0445.19 ▲0.73
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.54 ▼7.76
Media Library /wp-admin/upload.php3.26 ▲0.0436.08 ▲3.24
SiteRecording /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php3.2130.94
Other apps by 500apps /wp-admin/admin.php?page=Othersiterecording3.2330.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by SiteRecording by 500apps - Best Website Recording Plugin To Record User Behaviour
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,539 ▲80414.15 ▼0.23135.61 ▲133.83187.39 ▲142.67
Dashboard /wp-admin2,226 ▲384.88 ▼0.00103.06 ▼11.7372.32 ▲26.97
Posts /wp-admin/edit.php2,128 ▲422.11 ▲0.0939.70 ▲3.7832.99 ▼3.81
Add New Post /wp-admin/post-new.php1,550 ▲1723.26 ▲0.04735.96 ▲50.3358.36 ▲0.47
Media Library /wp-admin/upload.php1,440 ▲524.22 ▲0.02121.04 ▲17.4043.75 ▲0.76
SiteRecording /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php5,54851.79567.4171.90
Other apps by 500apps /wp-admin/admin.php?page=Othersiterecording7912.1224.8725.37

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Notice in wp-content/plugins/siterecording/classes/class.siterecordingplugin_siterecording.php+20
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/siterecording/classes/other_products.php:2
    • > PHP Notice
      Undefined variable: siterecording_url in wp-content/plugins/siterecording/classes/siterecording_content.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/siterecording/classes/other_products.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/siterecording/siterecording.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Console-api (severe) in unknown
    https://infinity.500apps.com/js/chunk-vendors.4204576a.js 67:12050 TypeError: Cannot read properties of undefined (reading 'id')at eval (eval at _callee3$ (https://infinity.500apps.com/js/siterecording.2e6ba1f8.js:20:843039), :1:27)at _callee3$ (https://infinity.500apps.com/js/siterecording.2e6ba1f8.js:20:843039)at u (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:191:44242)at Generator._invoke (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:191:45564)at O.forEach.t. [as next] (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:191:44665)at r (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:297:1202)at c (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:297:1405)
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Console-api (severe) in unknown
    https://infinity.500apps.com/js/chunk-vendors.4204576a.js 67:12050 TypeError: Cannot read properties of undefined (reading 'id')at https://infinity.500apps.com/js/app.b48ae614.js:1:6961893at u (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:191:44242)at Generator._invoke (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:191:45564)at O.forEach.t. [as next] (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:191:44665)at r (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:297:1202)at c (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:297:1405)
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Network (severe)
    https://api.prod.500apps.com/location/public/country?limit=50 - Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Javascript (severe) in unknown
    https://infinity.500apps.com/js/app.b48ae614.js 0:1621703 Uncaught TypeError: Cannot read properties of undefined (reading 'user_id')
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Console-api (severe) in unknown
    https://infinity.500apps.com/js/chunk-vendors.4204576a.js 67:12050 Error: Network Errorat t.exports (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:80:3207)at p.onerror (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:264:2603)
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Network (severe)
    https://api.prod.500apps.com/v2/siterecording/domain/websites?limit=50 - Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Network (severe)
    https://api.500apps.com/auth/v1/organization-free-subscription?limit=50 - Failed to load resource: the server responded with a status of 400 ()
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Console-api (severe) in unknown
    https://infinity.500apps.com/js/chunk-vendors.4204576a.js 67:12050 Error: Request failed with status code 400at t.exports (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:80:3207)at t.exports (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:112:3005)at p.onreadystatechange (https://infinity.500apps.com/js/chunk-vendors.4204576a.js:264:2485)
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Network (severe)
    https://api.500apps.com/auth/v1/users/domain_user_details?limit=50 - Failed to load resource: the server responded with a status of 400 ()
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Network (severe)
    https://api.500apps.com/v2/users/domain/domain_user?limit=950&fields=apps_admin,billing_admin,domain_id,email,id,is_active,name,pic_path,status,super_admin,theme,time_zone,users_admin - Failed to load resource: the server responded with a status of 400 ()
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Javascript (severe) in unknown
    https://infinity.500apps.com/js/chunk-vendors.4204576a.js 79:3206
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Network (severe)
    https://api.500apps.com/v2/users/domain/manage_my_apps?limit=950&&where=name=%27siterecording%27%20and%20is_active=1 - Failed to load resource: the server responded with a status of 400 ()
    • > GET request to /wp-admin/admin.php?page=siterecording/classes/class.siterecordingplugin_siterecording.php
    • > Console-api (warning) in unknown
    https://static.hotjar.com/c/hotjar-3008425.js?sv=7 2:6863 "Hotjar not launching due to suspicious userAgent:" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/117.0.5938.149 Safari/537.36"
    • > GET request to /wp-admin/admin.php?page=Othersiterecording
    • > 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 set properties of undefined (setting 'onclick')" "TypeError: Cannot set properties of undefined (setting 'onclick')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/siterecording/js/siterecording_admin.js?ver=1696611539:49:16)\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/admin.php?page=Othersiterecording
    • > 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 set properties of undefined (setting 'onclick')

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
2 plugin tags: web siterecording, siterecording

siterecording/siterecording.php Passed 13 tests

The primary PHP file in "SiteRecording by 500apps - Best Website Recording Plugin To Record User Behaviour" version 0.1 is used by WordPress to initiate all plugin functionality
56 characters long description:
Record the entire visitor's journey across your website.

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
Success! There were no dangerous files found in this plugin2,141 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG5001,621
PHP51833289
CSS115169
JavaScript11353
INI1208
Markdown1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.84MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
classes/images/banner-772x250.png124.74KB63.36KB▼ 49.21%
assets/screenshot-1.png78.15KB23.48KB▼ 69.96%
assets/screenshot-6.png71.78KB24.16KB▼ 66.35%
assets/icon-256x256.png5.72KB2.65KB▼ 53.61%
assets/banner-772x250.png124.74KB63.36KB▼ 49.21%