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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.04 ▼7.14 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.74 ▼13.56 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.24 ▼2.51 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 99.21 ▼6.56 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.42 ▼1.79 |
Dashboard /wp-admin/admin.php?page=session-mirror | 3.21 | 29.78 |
Settings /wp-admin/admin.php?page=session-mirror-settings | 3.21 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.33 ▼1.19 | 1.89 ▲0.03 | 42.17 ▲2.85 |
Dashboard /wp-admin | 2,243 ▲58 | 4.92 ▲0.01 | 106.35 ▲4.85 | 42.36 ▼0.08 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.06 ▲0.01 | 35.92 ▼5.07 | 32.47 ▼8.26 |
Add New Post /wp-admin/post-new.php | 1,558 ▲39 | 23.17 ▲0.08 | 647.09 ▲27.42 | 62.70 ▲2.90 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.28 ▲0.06 | 99.06 ▼4.32 | 42.02 ▼4.20 |
Dashboard /wp-admin/admin.php?page=session-mirror | 796 | 1.71 | 26.37 | 27.65 |
Settings /wp-admin/admin.php?page=session-mirror-settings | 954 | 1.76 | 23.81 | 29.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 8 | 2 | 1,231 |
SVG | 1 | 0 | 0 | 1,155 |
JavaScript | 1 | 57 | 12 | 684 |
PHP | 4 | 101 | 19 | 564 |
PO File | 1 | 36 | 0 | 78 |
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 code | 0.30 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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