Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/discount-feed-woocommerce/lib/class-discountfeedwoocommerce.php+450
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.23MB] [CPU: ▼142.38ms] Passed 4 tests
A check of server-side resources used by Discount Feed WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▲0.30 | 35.15 ▲11.35 |
Dashboard /wp-admin | 3.25 ▲0.19 | 46.26 ▼1.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 44.49 ▲2.67 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.28 | 88.16 ▼567.89 |
Media Library /wp-admin/upload.php | 3.19 ▲0.19 | 35.22 ▼2.53 |
Discount Feeds /wp-admin/edit.php?post_type=dcfeedwoo_product | 3.23 | 35.76 |
Add New /wp-admin/post-new.php?post_type=dcfeedwoo_product | 5.71 | 80.19 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 3 new options
New WordPress options |
---|
discount_feed_woocommerce_widget |
widget_discountfeedwoocommercewidgetitem |
discount_feed_woocommerce |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Discount Feed WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲146 | 16.36 ▲0.78 | 9.78 ▲0.48 | 52.56 ▲1.77 |
Dashboard /wp-admin | 3,008 ▲77 | 5.97 ▲0.04 | 136.10 ▼4.09 | 121.77 ▼1.84 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.71 ▼0.02 | 63.36 ▼3.33 | 90.52 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,695 ▼177 | 18.81 ▼0.42 | 363.22 ▼28.65 | 107.64 ▼0.79 |
Media Library /wp-admin/upload.php | 1,845 ▲38 | 5.03 ▲0.00 | 148.52 ▲0.07 | 115.30 ▼1.74 |
Discount Feeds /wp-admin/edit.php?post_type=dcfeedwoo_product | 1,453 | 2.64 | 62.32 | 78.51 |
Add New /wp-admin/post-new.php?post_type=dcfeedwoo_product | 5,678 | 16.61 | 426.52 | 108.96 |
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
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_discountfeedwoocommercewidgetitem
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/discount-feed-woocommerce/lib/class-discountfeedwoocommerce.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/discount-feed-woocommerce/lib/class-discountfeedwoocommerceregist.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/discount-feed-woocommerce/lib/class-discountfeedwoocommercewidgetitem.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/discount-feed-woocommerce/lib/class-discountfeedwoocommerceregist.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/discount-feed-woocommerce/lib/class-discountfeedwoocommerceadmin.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: feed, products, woocommerce, sale
discount-feed-woocommerce/discountfeedwoocommerce.php 85% from 13 tests
The principal PHP file in "Discount Feed WooCommerce" v. 1.13 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "3.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("discount-feed-woocommerce.php" instead of "discountfeedwoocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin747 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 175 | 285 | 747 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 18.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 74.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 25.93% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin