Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/reward-points-for-woocommerce/public/class-phoen-rewpts-public.php+81
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.96MB] [CPU: ▼43.39ms] Passed 4 tests
An overview of server-side resources used by Reward Points for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▼0.44 | 16.53 ▼26.72 |
Dashboard /wp-admin | 3.05 ▼0.25 | 16.16 ▼33.11 |
Posts /wp-admin/edit.php | 3.05 ▼0.30 | 18.54 ▼30.21 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.83 | 17.46 ▼83.50 |
Media Library /wp-admin/upload.php | 3.05 ▼0.17 | 19.45 ▼15.57 |
Reward Points /wp-admin/admin.php?page=Phoeniixx_reward_settings | 3.05 | 20.66 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 95 new files
Database: no new tables, 11 new options
New WordPress options |
---|
phoe_set_point_value |
widget_recent-posts |
phoen_rewpts_custom_btn_styling |
db_upgraded |
phoe_rewpts_page_settings_value |
widget_recent-comments |
phoen_reward_point_plugin_acivation_date |
can_compress_scripts |
phoen_rewpts_notification_settings |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Reward Points for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲206 | 13.78 ▼0.60 | 7.02 ▲5.34 | 44.97 ▼5.57 |
Dashboard /wp-admin | 2,227 ▲72 | 5.09 ▼0.60 | 111.98 ▲11.21 | 43.78 ▲4.80 |
Posts /wp-admin/edit.php | 2,112 ▲26 | 2.29 ▲0.33 | 42.93 ▲6.82 | 37.45 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,531 ▲7 | 23.38 ▲0.27 | 589.11 ▼23.18 | 31.42 ▼21.39 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.48 ▲0.28 | 97.70 ▲1.02 | 45.05 ▲3.71 |
Reward Points /wp-admin/admin.php?page=Phoeniixx_reward_settings | 944 | 1.99 | 28.65 | 27.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/reward-points-for-woocommerce/public/class-phoen-rewpts-public.php+744
Undefined offset: 1
- The uninstall procedure has failed, leaving 11 options in the database
- widget_recent-comments
- phoen_rewpts_custom_btn_styling
- phoen_rewpts_notification_settings
- phoen_reward_point_plugin_acivation_date
- widget_recent-posts
- phoe_set_point_value
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- phoe_rewpts_page_settings_value
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=Phoeniixx_reward_settings
- > Notice in wp-content/plugins/reward-points-for-woocommerce/public/class-phoen-rewpts-public.php+744
Undefined offset: 1
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
Please take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/reward-points-for-woocommerce/public/partials/phoen-rewpts-public-display.php
- > /wp-content/plugins/reward-points-for-woocommerce/admin/partials/phoen-rewpts-admin-display.php
- > /wp-content/plugins/reward-points-for-woocommerce/public/phoen-reward-frontend/my-account/reward.php
- > /wp-content/plugins/reward-points-for-woocommerce/admin/phoen-reward-backend/customer-reports/phoen_reward_upate_user_point_form.php
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'PHOEN_REWPTSPLUGPATHpublic/phoen-reward-frontend/phoen_cart_page_class.php' (include_path='.:/usr/share/php') in wp-content/plugins/reward-points-for-woocommerce/public/class-phoen-rewpts-public.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/reward-points-for-woocommerce/public/phoen-reward-frontend/single-product/single-product-notification.php:3
- > PHP Warning
Use of undefined constant PHOEN_REWPTSPLUGPATH - assumed 'PHOEN_REWPTSPLUGPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/reward-points-for-woocommerce/public/class-phoen-rewpts-public.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/reward-points-for-woocommerce/public/phoen-reward-frontend/cart/apply_points_cart_page.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/reward-points-for-woocommerce/admin/phoen-reward-backend/customer-reports/phoen_all_user_wp_list_table.php on line 4
- > PHP Warning
require_once(PHOEN_REWPTSPLUGPATHpublic/phoen-reward-frontend/phoen_cart_page_class.php): failed to open stream: No such file or directory in wp-content/plugins/reward-points-for-woocommerce/public/class-phoen-rewpts-public.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function phoen_reward_check_first_order() in wp-content/plugins/reward-points-for-woocommerce/public/phoen-reward-frontend/checkout/checkout_notification.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/reward-points-for-woocommerce/public/phoen-reward-frontend/checkout/apply_point_checkout_page.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/reward-points-for-woocommerce/admin/phoen-reward-backend/customer-reports/phoen_all_user_wp_list_table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/reward-points-for-woocommerce/admin/phoen-reward-backend/customer-reports/phoen_all_user_function.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=Phoeniixx_reward_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).datepicker is not a function" "TypeError: jQuery(...).datepicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/reward-points-for-woocommerce/admin/js/phoen-rewpts-admin.js?ver=1.0.0:54:71)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=Phoeniixx_reward_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).datepicker is not a function
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
reward-points-for-woocommerce/phoen-rewpts.php 77% from 13 tests
The main file in "Reward Points for Woocommerce" v. 4.6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("reward-points-for-woocommerce.php" instead of "phoen-rewpts.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 142 characters long)
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
Good job! No executable or dangerous file extensions detected4,191 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 1,990 | 638 | 3,875 |
JavaScript | 4 | 70 | 57 | 230 |
CSS | 3 | 13 | 5 | 86 |
PHP code Passed 2 tests
An short overview of 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.43 |
Average class complexity | 15.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 5 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 1 | 1.20% |
▷ Public methods | 60 | 72.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 27.71% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.77MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/manage_customer_points.png | 35.20KB | 12.01KB | ▼ 65.88% |
admin/images/Extra-Points.png | 21.04KB | 7.55KB | ▼ 64.11% |
admin/images/image-frame-odd.png | 0.90KB | 0.81KB | ▼ 10.31% |
admin/images/head-arrow.png | 1.68KB | 1.43KB | ▼ 14.83% |
admin/images/payment_gateway_points.png | 5.95KB | 2.16KB | ▼ 63.66% |