Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼11.45ms] Passed 4 tests
A check of server-side resources used by Coupons by Categories and Tags for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.02 ▼6.62 |
Dashboard /wp-admin | 3.35 ▲0.01 | 46.85 ▼11.39 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 39.89 ▼7.82 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 77.11 ▼19.95 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 38.23 ▲1.41 |
Coupon Categories /wp-admin/edit-tags.php?taxonomy=coupon_category | 3.27 | 32.23 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Coupons by Categories and Tags for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲39 | 14.47 ▲0.19 | 1.84 ▼0.36 | 40.91 ▼10.34 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.04 | 84.60 ▼15.64 | 39.36 ▼3.77 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.98 ▼0.02 | 36.76 ▼0.80 | 32.03 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,527 ▲1 | 22.99 ▼0.07 | 614.74 ▼37.67 | 68.85 ▼0.51 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.18 ▼0.00 | 99.28 ▼3.34 | 44.88 ▼0.47 |
Coupon Categories /wp-admin/edit-tags.php?taxonomy=coupon_category | 1,273 | 2.12 | 29.97 | 29.47 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-coupons-by-categories-and-tags/woocommerce-coupons-category-tag.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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: organize coupons, coupon tag, group woocommerce coupons, coupon category, coupon taxonomy
woo-coupons-by-categories-and-tags/woocommerce-coupons-category-tag.php 92% from 13 tests
The primary PHP file in "Coupons by Categories and Tags for WooCommerce" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-coupons-by-categories-and-tags.php" instead of "woocommerce-coupons-category-tag.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected109 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 9 | 109 |
PHP code Passed 2 tests
A short 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.28 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin