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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲2.05ms] Passed 4 tests
A check of server-side resources used by Void Woo Cart Restrictor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.69 ▲5.02 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.48 ▲1.19 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.27 ▲0.08 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.74 ▲9.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.06 ▲1.89 |
Void Woo Cart Restrictor /wp-admin/options-general.php?page=void-woo-cart-restrictor | 3.25 | 31.55 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Void Woo Cart Restrictor: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲127 | 13.99 ▲0.65 | 5.57 ▲3.94 | 41.13 ▲0.97 |
Dashboard /wp-admin | 2,214 ▲14 | 4.87 ▼0.90 | 108.07 ▲5.69 | 40.02 ▼1.93 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.02 ▼0.02 | 40.01 ▲4.69 | 34.71 ▲3.28 |
Add New Post /wp-admin/post-new.php | 1,530 ▼4 | 18.14 ▼4.89 | 673.37 ▼35.24 | 50.89 ▼1.57 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.21 ▼0.03 | 101.92 ▼5.25 | 43.20 ▼4.80 |
Void Woo Cart Restrictor /wp-admin/options-general.php?page=void-woo-cart-restrictor | 817 | 2.02 | 24.80 | 24.69 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/void-woo-cart-restrictor/public/partials/void-woo-cart-restrictor-public-display.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Roles' not found in wp-content/plugins/void-woo-cart-restrictor/admin/partials/void-woo-cart-restrictor-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: category, product, visbility, restrict, user role...
void-woo-cart-restrictor/void-woo-cart-restrictor.php 92% from 13 tests
"Void Woo Cart Restrictor" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin363 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 144 | 609 | 323 |
JavaScript | 2 | 9 | 2 | 30 |
CSS | 2 | 1 | 8 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 27 | 81.82% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 5 | 15.15% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin