Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼2.26ms] Passed 4 tests
Server-side resources used by User Session Synchronizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 44.76 ▲1.06 |
Dashboard /wp-admin | 3.69 ▲0.39 | 54.69 ▼2.27 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 52.76 ▼0.03 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 85.83 ▼7.79 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 41.04 ▲4.35 |
User Session Sync /wp-admin/admin.php?page=user-session-synchronizer | 3.52 | 36.13 |
User Sessions /wp-admin/admin.php?page=session_control | 3.51 | 37.21 |
Email Template /wp-admin/admin.php?page=view_email_setting | 3.59 | 45.79 |
User Verify /wp-admin/admin.php?page=view_email_verification | 3.52 | 37.08 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
user-session-synchronizer_version |
ussync-email-header |
ussync_email_confemail |
theysaidso_admin_options |
ussync_email_conf_title |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Session Synchronizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲214 | 14.07 ▼0.28 | 9.42 ▲7.59 | 43.03 ▼4.89 |
Dashboard /wp-admin | 2,246 ▲67 | 5.18 ▼0.70 | 106.81 ▼12.61 | 37.95 ▼7.59 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.22 ▲0.23 | 39.50 ▲3.89 | 30.31 ▼4.26 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.37 ▲0.42 | 676.61 ▲5.11 | 75.48 ▲22.38 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.40 ▲0.15 | 99.96 ▼3.38 | 38.50 ▼6.86 |
User Session Sync /wp-admin/admin.php?page=user-session-synchronizer | 882 | 1.89 | 31.76 | 25.26 |
User Sessions /wp-admin/admin.php?page=session_control | 1,125 | 1.88 | 25.46 | 27.66 |
Email Template /wp-admin/admin.php?page=view_email_setting | 1,609 | 7.08 | 143.31 | 75.15 |
User Verify /wp-admin/admin.php?page=view_email_verification | 872 | 1.91 | 22.91 | 23.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 10 options in the database
- ussync-email-header
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- ussync_email_conf_title
- ussync_email_confemail
- user-session-synchronizer_version
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=session_control
- > Notice in wp-content/plugins/user-session-synchronizer/includes/class-user-session-synchronizer-session-control.php+250
Undefined index: name
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/user-session-synchronizer/includes/views/email-verification.php:64
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: cookie, synchronizer, session, user
user-session-synchronizer/user-session-synchronizer.php Passed 13 tests
"User Session Synchronizer" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
100 characters long description:
Keep the user logged in from one wordpress to another by synchronizing user data and cookie session.
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 plugin1,696 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 602 | 692 | 1,499 |
Markdown | 1 | 39 | 0 | 82 |
JavaScript | 4 | 16 | 6 | 54 |
CSS | 1 | 3 | 17 | 41 |
HTML | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 33.71 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 4 | 5.19% |
▷ Public methods | 68 | 88.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 11.69% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.52MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/send.png | 3.92KB | 2.86KB | ▼ 27.17% |
includes/images/menu.png | 1.07KB | 0.78KB | ▼ 27.36% |
includes/images/wrong_arrow.png | 3.68KB | 2.57KB | ▼ 30.26% |
screenshot_1.png | 69.21KB | 26.82KB | ▼ 61.25% |
screenshot_2.png | 154.12KB | 25.51KB | ▼ 83.45% |