Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.73ms] Passed 4 tests
A check of server-side resources used by WooCommerce for Logged-in Users
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.01 ▼2.81 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.85 ▲3.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.17 ▼0.64 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.03 ▼18.92 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.29 ▼0.56 |
WooCommerce for logged-in users /wp-admin/admin.php?page=woocommerce_for_logged_users | 3.20 | 31.94 |
Server storage [IO: ▲3.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce for Logged-in Users
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.10 | 1.65 ▼0.02 | 40.73 ▼5.64 |
Dashboard /wp-admin | 2,203 ▲18 | 5.79 ▲0.76 | 97.86 ▼8.10 | 37.93 ▼3.96 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 34.04 ▼2.66 | 35.22 ▲4.95 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.41 ▼5.83 | 671.01 ▼11.00 | 55.99 ▲1.16 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.27 ▲0.03 | 93.49 ▼13.90 | 40.98 ▼6.80 |
WooCommerce for logged-in users /wp-admin/admin.php?page=woocommerce_for_logged_users | 746 | 2.02 | 22.28 | 20.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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 | 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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-for-logged-users/admin.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== woo-for-logged-users ===
)
woo-for-logged-users/woo-for-logged-users.php 92% from 13 tests
The main PHP file in "WooCommerce for Logged-in Users" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin22,996 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 22,312 |
JavaScript | 13 | 67 | 12 | 490 |
PHP | 5 | 57 | 98 | 194 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
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
PNG images were not found in this plugin