Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.27ms] Passed 4 tests
This is a short check of server-side resources used by Points and Rewards for WooCommerce - Create Loyalty Programs, Reward Customer Purchases, Referral Points, User Badges, and Gamification
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.83 ▼7.87 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.44 ▼18.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.87 ▲2.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.61 ▼12.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 34.89 ▲2.52 |
Server storage [IO: ▲9.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Points and Rewards for WooCommerce - Create Loyalty Programs, Reward Customer Purchases, Referral Points, User Badges, and Gamification
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.47 | 1.77 ▲0.08 | 39.84 ▼3.78 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▲0.05 | 92.40 ▼0.66 | 37.76 ▼3.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.07 | 39.80 ▲0.55 | 35.42 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.95 ▲0.76 | 590.06 ▼19.77 | 49.30 ▼9.30 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.03 | 96.38 ▼1.58 | 40.34 ▲0.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/points-and-rewards-for-woocommerce/admin/index.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/points-and-rewards-for-woocommerce/admin/partials/index.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/points-and-rewards-for-woocommerce/includes/index.php:10
- > PHP Notice
Undefined variable: user_ID in wp-content/plugins/points-and-rewards-for-woocommerce/public/partials/wps-wpr-points-log-template.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/points-and-rewards-for-woocommerce/index.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/points-and-rewards-for-woocommerce/public/index.php:10
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: badges, rewards, points rewards, gamification, loyalty...
points-and-rewards-for-woocommerce/points-rewards-for-woocommerce.php 85% from 13 tests
The entry point to "Points and Rewards for WooCommerce - Create Loyalty Programs, Reward Customer Purchases, Referral Points, User Badges, and Gamification" version 2.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("points-and-rewards-for-woocommerce.php" instead of "points-rewards-for-woocommerce.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 404 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin19,547 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,396 | 3,045 | 12,150 |
JavaScript | 13 | 544 | 703 | 2,924 |
CSS | 6 | 469 | 53 | 2,841 |
PO File | 1 | 678 | 1,064 | 1,526 |
SVG | 11 | 1 | 0 | 72 |
XML | 1 | 0 | 0 | 34 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 130.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 765.00 |
Average method complexity | 6.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 229 | |
▷ Static methods | 4 | 1.75% |
▷ Public methods | 220 | 96.07% |
▷ Protected methods | 2 | 0.87% |
▷ Private methods | 7 | 3.06% |
Functions | 44 | |
▷ Named functions | 42 | 95.45% |
▷ Anonymous functions | 2 | 4.55% |
Constants | 5 | |
▷ Global constants | 5 | 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
34 PNG files occupy 0.31MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/coins.png | 1.51KB | 1.58KB | 0.00% |
public/images/500X500.png | 1.50KB | 1.44KB | ▼ 4.22% |
admin/images/Reward-Points-for-Different-Actions.png | 3.35KB | 1.76KB | ▼ 47.36% |
admin/images/Customer-Notification-Feature.png | 4.05KB | 1.92KB | ▼ 52.64% |
public/images/documentation.png | 1.48KB | 1.58KB | 0.00% |