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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▼7.37ms] Passed 4 tests
Analyzing server-side resources used by J2T Points and Rewards for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 39.95 ▼0.62 |
Dashboard /wp-admin | 3.76 ▲0.45 | 48.34 ▲0.34 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 46.98 ▼3.58 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 83.34 ▼22.45 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 34.04 ▼2.83 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by J2T Points and Rewards for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.20 | 1.75 ▼0.29 | 44.05 ▼5.13 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲1.03 | 114.51 ▲9.74 | 43.29 ▼0.17 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▼0.05 | 34.52 ▼9.63 | 33.34 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,524 ▼18 | 23.11 ▲4.77 | 673.28 ▼17.35 | 58.26 ▲1.38 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.08 | 97.91 ▼8.68 | 44.88 ▼0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: referral_min_order in wp-content/plugins/j2t-reward-points-for-woocommerce/templates/frontend/wc-account-referral.php on line 39
- > PHP Notice
Undefined variable: referral_point_value in wp-content/plugins/j2t-reward-points-for-woocommerce/templates/frontend/wc-account-referral.php on line 21
- > PHP Notice
Undefined variable: referral_point_value in wp-content/plugins/j2t-reward-points-for-woocommerce/templates/frontend/wc-account-referral.php on line 13
- > PHP Notice
Undefined variable: referral_child_point_value in wp-content/plugins/j2t-reward-points-for-woocommerce/templates/frontend/wc-account-referral.php on line 34
- > PHP Notice
Undefined variable: referral_child_point_value in wp-content/plugins/j2t-reward-points-for-woocommerce/templates/frontend/wc-account-referral.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/j2t-reward-points-for-woocommerce/RewardEmails.php:14
- > PHP Notice
Undefined variable: referral_child_point_value in wp-content/plugins/j2t-reward-points-for-woocommerce/templates/frontend/wc-account-referral.php on line 26
- > PHP Notice
Undefined variable: referrer_registration_points in wp-content/plugins/j2t-reward-points-for-woocommerce/templates/frontend/wc-account-referral.php on line 8
- > PHP Notice
Undefined variable: referral_registration_points in wp-content/plugins/j2t-reward-points-for-woocommerce/templates/frontend/wc-account-referral.php on line 3
- > PHP Notice
Undefined variable: referral_permanent in wp-content/plugins/j2t-reward-points-for-woocommerce/templates/frontend/wc-account-referral.php on line 46
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in j2t-reward-points-for-woocommerce/assets to your readme.txt
j2t-reward-points-for-woocommerce/j2t-rewardpoints-woocommerce.php 85% from 13 tests
The primary PHP file in "J2T Points and Rewards for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("j2t-reward-points-for-woocommerce.php" instead of "j2t-rewardpoints-woocommerce.php")
- Description: The description should be shorter than 140 characters (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected21,224 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 17,502 |
PHP | 12 | 558 | 315 | 3,128 |
JavaScript | 6 | 66 | 70 | 342 |
PO File | 1 | 87 | 92 | 206 |
CSS | 2 | 9 | 1 | 36 |
Markdown | 1 | 7 | 0 | 10 |
Sass | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 42.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 231.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 103 | 66.88% |
▷ Public methods | 149 | 96.75% |
▷ Protected methods | 2 | 1.30% |
▷ Private methods | 3 | 1.95% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 1 | 4.55% |
▷ Class constants | 21 | 95.45% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rewardpoints.png | 4.69KB | 0.46KB | ▼ 90.24% |