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 gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼0.30ms] Passed 4 tests
A check of server-side resources used by VaocherApp - Gift cards/vouchers system for WordPress & WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 40.93 ▲2.01 |
Dashboard /wp-admin | 3.59 ▲0.29 | 48.13 ▲0.05 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 52.72 ▲5.46 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 94.38 ▼6.51 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.95 ▲3.23 |
VaocherApp /wp-admin/options-general.php?page=vaocher-app-settings | 3.45 | 33.45 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
VaocherApp - Gift cards/vouchers system for WordPress & WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.35 ▲0.00 | 1.74 ▲0.17 | 39.87 ▼0.15 |
Dashboard /wp-admin | 2,213 ▲33 | 5.62 ▼0.02 | 89.81 ▲2.18 | 44.18 ▲0.62 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.05 ▲0.02 | 40.91 ▲2.76 | 36.44 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.10 ▲0.08 | 598.44 ▼126.43 | 52.74 ▼1.58 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.20 ▼0.09 | 94.98 ▼11.27 | 41.49 ▼3.02 |
VaocherApp /wp-admin/options-general.php?page=vaocher-app-settings | 867 | 1.79 | 23.80 | 30.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/vaocher-app/views/front/cart_login_required_warning.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/vaocher-app/views/front/cart_voucher_input.php:16
- > PHP Fatal error
Uncaught Error: Class 'VaocherAppModelAbstract' not found in wp-content/plugins/vaocher-app/models/VaocherAppRedeemed.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/vaocher-app/views/partials/diagnostics_output.php:11
- > PHP Fatal error
Uncaught Error: Class 'VaocherAppView' not found in wp-content/plugins/vaocher-app/views/back/connecting.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/vaocher-app/views/partials/onboarding_warning.php:9
- > PHP Fatal error
Uncaught Error: Class 'VaocherAppUrl' not found in wp-content/plugins/vaocher-app/views/partials/va_logo.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/vaocher-app/views/partials/woocommerce_settings.php:14
- > PHP Fatal error
Uncaught Error: Class 'VaocherAppView' not found in wp-content/plugins/vaocher-app/views/back/connected.php:15
- > PHP Fatal error
Uncaught Error: Class 'VaocherAppModelAbstract' not found in wp-content/plugins/vaocher-app/models/VaocherAppVoucher.php:12
- > PHP Fatal error
Uncaught Error: Class 'VaocherAppModelAbstract' not found in wp-content/plugins/vaocher-app/models/VaocherAppAccount.php:9
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: gift certificates, woocommerce, gift cards, gift vouchers, woo commerce
vaocher-app/vaocher-app.php Passed 13 tests
Analyzing the main PHP file in "VaocherApp - Gift cards/vouchers system for WordPress & WooCommerce" version 1.0.0
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,734 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 333 | 498 | 1,728 |
JSON | 1 | 0 | 0 | 4 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 63 | 70.00% |
▷ Public methods | 78 | 86.67% |
▷ Protected methods | 1 | 1.11% |
▷ Private methods | 11 | 12.22% |
Functions | 21 | |
▷ Named functions | 12 | 57.14% |
▷ Anonymous functions | 9 | 42.86% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 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.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 120.09KB | 37.78KB | ▼ 68.54% |