Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.01ms] Passed 4 tests
This is a short check of server-side resources used by Bulk Plugin Toggle
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 46.99 ▲4.03 |
Dashboard /wp-admin | 3.34 ▼0.01 | 51.52 ▼16.18 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.47 ▼3.96 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.71 ▼8.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.95 ▲0.84 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Bulk Plugin Toggle
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.72 ▲0.36 | 1.72 ▼0.57 | 43.78 ▼5.21 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.05 | 92.99 ▼9.21 | 42.83 ▼3.23 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.00 | 41.02 ▲4.08 | 36.55 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.01 ▼0.07 | 683.65 ▼24.46 | 57.22 ▼12.38 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.29 ▲0.16 | 97.36 ▼17.23 | 43.97 ▼4.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bulk-plugin-toggle/tests/phpunit/bootstrap.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: admin, plugins, coffee2code, toggle, bulk actions
bulk-plugin-toggle/bulk-plugin-toggle.php Passed 13 tests
The primary PHP file in "Bulk Plugin Toggle" version 1.0.2 is used by WordPress to initiate all plugin functionality
107 characters long description:
Adds "Toggle" as a bulk action for the plugins listing to toggle the activation state for selected plugins.
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 plugin440 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 150 | 178 | 399 |
Markdown | 2 | 17 | 0 | 27 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 14 | 33.33% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 3 | 7.14% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin