Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.21MB] [CPU: ▲3.75ms] Passed 4 tests
This is a short check of server-side resources used by HexCoupon – Create Smart & Advance Coupons For Your WooCommerce Store
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.67 ▲1.21 | 44.31 ▲2.67 |
Dashboard /wp-admin | 4.57 ▲1.23 | 56.43 ▼6.17 |
Posts /wp-admin/edit.php | 4.62 ▲1.27 | 55.27 ▲14.18 |
Add New Post /wp-admin/post-new.php | 7.09 ▲1.20 | 89.93 ▲7.58 |
Media Library /wp-admin/upload.php | 4.43 ▲1.20 | 42.59 ▲10.91 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 209 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for HexCoupon – Create Smart & Advance Coupons For Your WooCommerce Store
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲102 | 14.24 ▼0.10 | 1.51 ▼0.20 | 37.65 ▼5.81 |
Dashboard /wp-admin | 2,238 ▲57 | 5.52 ▼0.15 | 94.53 ▼14.45 | 77.30 ▲31.52 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 1.96 ▲0.01 | 39.88 ▲2.91 | 40.31 ▲3.08 |
Add New Post /wp-admin/post-new.php | 1,734 ▲202 | 22.60 ▼0.54 | 766.42 ▲155.95 | 60.77 ▼4.48 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.14 ▼0.04 | 99.27 ▲2.88 | 77.41 ▲37.04 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 61× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'CodesVault\\Howdyqb\\Api\\DropInterface' not found in wp-content/plugins/hex-coupon-for-woocommerce/vendor/codesvault/howdy-qb/src/Statement/Drop.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hex-coupon-for-woocommerce/vendor/codesvault/howdy-qb/tests/SelectTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Codesvault\\Validator\\Rules\\Lib\\Rule' not found in wp-content/plugins/hex-coupon-for-woocommerce/vendor/codesvault/validator/src/Rules/MaxLength.php:9
- > PHP Fatal error
Uncaught Error: Class 'CodesVault\\Howdyqb\\Statement\\Update' not found in wp-content/plugins/hex-coupon-for-woocommerce/vendor/codesvault/howdy-qb/tests/Statement/UpdateApi.php:8
- > PHP Fatal error
Uncaught Error: Class 'CodesVault\\Howdyqb\\Statement\\Select' not found in wp-content/plugins/hex-coupon-for-woocommerce/vendor/codesvault/howdy-qb/tests/Statement/SelectApi.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Codesvault\\Validator\\Rules\\Lib\\Rule' not found in wp-content/plugins/hex-coupon-for-woocommerce/vendor/codesvault/validator/src/Rules/Url.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Codesvault\\Validator\\Rules\\Lib\\Rule' not found in wp-content/plugins/hex-coupon-for-woocommerce/vendor/codesvault/validator/src/Rules/Mixedcase.php:8
- > PHP Fatal error
Uncaught Error: Class 'Kathamo\\Framework\\Lib\\Controller' not found in wp-content/plugins/hex-coupon-for-woocommerce/app/Controllers/AjaxApiController.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Codesvault\\Validator\\Rules\\Lib\\Rule' not found in wp-content/plugins/hex-coupon-for-woocommerce/vendor/codesvault/validator/src/Rules/MinLength.php:9
- > PHP Fatal error
Trait 'HexCoupon\\App\\Core\\Lib\\SingleTon' not found in wp-content/plugins/hex-coupon-for-woocommerce/app/Core/WooCommerce/CouponPaymentandShipping.php on line 8
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #15 (From sharable coupon tab users get the url that they want to share with the customers and customers can apply the coupon just by visiting this url.) image not found
hex-coupon-for-woocommerce/hex-coupon-for-woocommerce.php Passed 13 tests
The entry point to "HexCoupon – Create Smart & Advance Coupons For Your WooCommerce Store" version 1.0.8 is a PHP file that has certain tags in its header comment area
54 characters long description:
Extend coupon functionality in your Woocommerce store.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected13,910 lines of code in 193 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 2,063 | 3,016 | 8,976 |
Sass | 30 | 118 | 29 | 2,050 |
JavaScript | 7 | 233 | 293 | 768 |
CSS | 11 | 87 | 16 | 597 |
JSX | 16 | 72 | 2 | 526 |
Markdown | 5 | 140 | 0 | 489 |
JSON | 7 | 0 | 0 | 450 |
HTML | 2 | 1 | 0 | 27 |
SVG | 4 | 0 | 0 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 7 | |
Traits | 2 | |
Classes | 89 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 89 | 100.00% |
▷ Final classes | 2 | 2.25% |
Methods | 641 | |
▷ Static methods | 61 | 9.52% |
▷ Public methods | 484 | 75.51% |
▷ Protected methods | 34 | 5.30% |
▷ Private methods | 123 | 19.19% |
Functions | 18 | |
▷ Named functions | 11 | 61.11% |
▷ Anonymous functions | 7 | 38.89% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/img/gift2.png | 4.76KB | 2.54KB | ▼ 46.70% |
src/logo.png | 6.03KB | 3.14KB | ▼ 47.82% |
src/img/gift.png | 5.77KB | 2.48KB | ▼ 57.00% |
assets/images/hexcoupon-notice-icon.png | 1.35KB | 0.79KB | ▼ 41.92% |
src/img/logo.png | 3.38KB | 1.68KB | ▼ 50.36% |