83% bulk-actions

Code Review | Advanced Bulk Actions

WordPress plugin Advanced Bulk Actions scored83%from 54 tests.

About plugin

  • Plugin page: bulk-actions
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Dec 3, 2016
  • Latest release: May 31, 2017
  • Number of updates: 25
  • Update frequency: every 7.2 days
  • Top authors: engelen (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /4,581 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.35ms] Passed 4 tests

Server-side resources used by Advanced Bulk Actions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0247.71 ▲6.31
Dashboard /wp-admin3.43 ▲0.1350.10 ▼3.79
Posts /wp-admin/edit.php3.57 ▲0.2154.60 ▲1.80
Add New Post /wp-admin/post-new.php6.01 ▲0.1386.75 ▼8.04
Media Library /wp-admin/upload.php3.35 ▲0.1336.49 ▲0.65

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
wpba_version
widget_recent-comments
can_compress_scripts
db_upgraded
wpba_installed_timestamp
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Bulk Actions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.102.04 ▼0.0252.12 ▲13.40
Dashboard /wp-admin2,198 ▲215.58 ▼0.0492.93 ▼4.3243.29 ▼0.08
Posts /wp-admin/edit.php2,336 ▲2333.53 ▲1.56110.53 ▲67.4136.38 ▼3.11
Add New Post /wp-admin/post-new.php1,526 ▼223.89 ▲0.87671.42 ▲4.8853.82 ▲2.14
Media Library /wp-admin/upload.php1,403 ▲34.09 ▼0.1082.11 ▼20.2747.16 ▲0.36

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 8 options in the database
    • db_upgraded
    • wpba_version
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • wpba_installed_timestamp
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WPBA_BulkAction_Abstract' not found in wp-content/plugins/bulk-actions/library/BulkAction/Post/ChangeFeaturedImage.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPBA_BulkAction_Abstract' not found in wp-content/plugins/bulk-actions/library/BulkAction/Post/ChangePostType.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPBA_BulkAction_Abstract' not found in wp-content/plugins/bulk-actions/library/BulkAction/Post/ChangePostVisibility.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPBA_ListScreen_Abstract' not found in wp-content/plugins/bulk-actions/library/ListScreen/Post.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPBA_BulkAction_Abstract' not found in wp-content/plugins/bulk-actions/library/BulkAction/Post/ChangePostStatus.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

bulk-actions/bulk-actions.php 85% from 13 tests

The main PHP file in "Advanced Bulk Actions" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 246 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin771 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10173482552
JavaScript23827142
Sass110045
CSS11032

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.20
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes220.00%
▷ Concrete classes880.00%
▷ Final classes00.00%
Methods59
▷ Static methods23.39%
▷ Public methods5694.92%
▷ Protected methods11.69%
▷ Private methods23.39%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin