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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲1.41ms] Passed 4 tests
Server-side resources used by Advanced Coupon Conditions for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.69 ▲3.59 |
Dashboard /wp-admin | 3.41 ▲0.10 | 44.54 ▼2.79 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.62 ▲4.56 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 90.47 ▲3.50 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.23 ▲1.35 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Advanced Coupon Conditions for Woocommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 13.62 ▼0.73 | 5.42 ▲3.71 | 42.03 ▼7.78 |
Dashboard /wp-admin | 2,224 ▲36 | 4.86 ▼0.06 | 108.21 ▲3.78 | 41.38 ▼3.18 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.05 ▲0.00 | 43.30 ▲4.44 | 37.59 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 23.31 ▼0.06 | 605.83 ▼1.55 | 43.83 ▼10.71 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.20 ▲0.02 | 93.53 ▼5.15 | 40.16 ▼3.89 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-coupon-conditions-for-woocommerce/public/partials/dc-accfw-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-coupon-conditions-for-woocommerce/admin/partials/dc-accfw-admin-display.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: There are too many tags (27 tag instead of maximum 10)
advanced-coupon-conditions-for-woocommerce/dc-accfw.php 85% from 13 tests
This is the main PHP file of "Advanced Coupon Conditions for Woocommerce" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-coupon-conditions-for-woocommerce.php" instead of "dc-accfw.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin465 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 148 | 589 | 379 |
PO File | 1 | 15 | 16 | 74 |
CSS | 2 | 1 | 8 | 6 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 13 | 36.11% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
No PNG images were found in this plugin