Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼1.55ms] Passed 4 tests
An overview of server-side resources used by WP Remote Users Sync
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 42.97 ▲1.36 |
Dashboard /wp-admin | 3.73 ▲0.42 | 47.96 ▼3.51 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 48.86 ▲2.91 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 93.57 ▼6.76 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 37.50 ▲2.72 |
WP Remote Users Sync /wp-admin/options-general.php?page=wprus | 3.73 | 38.73 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 108 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wprus_nonce |
wp_wprus_logs |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Remote Users Sync
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲95 | 14.61 ▼0.03 | 1.85 ▲0.19 | 36.65 ▼12.60 |
Dashboard /wp-admin | 2,219 ▲42 | 5.52 ▼0.02 | 95.65 ▼3.88 | 39.17 ▼2.65 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.11 ▲0.09 | 40.93 ▲3.98 | 36.06 ▲2.85 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 18.23 ▼4.57 | 634.63 ▲16.06 | 54.85 ▼0.72 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.19 ▲0.04 | 99.74 ▲1.89 | 42.48 ▼0.12 |
WP Remote Users Sync /wp-admin/options-general.php?page=wprus | 2,905 | 2.37 | 50.62 | 32.06 |
Uninstaller [IO: ▲0.80MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following itemsThis plugin does not fully uninstall, leaving 2 tables in the database This plugin did not uninstall successfully, leaving 7 options in the database
- The plugin did not uninstall gracefully
- > Error in wp-content/plugins/wp-remote-users-sync/uninstall.php+18
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-remote-users-sync/uninstall.php:18
Stack trace:
#0 wp-admin/includes/plugin.php(1245): include_once()
#1 wp-admin/includes/plugin.php(960): uninstall_plugin() - Incomplete uninstall procedure, leaving 108 files (0.80MB) in the plugin directory
- (new file) inc/api/class-wprus-api-abstract.php
- (new file) functions.php
- (new file) css/admin/main.css
- (new file) inc/api/class-wprus-api-delete.php
- (new file) inc/api/class-wprus-api-create.php
- (new file) css/lib/select2/select2.css
- (new file) css/admin/main.min.css
- (new file) README.md
- (new file) css/lib/select2/select2.scss
- (new file) LICENSE
- ...
- wp_wprus_nonce
- wp_wprus_logs
- recovery_mode_email_last_sent
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wprus
- > Notice in wp-content/plugins/wp-remote-users-sync/inc/class-wprus-logger.php+101
Trying to access array offset on value of type null
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: share login, sync, multiple sites
wp-remote-users-sync/wprus.php 85% from 13 tests
The principal PHP file in "WP Remote Users Sync" v. 2.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-remote-users-sync.php" instead of "wprus.php")
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
Everything looks great! No dangerous files found in this plugin13,665 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,152 | 467 | 5,520 |
JavaScript | 63 | 1,434 | 413 | 5,429 |
PO File | 1 | 296 | 374 | 999 |
Markdown | 1 | 285 | 0 | 944 |
Sass | 1 | 104 | 0 | 538 |
CSS | 3 | 52 | 0 | 235 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 36.44 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 40 | 20.73% |
▷ Public methods | 143 | 74.09% |
▷ Protected methods | 50 | 25.91% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 10 | |
▷ Global constants | 3 | 30.00% |
▷ Class constants | 7 | 70.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected