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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.63ms] Passed 4 tests
A check of server-side resources used by Add coupon by link / URL coupons / Add coupon by Qr Code for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.23 ▼7.37 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.74 ▼5.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.11 ▼4.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.37 ▼5.55 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.71 ▲0.17 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add coupon by link / URL coupons / Add coupon by Qr Code for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.14 ▼0.10 | 1.68 ▼0.08 | 37.51 ▼5.74 |
Dashboard /wp-admin | 2,204 ▲24 | 5.59 ▼0.05 | 98.91 ▼2.69 | 42.04 ▲0.02 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.00 | 39.66 ▼1.04 | 36.77 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 23.35 ▲0.63 | 648.62 ▲32.56 | 50.52 ▼8.07 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▼0.09 | 97.34 ▼1.56 | 41.36 ▼0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/add-coupon-by-link-for-woocommerce/includes/pisol.class.form.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/add-coupon-by-link-for-woocommerce/admin/qr-code.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-coupon-by-link-for-woocommerce/public/auto-apply-product-coupon.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-coupon-by-link-for-woocommerce/admin/class-category-option.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-coupon-by-link-for-woocommerce/includes/includes.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/add-coupon-by-link-for-woocommerce/admin/option.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/add-coupon-by-link-for-woocommerce/admin/class-product-option.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-coupon-by-link-for-woocommerce/admin/coupon-options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function pisol_acblw_get_option() in wp-content/plugins/add-coupon-by-link-for-woocommerce/public/session.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-coupon-by-link-for-woocommerce/public/notice.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/add-coupon-by-link-for-woocommerce/admin/plugins.php:92
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #6 in add-coupon-by-link-for-woocommerce/assets to your readme.txt
- Donate link: Please fix this invalid URI: "piwebsolution.com"
add-coupon-by-link-for-woocommerce/add-coupon-by-link-woocommerce.php 85% from 13 tests
The main file in "Add coupon by link / URL coupons / Add coupon by Qr Code for Woocommerce" v. 1.1.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("add-coupon-by-link-for-woocommerce.php" instead of "add-coupon-by-link-woocommerce.php")
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
Everything looks great! No dangerous files found in this plugin10,983 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2,022 | 18 | 9,259 |
PHP | 31 | 393 | 428 | 1,218 |
SVG | 3 | 2 | 2 | 444 |
JavaScript | 4 | 11 | 60 | 62 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 6 | 6.38% |
▷ Public methods | 89 | 94.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.32% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin