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: ▲4.26MB] [CPU: ▲21.53ms] Passed 4 tests
This is a short check of server-side resources used by Wp Edit Password Protected - Create Member/User Only Page & Design Password Protected Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.61 ▲4.15 | 56.54 ▲18.99 |
Dashboard /wp-admin | 7.60 ▲4.29 | 68.21 ▲20.76 |
Posts /wp-admin/edit.php | 7.68 ▲4.32 | 75.30 ▲29.01 |
Add New Post /wp-admin/post-new.php | 10.16 ▲4.27 | 111.49 ▲17.34 |
Media Library /wp-admin/upload.php | 7.60 ▲4.37 | 65.38 ▲31.97 |
Server storage [IO: ▲2.84MB] [DB: ▲0.24MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 386 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
pp_new_basic_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp Edit Password Protected - Create Member/User Only Page & Design Password Protected Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,024 ▲262 | 15.18 ▲0.91 | 1.61 ▼0.30 | 27.49 ▼10.61 |
Dashboard /wp-admin | 2,424 ▲244 | 6.32 ▲0.65 | 125.09 ▲27.11 | 57.34 ▲14.32 |
Posts /wp-admin/edit.php | 2,359 ▲259 | 3.73 ▲1.77 | 59.55 ▲19.64 | 49.56 ▲13.65 |
Add New Post /wp-admin/post-new.php | 1,609 ▲73 | 23.26 ▲0.04 | 650.38 ▼0.09 | 36.87 ▼12.10 |
Media Library /wp-admin/upload.php | 1,489 ▲95 | 4.39 ▲0.18 | 92.56 ▼4.86 | 57.24 ▲15.34 |
WP Edit password protected options /wp-admin/wp-edit-pass.php | 26 | 0.41 | 0.09 | 9.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.24MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- pp_new_basic_settings
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 80× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field\\Text' not found in wp-content/plugins/wp-edit-password-protected/admin/kirki/packages/kirki-framework/control-generic/src/Field/URL.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-edit-password-protected/admin/wp_edit_pass_options.php:79
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Control\\Base' not found in wp-content/plugins/wp-edit-password-protected/admin/kirki/packages/kirki-framework/control-repeater/src/Control/Repeater.php:20
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/wp-edit-password-protected/admin/kirki/packages/kirki-framework/control-multicheck/src/Field/Multicheck.php:20
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/wp-edit-password-protected/admin/kirki/packages/kirki-framework/field-typography/src/Field/Typography.php:23
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field\\ReactColorful' not found in wp-content/plugins/wp-edit-password-protected/admin/kirki/packages/kirki-framework/control-color/src/Field/Color.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/wp-edit-password-protected/admin/kirki/packages/kirki-framework/module-sections/src/Section_Types/Link.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wp-edit-password-protected/admin/kirki/packages/kirki-framework/control-base/src/Control/Base.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/wp-edit-password-protected/admin/kirki/packages/kirki-framework/util/src/Setting/Site_Option.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-edit-password-protected/admin/pagetemplater.php:167
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/wp-edit-pass.php
- > Network (severe)
wp-admin/wp-edit-pass.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in wp-edit-password-protected/assets to your readme.txt
wp-edit-password-protected/wp-edit-password-protected.php Passed 13 tests
The primary PHP file in "Wp Edit Password Protected - Create Member/User Only Page & Design Password Protected Form" version 1.2.6 is used by WordPress to initiate all plugin functionality
90 characters long description:
Create member only page and change the message displayed of default wp Password Protected.
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
No dangerous file extensions were detected35,136 lines of code in 316 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 162 | 3,613 | 10,284 | 13,568 |
JavaScript | 91 | 1,888 | 2,542 | 10,846 |
JSON | 7 | 0 | 0 | 8,431 |
Markdown | 29 | 312 | 0 | 1,434 |
CSS | 22 | 53 | 44 | 593 |
SVG | 2 | 7 | 0 | 110 |
XML | 1 | 6 | 11 | 95 |
YAML | 2 | 13 | 0 | 59 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 15.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 141 | |
▷ Abstract classes | 1 | 0.71% |
▷ Concrete classes | 140 | 99.29% |
▷ Final classes | 10 | 7.14% |
Methods | 704 | |
▷ Static methods | 142 | 20.17% |
▷ Public methods | 546 | 77.56% |
▷ Protected methods | 101 | 14.35% |
▷ Private methods | 57 | 8.10% |
Functions | 51 | |
▷ Named functions | 15 | 29.41% |
▷ Anonymous functions | 36 | 70.59% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.30MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/kirki/assets/images/2cr.png | 0.85KB | 0.27KB | ▼ 68.58% |
assets/img/admin-only-page.png | 145.85KB | 37.50KB | ▼ 74.29% |
admin/kirki/assets/images/kirki-bottom.png | 1.51KB | 1.09KB | ▼ 27.89% |
admin/kirki/assets/images/3cr.png | 0.91KB | 0.32KB | ▼ 64.81% |
assets/img/wpedit-pass.png | 155.69KB | 40.66KB | ▼ 73.88% |