Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼289.55ms] Passed 4 tests
An overview of server-side resources used by Advanced Coupon Conditions for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 56.46 ▲7.45 |
Dashboard /wp-admin | 3.52 ▲0.11 | 39.16 ▲5.10 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 38.78 ▲2.46 |
Add New Post /wp-admin/post-new.php | 6.99 ▲0.01 | 93.36 ▼1,167.48 |
Media Library /wp-admin/upload.php | 3.40 ▲0.10 | 26.80 ▲1.73 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Coupon Conditions for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,916 ▲172 | 16.26 ▲0.62 | 9.42 ▲3.02 | 2.25 ▼0.19 |
Dashboard /wp-admin | 2,907 ▲46 | 6.18 ▼0.01 | 117.46 ▼20.83 | 165.55 ▲3.16 |
Posts /wp-admin/edit.php | 2,708 ▲14 | 3.36 ▲0.00 | 63.41 ▼0.58 | 134.91 ▼9.37 |
Add New Post /wp-admin/post-new.php | 1,786 ▲69 | 21.63 ▼0.27 | 448.21 ▼23.39 | 159.24 ▼5.29 |
Media Library /wp-admin/upload.php | 1,712 ▲14 | 5.55 ▲0.02 | 146.72 ▲3.55 | 191.82 ▼3.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 27 tag instead of maximum 10
advanced-coupon-conditions-for-woocommerce/dc-accfw.php 85% from 13 tests
The main file in "Advanced Coupon Conditions for Woocommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- 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: 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
No dangerous file extensions were detected465 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
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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 files were detected