Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.74ms] Passed 4 tests
A check of server-side resources used by Promotion Products in Cart for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.90 ▲6.02 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.95 ▲1.44 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.12 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.26 ▼2.25 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 31.96 ▼1.49 |
Promotion Products in Cart /wp-admin/admin.php?page=promotion-product-cart | 3.31 | 31.33 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Promotion Products in Cart for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.30 ▼0.77 | 1.78 ▼0.02 | 43.32 ▲1.64 |
Dashboard /wp-admin | 2,200 ▲11 | 5.83 ▲0.94 | 101.85 ▼9.95 | 40.61 ▲0.59 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.03 | 34.86 ▲0.35 | 34.53 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.12 ▼0.10 | 583.24 ▼70.71 | 52.31 ▼17.45 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.05 | 94.86 ▼6.46 | 41.35 ▼3.40 |
Promotion Products in Cart /wp-admin/admin.php?page=promotion-product-cart | 1,009 | 2.07 | 22.46 | 23.94 |
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
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=promotion-product-cart
- > Notice in wp-includes/class-walker-category-dropdown.php+76
Trying to get property 'term_id' of non-object
- > GET request to /wp-admin/admin.php?page=promotion-product-cart
- > Notice in wp-includes/class-walker-category-dropdown.php+65
Trying to get property 'name' of non-object
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/promotion-products-in-cart-for-woocommerce/admin/partials/promotion-product-cart-setting-page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in promotion-products-in-cart-for-woocommerce/assets to your readme.txt
promotion-products-in-cart-for-woocommerce/promotion-product-cart.php 85% from 13 tests
The entry point to "Promotion Products in Cart for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("promotion-products-in-cart-for-woocommerce.php" instead of "promotion-product-cart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected363 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 117 | 476 | 344 |
JavaScript | 1 | 3 | 27 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 2.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin