Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.13ms] Passed 4 tests
Analyzing server-side resources used by Manage Discount in Admin Orders for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.06 ▲0.44 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.93 ▼17.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.08 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.74 ▼4.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.57 ▲3.50 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Manage Discount in Admin Orders for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.38 ▲0.10 | 1.97 ▲0.06 | 43.60 ▼0.24 |
Dashboard /wp-admin | 2,219 ▲48 | 5.66 ▲0.12 | 93.99 ▲1.13 | 42.93 ▼0.50 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.01 ▼0.02 | 43.09 ▲7.72 | 39.71 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.08 ▼0.39 | 620.24 ▼66.28 | 73.62 ▲16.13 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.27 ▲0.04 | 106.56 ▲4.30 | 45.02 ▼2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/manage-discount-in-admin-orders-for-woocommerce/admin/partials/manage-discount-in-admin-orders-for-woocommerce-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: item discounts, woocommerce, orders discounts, e-commerce, product discounts...
manage-discount-in-admin-orders-for-woocommerce/manage-discount-in-admin-orders-for-woocommerce.php Passed 13 tests
This is the main PHP file of "Manage Discount in Admin Orders for WooCommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
This plugin allows you to manage discounts in WooCommerce orders placed in the backoffice.
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
Everything looks great! No dangerous files found in this plugin276 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 120 | 466 | 225 |
JavaScript | 1 | 24 | 0 | 51 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
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
No PNG files were detected