89% bulk-remove-posts-from-category

Code Review | Bulk remove posts from category

WordPress plugin Bulk remove posts from category scored89%from 54 tests.

About plugin

  • Plugin page: bulk-remove-posts...
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Mar 8, 2019
  • Latest release: May 10, 2023
  • Number of updates: 15
  • Update frequency: every 101.7 days
  • Top authors: frile (100%)

Code review

54 tests

User reviews

96 reviews

Install metrics

10,000+ active /78,419 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.79ms] Passed 4 tests

A check of server-side resources used by Bulk remove posts from category
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.63 ▼3.56
Dashboard /wp-admin3.32 ▼0.0243.30 ▼16.29
Posts /wp-admin/edit.php3.37 ▲0.0246.11 ▼4.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.13 ▼10.41
Media Library /wp-admin/upload.php3.24 ▲0.0235.72 ▼0.20

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk remove posts from category
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.33 ▼1.081.54 ▼0.2142.39 ▲4.27
Dashboard /wp-admin2,213 ▲314.87 ▼0.99108.49 ▲3.2742.27 ▲0.36
Posts /wp-admin/edit.php2,110 ▲212.04 ▼0.0139.78 ▼0.0836.62 ▼0.62
Add New Post /wp-admin/post-new.php1,526 ▼223.16 ▲4.84627.03 ▼13.3155.93 ▲3.01
Media Library /wp-admin/upload.php1,395 ▲134.16 ▼0.0699.35 ▼1.8442.21 ▼1.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: bulk edit, bulk remove, post categories, product categories

bulk-remove-posts-from-category/wpbulkremove.php 77% from 13 tests

The principal PHP file in "Bulk remove posts from category" v. 3.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path must begin with a forward slash character ("/languages/")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
  • Main file name: Name the main plugin file the same as the plugin slug ("bulk-remove-posts-from-category.php" instead of "wpbulkremove.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin129 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript116275
PHP1193550
CSS1004

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin