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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.53ms] Passed 4 tests
A check of server-side resources used by Bulk Password Protect Post Types
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.95 ▲5.22 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.80 ▲1.59 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.95 ▲2.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.72 ▼10.59 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.24 ▼0.03 |
Bulk Password Protect /wp-admin/options-general.php?page=password_protect_all_posts | 3.20 | 28.83 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bulk Password Protect Post Types
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.57 ▼1.01 | 1.71 ▼0.02 | 41.92 ▼2.55 |
Dashboard /wp-admin | 2,210 ▲21 | 4.83 ▼0.08 | 107.30 ▼14.69 | 39.31 ▼0.93 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.03 | 40.27 ▲0.05 | 35.16 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.40 ▼4.72 | 638.10 ▼28.10 | 61.21 ▲8.29 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.21 | 100.82 ▼1.75 | 44.45 ▲1.86 |
Bulk Password Protect /wp-admin/options-general.php?page=password_protect_all_posts | 860 | 2.03 | 23.39 | 34.18 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=password_protect_all_posts
- > Warning in wp-content/plugins/bulk-password-protect-post-types/bulk-password.php+100
Use of undefined constant pass_protect_all_select_types - assumed 'pass_protect_all_select_types' (this will throw an Error in a future version of PHP)
- 14 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=password_protect_all_posts
- > Notice in wp-content/plugins/bulk-password-protect-post-types/bulk-password.php+108
Undefined variable: checked
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Contributors: The plugin contributors field is missing
- Screenshots: Screenshot #1 (The settings page.) image required
bulk-password-protect-post-types/bulk-password.php 85% from 13 tests
The main PHP file in "Bulk Password Protect Post Types" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bulk-password-protect-post-types.php" instead of "bulk-password.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
No dangerous file extensions were detected112 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 22 | 112 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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