Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.86ms] Passed 4 tests
An overview of server-side resources used by Bulk Deactivate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.02 | 39.71 ▼1.75 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.05 ▼1.93 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.34 ▼0.33 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.18 ▼9.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.86 ▼2.01 |
Bulk Deactivate /wp-admin/plugins.php?page=deactivate | 3.23 | 32.78 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
DEACTIV_VERSION_KEY |
can_compress_scripts |
Browser metrics Passed 4 tests
Bulk Deactivate: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.16 ▼1.15 | 1.89 ▼0.46 | 38.83 ▼11.40 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲0.97 | 97.62 ▼4.31 | 39.22 ▼0.56 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.03 | 39.73 ▼0.35 | 34.65 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.07 ▼0.21 | 669.59 ▲51.93 | 52.23 ▼6.93 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.22 ▲0.07 | 94.37 ▼6.56 | 41.20 ▼3.72 |
Bulk Deactivate /wp-admin/plugins.php?page=deactivate | 882 | 1.97 | 30.11 | 29.12 |
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
- Zombie WordPress options were found after uninstall: 7 options
- DEACTIV_VERSION_KEY
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-deactivate/includes/deactivate.php on line 65
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-deactivate/includes/deactivate.php on line 65
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/bulk-deactivate/includes/deactivate.php on line 65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-deactivate/includes/init.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bulk-deactivate/bulk-deactivate.php:18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: plugin, debug, deactivate, bulk deactivate, activate
bulk-deactivate/bulk-deactivate.php 92% from 13 tests
The entry point to "Bulk Deactivate" version 0.2.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,783 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 96 | 11 | 1,129 |
CSS | 3 | 17 | 26 | 441 |
PHP | 3 | 124 | 29 | 174 |
Markdown | 1 | 18 | 0 | 20 |
HTML | 1 | 13 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
libs/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |