84% bulk-post-status-update

Code Review | Bulk Post Status Update

WordPress plugin Bulk Post Status Update scored84%from 54 tests.

About plugin

  • Plugin page: bulk-post-status-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 17, 2022
  • Latest release: Sep 16, 2023
  • Number of updates: 4
  • Update frequency: every 114.3 days
  • Top authors: thechetanvaghela (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /740 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.81ms] Passed 4 tests

A check of server-side resources used by Bulk Post Status Update
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.46 ▲3.98
Dashboard /wp-admin3.39 ▲0.0946.02 ▼7.90
Posts /wp-admin/edit.php3.51 ▲0.1550.22 ▲2.56
Add New Post /wp-admin/post-new.php5.99 ▲0.1192.65 ▼1.88
Media Library /wp-admin/upload.php3.31 ▲0.0940.03 ▲7.80

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
wp-bulk-post-status-support-types
widget_recent-posts
widget_theysaidso_widget
wpbpus_remove_on_uninstall
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Post Status Update
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲15713.60 ▼0.784.94 ▲2.9740.41 ▼7.41
Dashboard /wp-admin2,226 ▲355.88 ▲1.01109.18 ▲1.7942.67 ▲2.15
Posts /wp-admin/edit.php2,132 ▲402.01 ▲0.0142.10 ▲6.3634.23 ▲0.40
Add New Post /wp-admin/post-new.php1,531 ▼223.24 ▼0.02612.58 ▼82.9162.00 ▲9.63
Media Library /wp-admin/upload.php1,411 ▲234.21 ▲0.0296.96 ▼2.4441.98 ▲0.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • wp-bulk-post-status-support-types
    • wpbpus_remove_on_uninstall
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bulk-post-status-update/public/partials/wp-bulk-post-status-update-public-display.php
    • > /wp-content/plugins/bulk-post-status-update/admin/partials/wp-bulk-post-status-update-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: custom post type, post, publish, update status, bulk...

bulk-post-status-update/wp-bulk-post-status-update.php 85% from 13 tests

The entry point to "Bulk Post Status Update" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bulk-post-status-update.php" instead of "wp-bulk-post-status-update.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin407 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12134598360
CSS231241
JavaScript24546

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.43
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin