Benchmarks
Plugin footprint 82% 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: ▲0.02MB] [CPU: ▼5.63ms] 75% from 4 tests
Server-side resources used by Visibility Control for WooCommerce
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 5,436.33ms on /wp-admin/admin.php?page=grassblade-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.78 ▼2.51 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.25 ▲0.93 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 52.23 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.43 ▼18.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.47 ▲0.49 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 3.44 | 5,436.33 |
Visibility Control for WooCommerce /wp-admin/admin.php?page=grassblade-visibility-control-woocommerce | 3.24 | 34.38 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 3.25 | 33.23 |
Server storage [IO: ▲0.07MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
grassblade_free_addons |
can_compress_scripts |
grassblade_addons |
widget_recent-comments |
visibility_control_for_woocommerce |
Browser metrics Passed 4 tests
Checking browser requirements for Visibility Control for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.80 ▲0.50 | 1.79 ▲0.08 | 51.49 ▲9.47 |
Dashboard /wp-admin | 2,221 ▲30 | 5.86 ▲0.98 | 99.25 ▼8.35 | 85.64 ▲39.76 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 1.99 ▼0.02 | 34.24 ▼7.61 | 33.00 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 17.58 ▼0.76 | 743.46 ▲93.80 | 52.84 ▼1.04 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.20 ▲0.01 | 98.73 ▼1.23 | 61.63 ▲16.99 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 2,813 | 2.16 | 30.34 | 68.52 |
Visibility Control for WooCommerce /wp-admin/admin.php?page=grassblade-visibility-control-woocommerce | 833 | 2.01 | 25.67 | 25.11 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 827 | 2.02 | 25.43 | 24.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- visibility_control_for_woocommerce
- grassblade_free_addons
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- grassblade_addons
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visibility-control-for-woocommerce/visibility-control-for-woocommerce.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
visibility-control-for-woocommerce/visibility-control-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "Visibility Control for WooCommerce" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 703 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
Everything looks great! No dangerous files found in this plugin604 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 122 | 20 | 604 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.76 |
Average class complexity | 75.50 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 7.42 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_30x30.png | 4.58KB | 1.60KB | ▼ 65.15% |
img/check.png | 0.98KB | 0.47KB | ▼ 52.44% |
img/icon_128x128.png | 22.67KB | 6.87KB | ▼ 69.71% |
img/no.png | 1.01KB | 0.62KB | ▼ 39.05% |
img/icon-gb.png | 3.43KB | 0.84KB | ▼ 75.48% |