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 gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▲1.12ms] Passed 4 tests
Analyzing server-side resources used by Loystar - Woocommerce Loyalty Program
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 41.80 ▲2.49 |
Dashboard /wp-admin | 3.51 ▲0.20 | 50.01 ▲0.70 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 44.58 ▼0.01 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 97.67 ▲1.28 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.52 ▲2.92 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Loystar - Woocommerce Loyalty Program
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.16 ▼0.21 | 1.75 ▼0.04 | 46.40 ▲8.16 |
Dashboard /wp-admin | 2,203 ▲25 | 5.60 ▼0.01 | 86.49 ▼27.61 | 38.63 ▼7.26 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▲0.03 | 33.55 ▼2.03 | 35.72 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.14 ▲0.02 | 653.46 ▼9.69 | 64.45 ▲17.31 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.21 ▲0.06 | 95.94 ▼5.08 | 44.22 ▼1.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
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 take a closer look at the following
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_loystar() in wp-content/plugins/loystar-woocommerce-loyalty-program/admin/class-product-page.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_loystar() in wp-content/plugins/loystar-woocommerce-loyalty-program/admin/class-customers.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_loystar() in wp-content/plugins/loystar-woocommerce-loyalty-program/admin/class-woocommerce-orders.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_loystar() in wp-content/plugins/loystar-woocommerce-loyalty-program/public/class-loyalty-widget.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_loystar() in wp-content/plugins/loystar-woocommerce-loyalty-program/admin/class-settings.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_loystar() in wp-content/plugins/loystar-woocommerce-loyalty-program/admin/class-sync.php:101
- > 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/loystar-woocommerce-loyalty-program/includes/class-loystar-customer-details.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_loystar() in wp-content/plugins/loystar-woocommerce-loyalty-program/public/class-woocommerce-product.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_loystar() in wp-content/plugins/loystar-woocommerce-loyalty-program/admin/class-add-loyalty-program.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_loystar() in wp-content/plugins/loystar-woocommerce-loyalty-program/admin/class-loyalty-programs.php:82
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: customer, loyalty program, ecommerce, food, fashion...
loystar-woocommerce-loyalty-program/loystar.php 77% from 13 tests
The main PHP script in "Loystar - Woocommerce Loyalty Program" version 2.1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 270 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "4.9.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("loystar-woocommerce-loyalty-program.php" instead of "loystar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected6,819 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 415 | 1,960 | 3,745 |
CSS | 9 | 77 | 59 | 2,468 |
JavaScript | 7 | 38 | 122 | 585 |
Markdown | 1 | 5 | 0 | 17 |
INI | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 30.68 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 230 | |
▷ Static methods | 15 | 6.52% |
▷ Public methods | 198 | 86.09% |
▷ Protected methods | 5 | 2.17% |
▷ Private methods | 27 | 11.74% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 27 | |
▷ Global constants | 27 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
assets/images/loystar_logo.png | 11.25KB | 5.50KB | ▼ 51.08% |
assets/vendor/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |