Benchmarks
Plugin footprint 65% 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: ▲4.46MB] [CPU: ▼277.38ms] Passed 4 tests
This is a short check of server-side resources used by The best plugin for restrict content, support all Custom Post Types and Elementor - Password Protected
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.36 ▲4.85 | 79.24 ▲29.83 |
Dashboard /wp-admin | 8.38 ▲4.97 | 55.53 ▲20.61 |
Posts /wp-admin/edit.php | 8.38 ▲4.74 | 64.50 ▲28.42 |
Add New Post /wp-admin/post-new.php | 10.22 ▲3.25 | 111.66 ▼1,178.13 |
Media Library /wp-admin/upload.php | 8.38 ▲5.09 | 44.36 ▲19.58 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 9.63 | 79.36 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.38 | 45.87 |
Server storage [IO: ▲7.58MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 394 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
fs_gdpr |
widget_recent-comments |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
The best plugin for restrict content, support all Custom Post Types and Elementor - Password Protected: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,895 ▲141 | 16.45 ▲0.87 | 8.00 ▲2.17 | 3.10 ▲0.50 |
Dashboard /wp-admin | 2,973 ▲112 | 6.61 ▲0.39 | 117.18 ▼15.97 | 180.42 ▲11.37 |
Posts /wp-admin/edit.php | 2,739 ▲51 | 3.55 ▲0.31 | 66.19 ▼0.58 | 158.66 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,676 ▼82 | 22.25 ▲0.73 | 381.39 ▼36.16 | 146.12 ▼11.57 |
Media Library /wp-admin/upload.php | 1,777 ▲76 | 5.97 ▲0.48 | 126.46 ▼16.98 | 215.11 ▲30.52 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 9,123 | 19.11 | 552.65 | 201.97 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,481 | 2.90 | 55.56 | 114.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/protected-page/libs/fs-sdk/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- fs_active_plugins
- widget_recent-comments
- fs_accounts
- fs_debug_mode
- fs_gdpr
Smoke tests 25% 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)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/protected-page/libs/fs-sdk/templates/ajax-loader.php
- > /wp-content/plugins/protected-page/libs/fs-sdk/old-version/templates/ajax-loader.php
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant PASSWORD_CHARACTERS - assumed 'PASSWORD_CHARACTERS' (this will throw an Error in a future version of PHP) in wp-content/plugins/protected-page/templates/generate-password-forms.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/protected-page/libs/fs-sdk/old-version/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/protected-page/libs/fs-sdk/old-version/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/protected-page/libs/fs-sdk/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/protected-page/libs/fs-sdk/old-version/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/protected-page/templates/generate-password-forms.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/protected-page/templates/protected-form.php:64
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/protected-page/libs/fs-sdk/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/protected-page/libs/fs-sdk/old-version/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/protected-page/libs/fs-sdk/old-version/templates/partials/network-activation.php:6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #5 in protected-page/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
protected-page/protected-page.php 92% from 13 tests
The main PHP file in "The best plugin for restrict content, support all Custom Post Types and Elementor - Password Protected" ver. 1.0.16 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.3")
Code Analysis 97% from 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 detected73,367 lines of code in 242 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 176 | 13,694 | 29,961 | 57,051 |
PO File | 11 | 5,777 | 7,005 | 12,685 |
JavaScript | 21 | 426 | 199 | 2,225 |
CSS | 25 | 116 | 6 | 648 |
Sass | 5 | 74 | 5 | 383 |
Markdown | 2 | 88 | 0 | 273 |
HTML | 1 | 1 | 0 | 75 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 84.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 94 | |
▷ Abstract classes | 4 | 4.26% |
▷ Concrete classes | 90 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 2,257 | |
▷ Static methods | 348 | 15.42% |
▷ Public methods | 1,569 | 69.52% |
▷ Protected methods | 30 | 1.33% |
▷ Private methods | 658 | 29.15% |
Functions | 189 | |
▷ Named functions | 189 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 246 | |
▷ Global constants | 198 | 80.49% |
▷ Class constants | 48 | 19.51% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/protected-page-admin-icon.png | 1.45KB | 0.65KB | ▼ 55.16% |
libs/fs-sdk/old-version/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
libs/fs-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
libs/fs-sdk/old-version/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/protected-page-logo-white.png | 16.00KB | 6.14KB | ▼ 61.61% |