Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▲4.80ms] Passed 4 tests
Server-side resources used by Build Private Store For Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.22 ▲0.14 |
Dashboard /wp-admin | 3.37 ▲0.03 | 63.54 ▲1.81 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 63.67 ▲12.83 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 105.46 ▲4.42 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 55.09 ▲17.76 |
Users Pending Approval /wp-admin/users.php?page=panding-new-users | 3.27 | 43.66 |
Approved Users /wp-admin/users.php?page=approve-new-users | 3.27 | 48.45 |
Denied Users /wp-admin/users.php?page=denied-new-users | 3.27 | 48.84 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Build Private Store For Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲204 | 13.81 ▼0.43 | 4.54 ▲2.45 | 28.77 ▼15.35 |
Dashboard /wp-admin | 2,278 ▲75 | 5.04 ▲0.17 | 103.29 ▼6.77 | 40.81 ▼2.90 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.51 ▲0.50 | 38.16 ▼2.18 | 34.52 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,577 ▲38 | 23.14 ▼0.02 | 666.01 ▲11.01 | 36.51 ▼17.48 |
Media Library /wp-admin/upload.php | 1,463 ▲63 | 4.45 ▲0.16 | 103.44 ▼7.14 | 47.72 ▼2.52 |
Users Pending Approval /wp-admin/users.php?page=panding-new-users | 998 | 1.99 | 30.32 | 31.07 |
Approved Users /wp-admin/users.php?page=approve-new-users | 1,001 | 1.97 | 35.52 | 31.28 |
Denied Users /wp-admin/users.php?page=denied-new-users | 995 | 1.99 | 28.21 | 26.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/build-private-store-for-woocommerce/build-private-store-for-woocommerce.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-load-my-plugin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-installation-require.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-load-js-css.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/backend/bpsfw-common.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/build-private-store-for-woocommerce/main/frontend/bpsfw-frontend.php:285
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-language.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-load-my-textdomain.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/backend/bpsfw-backend.php:565
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/bpsfw-common.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=denied-new-users
- > Network (severe)
wp-content/plugins/woocommerce/assets/css/admin.css?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Contributors: Plugin contributors not specified
build-private-store-for-woocommerce/build-private-store-for-woocommerce.php Passed 13 tests
The main PHP file in "Build Private Store For Woocommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
This plugin allows create OC Private Store For Woocommerce plugin.
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 detected1,752 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 161 | 15 | 1,255 |
JavaScript | 2 | 75 | 146 | 423 |
CSS | 1 | 1 | 0 | 74 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.50% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |