Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.83ms] Passed 4 tests
Analyzing server-side resources used by Custom Bulk Actions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.00 ▼2.34 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.63 ▼4.25 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.10 ▼4.57 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.37 ▼16.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.92 ▼2.51 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Bulk Actions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.22 | 1.65 ▼0.92 | 38.92 ▼7.81 |
Dashboard /wp-admin | 2,192 ▲12 | 5.55 ▼0.15 | 86.52 ▼4.24 | 40.71 ▼1.68 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 40.09 ▲1.22 | 36.84 ▲3.52 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.14 ▲0.09 | 673.71 ▼0.05 | 62.52 ▼3.48 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.28 ▲0.10 | 96.76 ▼16.38 | 41.93 ▼7.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/custom-bulk-actions/tests/test-plugin.php:3
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-bulk-actions/tests/bootstrap.php on line 17
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/custom-bulk-actions/tests/bootstrap.php on line 17
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 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
6 plugin tags: seravo, custom, mass edit, post, custom post...
custom-bulk-actions/custom-bulk-actions.php Passed 13 tests
This is the main PHP file of "Custom Bulk Actions" version 0.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Custom bulk actions for any type of post
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin275 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 51 | 54 | 135 |
Markdown | 1 | 27 | 0 | 83 |
JSON | 1 | 0 | 0 | 22 |
YAML | 1 | 9 | 3 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin