89% set-bulk-post-categories

Code Review | Set Bulk Post Categories

WordPress plugin Set Bulk Post Categories scored89%from 54 tests.

About plugin

  • Plugin page: set-bulk-post-cat...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Apr 28, 2017
  • Number of updates: 21
  • Update frequency: every 24.5 days
  • Top authors: saurav.rox (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /2,878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.89ms] Passed 4 tests

A check of server-side resources used by Set Bulk Post Categories
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.15 ▼2.17
Dashboard /wp-admin3.32 ▲0.0244.66 ▼5.76
Posts /wp-admin/edit.php3.38 ▲0.0244.47 ▲1.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.25 ▼4.21
Media Library /wp-admin/upload.php3.25 ▲0.0232.79 ▼3.42

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Set Bulk Post Categories
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.69 ▲0.411.77 ▲0.0642.74 ▼3.04
Dashboard /wp-admin2,212 ▲325.62 ▲0.0295.35 ▲4.6843.61 ▲7.05
Posts /wp-admin/edit.php2,114 ▲112.03 ▲0.0534.99 ▼3.2029.91 ▼5.65
Add New Post /wp-admin/post-new.php1,539 ▲423.01 ▲4.91598.21 ▼33.6747.39 ▼21.23
Media Library /wp-admin/upload.php1,417 ▲144.10 ▼0.0597.34 ▼5.3344.95 ▲1.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected 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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: bulk, post, categories, set

set-bulk-post-categories/set-bulk-categories.php 85% from 13 tests

The principal PHP file in "Set Bulk Post Categories" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("set-bulk-post-categories.php" instead of "set-bulk-categories.php")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin147 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24121138
CSS1019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin