Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.54ms] Passed 4 tests
A check of server-side resources used by Vindi WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.21 ▼4.80 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.94 ▼1.59 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.83 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.20 ▼14.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.21 ▼0.44 |
Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Vindi WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.23 ▼1.15 | 1.79 ▲0.08 | 45.43 ▲7.48 |
Dashboard /wp-admin | 2,210 ▲22 | 5.80 ▲0.89 | 102.06 ▼4.46 | 40.55 ▼2.69 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.01 | 37.06 ▼6.11 | 37.44 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,425 ▼109 | 22.19 ▼1.08 | 557.24 ▼98.24 | 42.95 ▼7.21 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.32 ▲0.13 | 98.34 ▲3.50 | 37.66 ▼2.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/vindi-woocommerce-subscriptions/includes/class-vindi-wcs-disable-renewal.php
- > /wp-content/plugins/vindi-woocommerce-subscriptions/vindi-woocommerce-subscriptions.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/vindi-woocommerce-subscriptions/includes/class-vindi-dependencies.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Vindi_Base_Gateway' not found in wp-content/plugins/vindi-woocommerce-subscriptions/includes/class-vindi-bank-slip-gateway.php:3
- > PHP Fatal error
Uncaught Error: Class 'Vindi_Base_Gateway' not found in wp-content/plugins/vindi-woocommerce-subscriptions/includes/class-vindi-creditcard-gateway.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/vindi-woocommerce-subscriptions/includes/class-vindi-dependencies.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/vindi-woocommerce-subscriptions/includes/class-vindi-base-gateway.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_API' not found in wp-content/plugins/vindi-woocommerce-subscriptions/includes/class-vindi-settings.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/vindi-woocommerce-subscriptions/includes/class-vindi-dependencies.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WC_Product_Subscription' not found in wp-content/plugins/vindi-woocommerce-subscriptions/includes/class-vindi-product-subscription.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues 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 to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
vindi-woocommerce-subscriptions/vindi-woocommerce-subscriptions.php 92% from 13 tests
"Vindi WooCommerce" version 5.5.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
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
There were no executable files found in this plugin2,664 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 614 | 792 | 2,615 |
JavaScript | 2 | 9 | 0 | 49 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.92 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 179 | |
▷ Static methods | 12 | 6.70% |
▷ Public methods | 127 | 70.95% |
▷ Protected methods | 23 | 12.85% |
▷ Private methods | 29 | 16.20% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin