Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.24ms] Passed 4 tests
A check of server-side resources used by Password Protected Store for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.89 ▲0.53 |
Dashboard /wp-admin | 3.46 ▲0.16 | 51.87 ▲0.04 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 55.58 ▲10.75 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.74 ▲1.68 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 33.58 ▲2.71 |
Password Protected /wp-admin/admin.php?page=ppws-option-page | 3.28 | 37.04 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
ppws_form_desgin_settings |
ppws_product_categories_settings |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
ppws_form_content_option |
theysaidso_admin_options |
ppws_page_settings |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Password Protected Store for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,054 ▲292 | 16.34 ▲1.94 | 1.75 ▲0.07 | 39.90 ▼4.02 |
Dashboard /wp-admin | 2,462 ▲285 | 7.24 ▲1.73 | 141.96 ▲46.15 | 41.91 ▼4.85 |
Posts /wp-admin/edit.php | 2,540 ▲440 | 5.03 ▲3.01 | 88.17 ▲49.16 | 37.36 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.07 ▲0.16 | 621.40 ▲21.88 | 35.33 ▼17.62 |
Media Library /wp-admin/upload.php | 1,674 ▲271 | 5.24 ▲1.07 | 107.82 ▲11.03 | 41.89 ▲0.48 |
Password Protected /wp-admin/admin.php?page=ppws-option-page | 1,488 | 4.80 | 75.50 | 40.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- ppws_product_categories_settings
- can_compress_scripts
- ppws_page_settings
- ppws_form_content_option
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- ppws_general_settings
- db_upgraded
- widget_theysaidso_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 22× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WPPS_PLUGIN_DIR_PATH - assumed 'WPPS_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/password-protected-woo-store/admin/options.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/password-protected-woo-store/admin/setting/product-categories-setting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/password-protected-woo-store/admin/setting/general-setting.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/password-protected-woo-store/front/class-ppws-protected-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/password-protected-woo-store/admin/setting/form-desgin.php:3
- > PHP Warning
include(WPPS_PLUGIN_DIR_PATHadmin/setting/form-content.php): failed to open stream: No such file or directory in wp-content/plugins/password-protected-woo-store/admin/options.php on line 5
- > PHP Warning
include(WPPS_PLUGIN_DIR_PATHadmin/setting/form-desgin.php): failed to open stream: No such file or directory in wp-content/plugins/password-protected-woo-store/admin/options.php on line 6
- > PHP Warning
include(): Failed opening 'WPPS_PLUGIN_DIR_PATHadmin/setting/form-content.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/password-protected-woo-store/admin/options.php on line 5
- > PHP Warning
include(): Failed opening 'WPPS_PLUGIN_DIR_PATHadmin/setting/form-desgin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/password-protected-woo-store/admin/options.php on line 6
- > PHP Warning
Use of undefined constant WPPS_PLUGIN_DIR_PATH - assumed 'WPPS_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/password-protected-woo-store/admin/options.php on line 5
- > 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 Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce protected categories, woocommerce store protected, woo protect, product protected
password-protected-woo-store/password-protected-store-for-woocommerce.php 77% from 13 tests
This is the main PHP file of "Password Protected Store for WooCommerce" version 1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("password-protected-woo-store.php" instead of "password-protected-store-for-woocommerce.php")
- Description: Keep the plugin description shorter than 140 characters (currently 233 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,894 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 414 | 140 | 2,258 |
CSS | 2 | 60 | 4 | 403 |
JavaScript | 1 | 41 | 16 | 233 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 41.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 6.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
There were not PNG files found in your plugin