84% custom-bulk-actions

Code Review | Custom Bulk Actions

WordPress plugin Custom Bulk Actions scored84%from 54 tests.

About plugin

  • Plugin page: custom-bulk-actions
  • Plugin version: 0.1.4
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 25, 2014
  • Latest release: Jul 28, 2020
  • Number of updates: 10
  • Update frequency: every 228.6 days
  • Top authors: onnimonni (60%)ottok (40%)seravo (20%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,869 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.00 ▼2.34
Dashboard /wp-admin3.33 ▲0.0347.63 ▼4.25
Posts /wp-admin/edit.php3.38 ▲0.0248.10 ▼4.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.37 ▼16.00
Media Library /wp-admin/upload.php3.25 ▲0.0236.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.221.65 ▼0.9238.92 ▼7.81
Dashboard /wp-admin2,192 ▲125.55 ▼0.1586.52 ▼4.2440.71 ▼1.68
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0340.09 ▲1.2236.84 ▲3.52
Add New Post /wp-admin/post-new.php1,526 ▼523.14 ▲0.09673.71 ▼0.0562.52 ▼3.48
Media Library /wp-admin/upload.php1,403 ▲34.28 ▲0.1096.76 ▼16.3841.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

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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.34
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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