Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.20ms] Passed 4 tests
This is a short check of server-side resources used by User Activation Validate
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.56 ▼2.41 |
Dashboard /wp-admin | 3.43 ▲0.13 | 47.92 ▼4.53 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 51.69 ▲0.23 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 84.90 ▼11.70 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 36.78 ▼2.16 |
User Activation Validate /wp-admin/users.php?page=uav | 3.32 | 32.38 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by User Activation Validate
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.08 | 1.69 ▼0.17 | 46.79 ▲2.73 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.03 | 89.05 ▼8.18 | 38.83 ▼4.85 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▼0.02 | 35.37 ▼5.71 | 34.17 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.08 ▼0.03 | 679.47 ▼29.16 | 64.72 ▲12.72 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.16 ▼0.03 | 101.47 ▼7.66 | 43.60 ▼2.11 |
User Activation Validate /wp-admin/users.php?page=uav | 782 | 2.02 | 24.73 | 24.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/user-activation-validate/language/index.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function UavSH() in wp-content/plugins/user-activation-validate/views/users.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/user-activation-validate/includes/UavTable.php:12
- > PHP Notice
Trying to get property 'users' of non-object in wp-content/plugins/user-activation-validate/views/users.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-activation-validate/includes/bootstrap.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (User Activate Validate default page)
user-activation-validate/user-activation-validate.php 92% from 13 tests
The main PHP file in "User Activation Validate" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected933 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 214 | 352 | 824 |
JavaScript | 1 | 20 | 7 | 108 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 6 | 11.54% |
▷ Public methods | 50 | 96.15% |
▷ Protected methods | 1 | 1.92% |
▷ Private methods | 1 | 1.92% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot.png | 120.44KB | 41.72KB | ▼ 65.36% |
assets/help-icon.png | 1.18KB | 1.23KB | 0.00% |