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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.22ms] Passed 4 tests
This is a short check of server-side resources used by Easy Loyalty Points and Rewards for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.31 ▲2.58 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.58 ▲6.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.48 ▼8.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.31 ▼3.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.31 ▲0.01 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Loyalty 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 ▲54 | 13.25 ▼1.41 | 4.72 ▲2.85 | 43.57 ▲1.24 |
Dashboard /wp-admin | 2,206 ▲17 | 4.84 ▼0.09 | 103.85 ▼19.11 | 43.24 ▲0.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.12 | 34.11 ▼4.96 | 32.50 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.23 ▲0.03 | 640.28 ▼60.34 | 53.62 ▲0.50 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.05 | 93.14 ▼7.26 | 44.03 ▲1.68 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/easy-loyalty-points-and-rewards-for-woocommerce/public/partials/nujo-reward-points-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Nujo_Reward_Points_WP_List_Table' not found in wp-content/plugins/easy-loyalty-points-and-rewards-for-woocommerce/includes/class-nujo-reward-points-account-table.php:3
- > PHP Fatal error
Uncaught Error: Class 'Nujo_Reward_Points_WP_List_Table' not found in wp-content/plugins/easy-loyalty-points-and-rewards-for-woocommerce/includes/class-nujo-reward-points-log-table.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: woocommerce, rewards, discounts, free, points and rewards...
easy-loyalty-points-and-rewards-for-woocommerce/easy-loyalty-points-and-rewards-for-woocommerce.php Passed 13 tests
The primary PHP file in "Easy Loyalty Points and Rewards for WooCommerce" version 1.4.0 is used by WordPress to initiate all plugin functionality
71 characters long description:
Increase WooCommerce customer loyalty with a points and rewards system.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,743 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 829 | 1,510 | 3,588 |
CSS | 2 | 20 | 8 | 78 |
JavaScript | 2 | 16 | 0 | 64 |
XML | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 23.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 33 | 19.76% |
▷ Public methods | 120 | 71.86% |
▷ Protected methods | 21 | 12.57% |
▷ Private methods | 26 | 15.57% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 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 |
admin/img/nujoplugins_logo_dark_plugin.png | 1.79KB | 0.65KB | ▼ 63.57% |