84% set-unset-bulk-post-categories

Code Review | Set Unset Bulk Post Categories

WordPress plugin Set Unset Bulk Post Categories scored 84% from 54 tests.

About plugin

  • Plugin page: set-unset-bulk-po...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 5, 2017
  • Latest release: Feb 20, 2020
  • Number of updates: 11
  • Update frequency: every 84.5 days
  • Top authors: paramthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 804 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.23MB] [CPU: ▼5.24ms] Passed 4 tests

An overview of server-side resources used by Set Unset Bulk Post Categories
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2340.07 ▼0.46
Dashboard /wp-admin3.53 ▲0.2248.34 ▼1.45
Posts /wp-admin/edit.php3.64 ▲0.2949.27 ▲0.69
Add New Post /wp-admin/post-new.php6.13 ▲0.2486.71 ▼19.72
Media Library /wp-admin/upload.php3.45 ▲0.2237.72 ▲0.69

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Set Unset Bulk Post Categories
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11413.30 ▼0.961.56 ▼0.1938.63 ▼10.25
Dashboard /wp-admin2,255 ▲645.02 ▼0.88109.20 ▲4.7839.91 ▼7.53
Posts /wp-admin/edit.php2,141 ▲522.22 ▲0.1741.46 ▲6.4534.04 ▼0.83
Add New Post /wp-admin/post-new.php1,559 ▲3117.86 ▼5.26678.69 ▲80.0754.01 ▲0.51
Media Library /wp-admin/upload.php1,440 ▲554.35 ▲0.12101.73 ▼1.0542.32 ▼0.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Appsero\\plugin_basename() in wp-content/plugins/set-unset-bulk-post-categories/appsero/src/Client.php:154
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/set-unset-bulk-post-categories/appsero/src/Client.php on line 152

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
5 plugin tags: categories, set, bulk, post, authors

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

The primary PHP file in "Set Unset Bulk Post Categories" version 1.2.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,218 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP53896091,658
CSS25371525
JavaScript11035

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity41.00
▷ Minimum class complexity5.00
▷ Maximum class complexity65.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods79
▷ Static methods11.27%
▷ Public methods4759.49%
▷ Protected methods67.59%
▷ Private methods2632.91%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%