Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.19ms] Passed 4 tests
This is a short check of server-side resources used by WP User Sentry
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.07 ▼3.12 |
Dashboard /wp-admin | 3.38 ▲0.07 | 45.53 ▼2.82 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.72 ▼2.53 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 97.02 ▼4.28 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.91 ▲2.61 |
WP User Sentry /wp-admin/options-general.php?page=wp-user-sentry-settings | 3.27 | 31.44 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
wp_user_sentry_settings |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP User Sentry
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.74 ▲0.07 | 1.74 ▼0.09 | 37.43 ▼4.57 |
Dashboard /wp-admin | 2,207 ▲15 | 5.83 ▲0.84 | 100.02 ▼6.24 | 41.30 ▼2.71 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 39.54 ▲0.78 | 34.95 ▲1.86 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.14 ▲4.36 | 629.46 ▲25.72 | 53.07 ▲3.33 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.30 ▲0.01 | 92.51 ▼1.13 | 42.39 ▼0.95 |
WP User Sentry /wp-admin/options-general.php?page=wp-user-sentry-settings | 907 | 2.07 | 21.47 | 30.40 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- wp_user_sentry_settings
- can_compress_scripts
- 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_user_sentry\\register_activation_hook() in wp-content/plugins/wp-user-sentry/wp-user-sentry.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2 in wp-user-sentry/assets to your readme.txt
wp-user-sentry/wp-user-sentry.php 92% from 13 tests
The entry point to "WP User Sentry" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin581 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 41 | 171 | 581 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 16 | 61.54% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 3 | 11.54% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected