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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.89ms] Passed 4 tests
An overview of server-side resources used by Deactivate WordPress Users
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.01 ▲0.71 |
Dashboard /wp-admin | 3.44 ▲0.14 | 47.71 ▼8.01 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.48 ▼4.67 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 84.68 ▼19.59 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.52 ▲7.33 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Deactivate WordPress Users
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.24 ▼1.13 | 2.13 ▲0.12 | 42.86 ▼5.26 |
Dashboard /wp-admin | 2,203 ▲12 | 5.89 ▲0.99 | 98.18 ▼6.38 | 40.64 ▲0.14 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.03 | 35.52 ▲0.90 | 30.45 ▼6.51 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.23 ▲0.01 | 717.04 ▲88.72 | 58.79 ▼0.39 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.19 ▼0.03 | 94.39 ▼4.45 | 42.79 ▼1.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/deactivate-users/lib/metabox/tests/phpunit/includes/bootstrap.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/deactivate-users/lib/metabox/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/deactivate-users/lib/metabox/init.php:41
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/deactivate-users/lib/metabox/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deactivate-users/deactivate-users.php:32
- > 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 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== deactivate-users ===
)
deactivate-users/deactivate-users.php Passed 13 tests
The main PHP script in "Deactivate WordPress Users" version 1.1 is automatically included on every request by WordPress
114 characters long description:
Allows admins to deactivate a user as opposed to deleting a user. Works with web and XML-RPC based authentication.
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
No dangerous file extensions were detected5,274 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 312 | 403 | 2,246 |
PHP | 10 | 551 | 1,121 | 2,075 |
CSS | 2 | 61 | 21 | 540 |
Markdown | 3 | 88 | 0 | 288 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 51.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 34 | 24.64% |
▷ Public methods | 136 | 98.55% |
▷ Protected methods | 2 | 1.45% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/metabox/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
lib/metabox/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
lib/metabox/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/metabox/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
lib/metabox/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |