Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.25ms] Passed 4 tests
This is a short check of server-side resources used by Lootly Loyalty & Rewards
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.78 ▼2.73 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.49 ▼11.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.63 ▲1.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.38 ▼16.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.51 ▲4.61 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Lootly Loyalty & Rewards
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.14 | 1.85 ▲0.01 | 43.73 ▲0.08 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▲0.93 | 113.99 ▲4.21 | 42.40 ▲3.65 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.04 | 36.32 ▲0.07 | 32.61 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.44 ▼0.02 | 681.93 ▼32.75 | 58.79 ▲1.38 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▼0.02 | 110.37 ▲1.64 | 48.84 ▲4.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lootly-for-woocommerce/templates/admin.php
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/lootly-for-woocommerce/templates/admin.php on line 42
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/lootly-for-woocommerce/templates/admin.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'plugins\\lootly\\classes\\base\\Base' not found in wp-content/plugins/lootly-for-woocommerce/classes/rest/WooClasses.php:16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/lootly-for-woocommerce/templates/admin.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'plugins\\lootly\\classes\\base\\Base' not found in wp-content/plugins/lootly-for-woocommerce/classes/api/Events.php:16
- > PHP Fatal error
Uncaught Error: Interface 'plugins\\lootly\\classes\\rest\\lootly' not found in wp-content/plugins/lootly-for-woocommerce/classes/rest/Adapter.php:14
- > PHP Notice
Undefined variable: data in wp-content/plugins/lootly-for-woocommerce/templates/admin.php on line 64
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/lootly-for-woocommerce/templates/admin.php on line 64
- > PHP Fatal error
Uncaught Error: Class 'plugins\\lootly\\classes\\base\\Base' not found in wp-content/plugins/lootly-for-woocommerce/classes/api/API.php:14
- > PHP Notice
Undefined variable: data in wp-content/plugins/lootly-for-woocommerce/templates/admin.php on line 56
- > PHP Notice
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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: rewards, loyalty, vip program, lootly, referrals...
lootly-for-woocommerce/lootly-woocommerce.php 77% from 13 tests
Analyzing the main PHP file in "Lootly Loyalty & Rewards" version 1.25
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path points to a folder that does not exist ("/i18n/")
- Main file name: Name the main plugin file the same as the plugin slug ("lootly-for-woocommerce.php" instead of "lootly-woocommerce.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
There were no executable files found in this plugin1,661 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 264 | 370 | 1,565 |
CSS | 1 | 3 | 0 | 90 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 10 | 8.20% |
▷ Public methods | 91 | 74.59% |
▷ Protected methods | 7 | 5.74% |
▷ Private methods | 24 | 19.67% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/favicon.png | 3.26KB | 1.64KB | ▼ 49.67% |
assets/img/logo-black.png | 12.88KB | 4.91KB | ▼ 61.87% |