83% np-posts-bulk-actions

Code Review | NP posts bulk actions

WordPress plugin NP posts bulk actions scored 83% from 54 tests.

About plugin

  • Plugin page: np-posts-bulk-act...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 24, 2022
  • Latest release: Dec 19, 2022
  • Number of updates: 4
  • Update frequency: every 44.5 days
  • Top authors: nileshpipaliya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 508 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

This is a short check of server-side resources used by NP posts bulk actions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.59 ▼1.17
Dashboard /wp-admin3.38 ▲0.0858.96 ▲2.96
Posts /wp-admin/edit.php3.50 ▲0.1456.08 ▲1.60
Add New Post /wp-admin/post-new.php5.98 ▲0.10103.68 ▲1.40
Media Library /wp-admin/upload.php3.31 ▲0.0840.15 ▲0.09
WP Posts Bulk Actions /wp-admin/tools.php?page=bulk_action_admin_options_page3.2735.92

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

NP posts bulk actions: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲8313.67 ▲0.445.36 ▲3.2944.02 ▼2.48
Dashboard /wp-admin2,217 ▲84.87 ▼0.98110.23 ▲3.6445.59 ▲1.80
Posts /wp-admin/edit.php2,103 ▲172.04 ▲0.0443.00 ▲7.2937.93 ▲5.66
Add New Post /wp-admin/post-new.php1,524 ▼1423.57 ▲0.51632.32 ▼3.8964.95 ▲14.70
Media Library /wp-admin/upload.php1,402 ▲144.30 ▲0.0794.43 ▼3.3141.86 ▼0.67
WP Posts Bulk Actions /wp-admin/tools.php?page=bulk_action_admin_options_page8091.6824.5145.18

Uninstaller [IO: ✅] [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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/np-posts-bulk-actions/admin/partials/wp-posts-bulk-actions-admin-display.php
    • > /wp-content/plugins/np-posts-bulk-actions/public/partials/wp-posts-bulk-actions-public-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 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

np-posts-bulk-actions/wp-posts-bulk-actions.php 85% from 13 tests

"NP posts bulk actions" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("np-posts-bulk-actions.php" instead of "wp-posts-bulk-actions.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected401 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12136549333
JavaScript285467
CSS2081

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.43
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin