Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼141.82ms] Passed 4 tests
Server-side resources used by The Loyalty Box - WooCommerce Rewards Program
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.26 | 34.06 ▲12.23 |
Dashboard /wp-admin | 3.20 ▲0.15 | 55.09 ▲4.64 |
Posts /wp-admin/edit.php | 3.25 ▲0.15 | 53.70 ▲3.61 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 99.60 ▼575.54 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 38.40 ▲0.01 |
Server storage [IO: ▲0.25MB] [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: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for The Loyalty Box - WooCommerce Rewards Program
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.92 ▲0.30 | 13.41 ▲0.20 | 49.33 ▲0.63 |
Dashboard /wp-admin | 2,970 ▲36 | 5.94 ▲0.03 | 156.70 ▼13.81 | 118.38 ▲10.14 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 77.23 ▼1.05 | 94.92 ▼3.24 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.79 ▲0.03 | 430.61 ▲10.22 | 115.78 ▼8.03 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.00 | 170.41 ▲8.19 | 121.23 ▼19.01 |
Uninstaller [IO: ▲0.25MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following itemsZombie WordPress options were found after uninstall: 1 option
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/the-loyalty-box-woocommerce-rewards-program/uninstall.php+10
Uncaught Error: Class 'WC_Loyaltybox_Settings' not found in wp-content/plugins/the-loyalty-box-woocommerce-rewards-program/uninstall.php:10
Stack trace:
#0 wp-admin/includes/plugin.php(1248): include_once()
#1 wp-admin/includes/plugin.php(965): uninstall_plugin() - The plugin did not uninstall correctly, leaving 15 files (0.25MB) in the plugin directory
- (new file) includes/wc-loyaltybox-settings.php
- (new file) assets/screenshot-1.png
- (new file) error.log
- (new file) assets/js/local.loyaltybox.js
- (new file) assets/css/local.loyaltybox.css
- (new file) assets/css/master.loyaltybox.css
- (new file) assets/img/lb_loading.gif
- (new file) includes/loyaltybox.inc.php
- (new file) assets/screenshot-2.png
- (new file) assets/screenshot-3.png
- ...
- recovery_mode_email_last_sent
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #2, #3 in the-loyalty-box-woocommerce-rewards-program/assets to your readme.txt
the-loyalty-box-woocommerce-rewards-program/loyaltybox.php 77% from 13 tests
Analyzing the main PHP file in "The Loyalty Box - WooCommerce Rewards Program" version 1.0.3
You should first fix the following items:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("/languages.")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("the-loyalty-box-woocommerce-rewards-program.php" instead of "loyaltybox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,189 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 240 | 987 | 1,943 |
JavaScript | 1 | 16 | 5 | 225 |
CSS | 1 | 8 | 121 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 43.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 26 | 50.98% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 13 | 68.42% |
▷ Class constants | 6 | 31.58% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 24.63KB | 10.86KB | ▼ 55.93% |
assets/screenshot-1.png | 44.15KB | 18.99KB | ▼ 56.99% |
assets/screenshot-2.png | 29.01KB | 12.38KB | ▼ 57.34% |