90% wp-posts-password-batch-manager

Code Review | WP Posts Password Batch Manager

WordPress plugin WP Posts Password Batch Manager scored90%from 54 tests.

About plugin

  • Plugin page: wp-posts-password...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Sep 25, 2014
  • Latest release: Feb 18, 2016
  • Number of updates: 19
  • Update frequency: every 27.0 days
  • Top authors: suifengtec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /903 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.40ms] Passed 4 tests

A check of server-side resources used by WP Posts Password Batch Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.74 ▼2.73
Dashboard /wp-admin3.44 ▲0.1349.21 ▲0.25
Posts /wp-admin/edit.php3.55 ▲0.1948.09 ▼0.21
Add New Post /wp-admin/post-new.php6.02 ▲0.1384.52 ▼14.90
Media Library /wp-admin/upload.php3.36 ▲0.1334.76 ▲0.24
Posts list /wp-admin/admin.php?page=wppbm-posts3.3433.20
My PSW /wp-admin/admin.php?page=wppbm3.3329.13

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
wppbm_general
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Posts Password Batch Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9513.23 ▼1.452.06 ▲0.1643.49 ▼8.79
Dashboard /wp-admin2,233 ▲454.82 ▼0.07107.01 ▼2.4439.27 ▼4.11
Posts /wp-admin/edit.php2,124 ▲322.04 ▲0.0236.27 ▼4.9034.41 ▼2.97
Add New Post /wp-admin/post-new.php1,555 ▲2223.12 ▲0.15650.98 ▲53.8253.37 ▼0.27
Media Library /wp-admin/upload.php1,426 ▲384.15 ▼0.0395.81 ▲1.8941.23 ▼3.94
Posts list /wp-admin/admin.php?page=wppbm-posts1,0112.2124.4625.92
My PSW /wp-admin/admin.php?page=wppbm8871.8833.8530.11

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
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • wppbm_general
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: posts, password

wp-posts-password-batch-manager/wp-posts-password-batch-manager.php Passed 13 tests

The main PHP script in "WP Posts Password Batch Manager" version 1.1 is automatically included on every request by WordPress
62 characters long description:
Batch managing your Wordpress posts password with this plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected977 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6203142612
PO File2471978365

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity22.75
▷ Minimum class complexity3.00
▷ Maximum class complexity33.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods46
▷ Static methods817.39%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected