Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.27MB] [CPU: ▼21.05ms] Passed 4 tests
Analyzing server-side resources used by Customer Loyalty for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.55 ▼9.25 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.66 ▼3.85 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 42.06 ▼11.39 |
Add New Post /wp-admin/post-new.php | 4.69 ▼1.20 | 41.88 ▼59.72 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.54 ▼1.72 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
clwc_loyalty_points |
recovery_mode_email_last_sent |
can_compress_scripts |
widget_theysaidso_widget |
clwc_rewards_card |
Browser metrics Passed 4 tests
A check of browser resources used by Customer Loyalty for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,650 ▼1,136 | 3.60 ▼10.68 | 1.07 ▼1.03 | 10.04 ▼38.32 |
Dashboard /wp-admin | 1,271 ▼909 | 1.71 ▼3.96 | 24.25 ▼73.37 | 35.89 ▼10.64 |
Posts /wp-admin/edit.php | 1,113 ▼984 | 1.68 ▼0.29 | 10.80 ▼27.62 | 27.95 ▼4.79 |
Add New Post /wp-admin/post-new.php | 45 ▼1,481 | 0.42 ▼23.08 | 0.09 ▼711.01 | 11.97 ▼42.37 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.23 ▲0.10 | 106.77 ▼9.94 | 51.54 ▲3.38 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- clwc_loyalty_points
- clwc_rewards_card
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/customer-loyalty-for-woocommerce/public/partials/clwc-public-display.php
- > /wp-content/plugins/customer-loyalty-for-woocommerce/admin/partials/clwc-admin-display.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/customer-loyalty-for-woocommerce/admin/clwc-admin-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/customer-loyalty-for-woocommerce/customer-loyalty-for-woocommerce.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/customer-loyalty-for-woocommerce/admin/class-clwc-osa.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/customer-loyalty-for-woocommerce/uninstall.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customer-loyalty-for-woocommerce/admin/clwc-woocommerce-account-tab.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/customer-loyalty-for-woocommerce/includes/clwc-helper-functions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/customer-loyalty-for-woocommerce/admin/clwc-woocommerce-endpoint-shortcode.php:292
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/customer-loyalty-for-woocommerce/admin/clwc-woocommerce-settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/customer-loyalty-for-woocommerce/admin/clwc-earning-loyalty-points.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customer-loyalty-for-woocommerce/admin/clwc-user-fields.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
5 plugin tags: loyalty, gift, customer, woocommerce, rewards
customer-loyalty-for-woocommerce/customer-loyalty-for-woocommerce.php Passed 13 tests
The main PHP file in "Customer Loyalty for WooCommerce" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
89 characters long description:
Increase customer loyalty by rewarding your customers for their repeat purchase behavior.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,942 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 489 | 1,207 | 1,363 |
PO File | 3 | 193 | 212 | 514 |
CSS | 3 | 13 | 7 | 38 |
Markdown | 1 | 13 | 0 | 21 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 50 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.09% |
Functions | 37 | |
▷ Named functions | 35 | 94.59% |
▷ Anonymous functions | 2 | 5.41% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected