Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.16MB] [CPU: ▼13.22ms] Passed 4 tests
An overview of server-side resources used by Woo Private Product
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.67 | 16.19 ▼29.26 |
Dashboard /wp-admin | 3.33 ▼0.01 | 49.72 ▼12.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.85 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.92 ▼9.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.41 ▲3.50 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Private Product
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.16 | 1.85 ▲0.04 | 45.18 ▲2.97 |
Dashboard /wp-admin | 2,209 ▲21 | 5.90 ▲0.81 | 102.49 ▼12.42 | 42.70 ▲2.47 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.17 | 36.84 ▼5.10 | 31.90 ▼6.08 |
Add New Post /wp-admin/post-new.php | 1,514 ▼23 | 17.55 ▼0.67 | 686.18 ▲46.86 | 57.31 ▲5.23 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.25 ▼0.12 | 112.92 ▲9.85 | 47.64 ▲2.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
Please fix the following attributes:
- Requires at least: Version format is invalid
woo-private-product/woo-private-product.php Passed 13 tests
"Woo Private Product" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
Restrict products on your Woocommerce store to unique users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected180 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 58 | 84 |
PO File | 2 | 10 | 10 | 52 |
JavaScript | 2 | 7 | 8 | 23 |
CSS | 1 | 6 | 0 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 1 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin