78% session-mirror

Code Review | Session Mirror

WordPress plugin Session Mirror scored78%from 54 tests.

About plugin

  • Plugin page: session-mirror
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6.0
  • WordPress version: 6.3.1
  • First release: Jan 5, 2021
  • Latest release: Jan 5, 2021
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: oguzcabuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /332 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.44ms] Passed 4 tests

This is a short check of server-side resources used by Session Mirror
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.04 ▼7.14
Dashboard /wp-admin3.32 ▼0.0248.74 ▼13.56
Posts /wp-admin/edit.php3.37 ▲0.0249.24 ▼2.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0499.21 ▼6.56
Media Library /wp-admin/upload.php3.24 ▲0.0236.42 ▼1.79
Dashboard /wp-admin/admin.php?page=session-mirror3.2129.78
Settings /wp-admin/admin.php?page=session-mirror-settings3.2140.39

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Session Mirror
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.33 ▼1.191.89 ▲0.0342.17 ▲2.85
Dashboard /wp-admin2,243 ▲584.92 ▲0.01106.35 ▲4.8542.36 ▼0.08
Posts /wp-admin/edit.php2,126 ▲372.06 ▲0.0135.92 ▼5.0732.47 ▼8.26
Add New Post /wp-admin/post-new.php1,558 ▲3923.17 ▲0.08647.09 ▲27.4262.70 ▲2.90
Media Library /wp-admin/upload.php1,428 ▲434.28 ▲0.0699.06 ▼4.3242.02 ▼4.20
Dashboard /wp-admin/admin.php?page=session-mirror7961.7126.3727.65
Settings /wp-admin/admin.php?page=session-mirror-settings9541.7623.8129.22

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/session-mirror/index.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=session-mirror-settings
    • > Network (severe)
    wp-content/plugins/session-mirror-wordpress-plugin/assets/icomoon/styles.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=session-mirror-settings
    • > Network (severe)
    wp-content/plugins/session-mirror-wordpress-plugin/assets/session-mirror.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: recordings, session mirror, heatmaps, funnels, insights...

session-mirror/index.php 92% from 13 tests

Analyzing the main PHP file in "Session Mirror" version 1.0.0
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("session-mirror.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin3,712 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS2821,231
SVG1001,155
JavaScript15712684
PHP410119564
PO File136078

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity18.00
▷ Minimum class complexity8.00
▷ Maximum class complexity34.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin