83% reactflow-session-replay-heatmap

Code Review | Reactflow Visitor Recording and Heatmaps

WordPress plugin Reactflow Visitor Recording and Heatmaps scored83%from 54 tests.

About plugin

  • Plugin page: reactflow-session...
  • Plugin version: 1.0.10
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1.1
  • WordPress version: 6.3.1
  • First release: May 20, 2019
  • Latest release: Dec 18, 2022
  • Number of updates: 25
  • Update frequency: every 52.6 days
  • Top authors: reactflow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /4,590 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.55ms] Passed 4 tests

An overview of server-side resources used by Reactflow Visitor Recording and Heatmaps
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0937.23 ▼11.12
Dashboard /wp-admin3.40 ▲0.1048.51 ▼3.15
Posts /wp-admin/edit.php3.45 ▲0.1056.51 ▲9.63
Add New Post /wp-admin/post-new.php5.98 ▲0.1097.93 ▼1.91
Media Library /wp-admin/upload.php3.32 ▲0.1040.05 ▲1.97
Reactflow /wp-admin/options-general.php?page=reactflow-session-replay-heatmap/reactflow.php3.2945.36

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Reactflow Visitor Recording and Heatmaps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.35 ▼0.011.64 ▼0.2840.95 ▼4.64
Dashboard /wp-admin2,205 ▲255.64 ▼0.0495.00 ▲2.0242.15 ▼8.46
Posts /wp-admin/edit.php2,117 ▲141.99 ▲0.0439.21 ▼7.1538.02 ▼3.60
Add New Post /wp-admin/post-new.php1,541 ▲1323.79 ▲0.69660.03 ▼29.7258.35 ▼6.95
Media Library /wp-admin/upload.php1,419 ▲224.20 ▼0.01108.97 ▲4.4050.95 ▲3.29
Reactflow /wp-admin/options-general.php?page=reactflow-session-replay-heatmap/reactflow.php1,3074.67117.1058.52

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

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

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 everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reactflow-session-replay-heatmap/reactflow.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 38 tag instead of maximum 10
You can take inspiration from this readme.txt

reactflow-session-replay-heatmap/reactflow.php 85% from 13 tests

Analyzing the main PHP file in "Reactflow Visitor Recording and Heatmaps" version 1.0.10
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 204 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("reactflow-session-replay-heatmap.php" instead of "reactflow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected538 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141913538

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
favicon.png18.45KB8.15KB▼ 55.80%
logo.png31.18KB15.82KB▼ 49.25%
reactflow.png176.21KB49.17KB▼ 72.09%