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.06MB] [CPU: ▼5.06ms] Passed 4 tests
Analyzing server-side resources used by Loyalty Discounts for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.06 | 42.74 ▼10.56 |
Dashboard /wp-admin | 3.63 ▲0.07 | 49.13 ▼4.57 |
Posts /wp-admin/edit.php | 3.74 ▲0.06 | 52.97 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.08 | 98.76 ▼1.83 |
Media Library /wp-admin/upload.php | 3.55 ▲0.06 | 38.93 ▼3.26 |
Woo Loyalty Discounts /wp-admin/options-general.php?page=woo_loyalty_discounts | 3.52 | 35.56 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Loyalty Discounts for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.22 ▼0.34 | 1.98 ▼0.34 | 40.81 ▼11.25 |
Dashboard /wp-admin | 2,206 ▲26 | 5.65 ▼0.08 | 95.33 ▼7.43 | 41.91 ▼1.84 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.09 ▲0.10 | 40.76 ▲4.99 | 35.10 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,533 ▼12 | 23.48 ▲0.15 | 630.40 ▼65.96 | 48.38 ▼8.22 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.28 ▲0.07 | 100.53 ▼20.82 | 44.12 ▼6.67 |
Woo Loyalty Discounts /wp-admin/options-general.php?page=woo_loyalty_discounts | 1,396 | 2.10 | 23.45 | 52.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loyalty-discounts-for-woocommerce/inc/add_discount_total_items_ordered.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loyalty-discounts-for-woocommerce/inc/add_discount_total_spent.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loyalty-discounts-for-woocommerce/admin/admin-options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/loyalty-discounts-for-woocommerce/woo-loyality-discounts.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loyalty-discounts-for-woocommerce/inc/add_discount_total_cart.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loyalty-discounts-for-woocommerce/wld-shortcode.php:3
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: rules, discounts, rewards, loyalty, woocommerce
loyalty-discounts-for-woocommerce/woo-loyality-discounts.php 85% from 13 tests
"Loyalty Discounts for WooCommerce" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.4")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("loyalty-discounts-for-woocommerce.php" instead of "woo-loyality-discounts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin782 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 151 | 93 | 678 |
CSS | 2 | 3 | 0 | 62 |
JavaScript | 1 | 0 | 3 | 42 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
No PNG files were detected