Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.36ms] Passed 4 tests
Server-side resources used by New Users Monitor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.90 ▲1.78 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.74 ▼11.98 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.83 ▼2.53 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.75 ▼12.71 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.07 ▲4.60 |
New Users Monitor /wp-admin/users.php?page=new-users-monitor/options.php | 3.36 | 31.79 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
num_first_run |
theysaidso_admin_options |
num_scan_newusers |
num_dashboard_newusers |
Browser metrics Passed 4 tests
A check of browser resources used by New Users Monitor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲120 | 14.73 ▲0.38 | 1.78 ▲0.10 | 40.67 ▼0.29 |
Dashboard /wp-admin | 2,290 ▲113 | 5.66 ▲0.08 | 82.94 ▼3.56 | 43.20 ▼0.85 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.01 ▲0.02 | 35.57 ▼3.61 | 33.41 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.04 ▼0.01 | 658.07 ▼63.15 | 62.85 ▲0.85 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.06 | 94.53 ▼12.07 | 41.61 ▼5.45 |
New Users Monitor /wp-admin/users.php?page=new-users-monitor/options.php | 1,110 | 2.03 | 22.54 | 26.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/new-users-monitor/uninstall.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/new-users-monitor/new-users-monitor.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/new-users-monitor/options.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: confirm, login, registration, user, security...
new-users-monitor/new-users-monitor.php Passed 13 tests
"New Users Monitor" version 2.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
131 characters long description:
Ext Security. Automatic scanning of the Users list, and detect unauthorized addition to the DB. Informs immediately Admin by email.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin499 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 119 | 66 | 461 |
CSS | 1 | 1 | 4 | 38 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 15 | |
▷ Named functions | 15 | 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 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