Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.74MB] [CPU: ▼48.45ms] Passed 4 tests
Server-side resources used by Vindi WooCommerce 2
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.22 | 9.91 ▼32.18 |
Dashboard /wp-admin | 2.26 ▼1.04 | 9.61 ▼39.05 |
Posts /wp-admin/edit.php | 2.26 ▼1.09 | 9.23 ▼37.49 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.62 | 10.28 ▼85.08 |
Media Library /wp-admin/upload.php | 2.26 ▼0.96 | 7.14 ▼26.79 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Vindi WooCommerce 2
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,032 ▲297 | 13.75 ▼0.63 | 8.59 ▲6.16 | 43.29 ▼0.06 |
Dashboard /wp-admin | 2,262 ▲74 | 5.89 ▲0.08 | 117.56 ▲2.35 | 46.80 ▼0.74 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.20 ▲0.19 | 37.95 ▼2.57 | 43.62 ▲6.26 |
Add New Post /wp-admin/post-new.php | 1,419 ▼115 | 20.65 ▼2.50 | 575.40 ▼47.80 | 36.76 ▼6.25 |
Media Library /wp-admin/upload.php | 1,453 ▲65 | 4.29 ▲0.11 | 99.11 ▲1.43 | 43.19 ▲0.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-includes/plugin.php+1001
Undefined offset: 0
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/vindi-payment-gateway/src/validators/Dependencies.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/vindi-payment-gateway/src/validators/Dependencies.php on line 6
- > 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-payment-gateway/src/validators/Dependencies.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_API' not found in wp-content/plugins/vindi-payment-gateway/src/includes/admin/Settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function VindiPaymentGateways\\plugin_dir_path() in wp-content/plugins/vindi-payment-gateway/src/VindiWoocommerce.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vindi-payment-gateway/src/utils/RedirectCheckout.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/vindi-payment-gateway/src/utils/DefinitionVariables.php:11
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Tags: You are using too many tags: 14 tag instead of maximum 10
vindi-payment-gateway/vindi.php 85% from 13 tests
The main file in "Vindi WooCommerce 2" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path should use only dashes and lowercase characters ("./src/languages/")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vindi-payment-gateway.php" instead of "vindi.php")
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
No dangerous file extensions were detected5,726 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 1,094 | 1,397 | 4,446 |
Sass | 2 | 72 | 6 | 414 |
JavaScript | 7 | 93 | 16 | 413 |
CSS | 2 | 15 | 6 | 338 |
SVG | 24 | 1 | 1 | 115 |
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.40 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 2 | 7.41% |
▷ Concrete classes | 25 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 252 | |
▷ Static methods | 31 | 12.30% |
▷ Public methods | 171 | 67.86% |
▷ Protected methods | 33 | 13.10% |
▷ Private methods | 48 | 19.05% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 17 | |
▷ Global constants | 12 | 70.59% |
▷ Class constants | 5 | 29.41% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/assets/images/icon-2.png | 2.68KB | 1.55KB | ▼ 42.16% |