Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼13.82ms] Passed 4 tests
Analyzing server-side resources used by Nth Order Discount for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.71 ▼5.54 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.84 ▼18.86 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.28 ▼4.46 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.95 ▼26.43 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.89 ▲1.08 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Nth Order Discount for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.35 ▼0.01 | 1.91 ▲0.23 | 43.17 ▲3.15 |
Dashboard /wp-admin | 2,201 ▲21 | 5.70 ▲0.17 | 84.53 ▼1.34 | 39.31 ▼5.16 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.00 ▲0.03 | 38.20 ▼2.57 | 39.13 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,538 ▲7 | 18.15 ▼4.81 | 639.86 ▼99.48 | 66.80 ▲1.55 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.23 ▲0.06 | 97.65 ▼1.13 | 44.01 ▼7.60 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nth-order-discount-for-woocommerce/nth-order-discount-for-woocommerce.php:53
- > PHP Fatal error
Trait 'dimadin\\WP\\Plugin\\WC\thOrderDiscount\\Singleton' not found in wp-content/plugins/nth-order-discount-for-woocommerce/inc/Main.php on line 23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: woocommerce
nth-order-discount-for-woocommerce/nth-order-discount-for-woocommerce.php 85% from 13 tests
The principal PHP file in "Nth Order Discount for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.1")
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
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 detected331 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 82 | 321 | 292 |
XML | 1 | 5 | 8 | 39 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 22 | 95.65% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
There are no PNG files in this plugin