Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Error in wp-content/plugins/xcid-beans-rewards-for-woocommerce/xcid-beans.php+821
Uncaught Error: Call to undefined function wc_create_page() in wp-content/plugins/xcid-beans-rewards-for-woocommerce/xcid-beans.php:821
Stack trace:
#0 wp-includes/class-wp-hook.php(310): XC_Bean::install()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.51ms] Passed 4 tests
Server-side resources used by XCID - Beans rewards for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.41 ▼0.54 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.26 ▼14.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.22 ▼3.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.00 ▼23.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.99 ▼0.84 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by XCID - Beans rewards for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.31 ▼0.33 | 1.75 ▼0.16 | 44.06 ▲3.54 |
Dashboard /wp-admin | 2,195 ▲15 | 5.51 ▼0.12 | 80.52 ▼8.71 | 37.45 ▼6.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.05 | 36.68 ▼1.58 | 33.60 ▼4.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.67 ▲5.35 | 703.93 ▲90.54 | 73.38 ▲8.94 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.12 ▼0.07 | 94.99 ▼0.77 | 44.09 ▲1.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/reward-program.php
- > /wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/beans.php
- > /wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/cart-message.php
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: history in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/reward-program.php on line 12
- > PHP Notice
Undefined variable: button_action in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/cart-message.php on line 9
- > PHP Notice
Undefined variable: beans_name in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/beans.php on line 1
- > PHP Notice
Undefined variable: balance in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/reward-program-balance.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/register-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/product-message.php:3
- > PHP Notice
Undefined variable: balance in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/reward-program.php on line 8
- > PHP Notice
Undefined variable: beans in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/beans.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/reward-program-balance.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/xcid-beans-rewards-for-woocommerce/templates/reward-program-rules.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
xcid-beans-rewards-for-woocommerce/xcid-beans.php 92% from 13 tests
The entry point to "XCID - Beans rewards for Woocommerce" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("xcid-beans-rewards-for-woocommerce.php" instead of "xcid-beans.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,759 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 243 | 273 | 978 |
CSS | 1 | 48 | 40 | 479 |
PO File | 1 | 53 | 56 | 146 |
JavaScript | 3 | 21 | 26 | 140 |
JSON | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 61 | |
▷ Static methods | 4 | 6.56% |
▷ Public methods | 47 | 77.05% |
▷ Protected methods | 1 | 1.64% |
▷ Private methods | 13 | 21.31% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected