Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/voucherme-for-woocommerce/woocommerce-voucherme.php+79
Undefined property: WC_VoucherMe::$banned_table_name
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.29ms] Passed 4 tests
An overview of server-side resources used by VoucherMe for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 55.02 ▲13.77 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.11 ▼5.19 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.20 ▼8.30 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 104.38 ▼11.79 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.96 ▲4.13 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_ |
wp_wc_voucherme_attemtps |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VoucherMe for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.27 ▼0.10 | 1.85 ▲0.18 | 44.29 ▲4.40 |
Dashboard /wp-admin | 2,206 ▼0 | 4.89 ▼1.00 | 106.08 ▼2.24 | 38.14 ▼1.32 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.03 ▲0.01 | 43.28 ▲0.52 | 36.77 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,376 ▼158 | 17.59 ▼5.44 | 691.81 ▲0.08 | 47.22 ▼2.87 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.06 | 103.56 ▲0.77 | 41.35 ▼3.78 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_
- wp_wc_voucherme_attemtps
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: gift cards, gift certificates, gift vouchers, vouchers, gifts
voucherme-for-woocommerce/woocommerce-voucherme.php 77% from 13 tests
The entry point to "VoucherMe for WooCommerce" version 1.6.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("voucherme-for-woocommerce.php" instead of "woocommerce-voucherme.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected479 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 76 | 14 | 349 |
JavaScript | 2 | 11 | 0 | 93 |
CSS | 2 | 0 | 0 | 37 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.68% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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 are no PNG files in this plugin