84% multiple-post-passwords

Code Review | Multiple Post Passwords

WordPress plugin Multiple Post Passwords scored84%from 54 tests.

About plugin

  • Plugin page: multiple-post-pas...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.9.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Feb 24, 2022
  • Number of updates: 13
  • Update frequency: every 93.7 days
  • Top authors: andreasmuench (61.54%)wpterra (46.15%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /13,830 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.69ms] Passed 4 tests

This is a short check of server-side resources used by Multiple Post Passwords
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0842.10 ▲1.86
Dashboard /wp-admin3.42 ▲0.1149.32 ▲1.54
Posts /wp-admin/edit.php3.53 ▲0.1745.39 ▼0.85
Add New Post /wp-admin/post-new.php6.00 ▲0.1186.17 ▼13.31
Media Library /wp-admin/upload.php3.34 ▲0.1141.15 ▲3.35
Multiple Post Passwords /wp-admin/options-general.php?page=multiple-post-passwords-settings3.2932.20

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 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 Multiple Post Passwords
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.74 ▲0.341.77 ▲0.0843.14 ▲2.33
Dashboard /wp-admin2,210 ▲195.04 ▼0.89109.05 ▲3.2843.04 ▲0.67
Posts /wp-admin/edit.php2,090 ▲41.99 ▼0.0334.56 ▼3.7433.68 ▲1.31
Add New Post /wp-admin/post-new.php1,536 ▲323.02 ▼0.02666.88 ▼34.0561.72 ▼4.23
Media Library /wp-admin/upload.php1,395 ▲104.19 ▼0.03108.68 ▼14.0146.65 ▲4.50
Multiple Post Passwords /wp-admin/options-general.php?page=multiple-post-passwords-settings8372.0424.6426.21

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=multiple-post-passwords-settings
    • > Notice in wp-content/plugins/multiple-post-passwords/admin/settings-page.php+214
    Undefined index: placeholder
    • > GET request to /wp-admin/options-general.php?page=multiple-post-passwords-settings
    • > Notice in wp-content/plugins/multiple-post-passwords/admin/settings-page.php+206
    Undefined index: min

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: protected, page, multiple, post, password...

multiple-post-passwords/multiple-post-passwords.php 92% from 13 tests

"Multiple Post Passwords" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin485 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7207253485

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.29
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods1030.30%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.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 are no PNG files in this plugin