Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▲1.18ms] Passed 4 tests
A check of server-side resources used by Gratisfaction- Loyalty, Rewards , Referral, Birthday and Giveaway Program
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 47.00 ▲7.08 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.38 ▼8.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.91 ▲4.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.00 ▲6.58 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.57 ▲1.50 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Gratisfaction- Loyalty, Rewards , Referral, Birthday and Giveaway Program
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.32 ▼0.02 | 1.69 ▲0.20 | 46.45 ▲5.80 |
Dashboard /wp-admin | 2,195 ▲17 | 5.60 ▼0.10 | 83.41 ▼14.87 | 39.13 ▼0.17 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.05 | 40.64 ▲4.44 | 36.55 ▲3.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.19 ▼0.01 | 591.53 ▼69.11 | 48.98 ▲0.45 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.30 ▲0.19 | 100.27 ▼2.34 | 41.11 ▼4.56 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gratisfaction-all-in-one-loyalty-contests-referral-program-for-woocommerce/grconnect.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gratisfaction-all-in-one-loyalty-contests-referral-program-for-woocommerce/templates/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #10, #12, #13, #14, #2, #4, #6, #8 in gratisfaction-all-in-one-loyalty-contests-referral-program-for-woocommerce/assets to your readme.txt
gratisfaction-all-in-one-loyalty-contests-referral-program-for-woocommerce/grconnect.php 92% from 13 tests
"Gratisfaction- Loyalty, Rewards , Referral, Birthday and Giveaway Program" version 4.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("gratisfaction-all-in-one-loyalty-contests-referral-program-for-woocommerce.php" instead of "grconnect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin6,631 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,246 | 775 | 5,472 |
JavaScript | 2 | 278 | 270 | 1,095 |
JSON | 1 | 0 | 0 | 62 |
CSS | 2 | 0 | 6 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 171.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 852.00 |
Average method complexity | 8.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 19 | 12.50% |
▷ Public methods | 126 | 82.89% |
▷ Protected methods | 4 | 2.63% |
▷ Private methods | 22 | 14.47% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/tick-green.png | 1.11KB | 0.35KB | ▼ 68.64% |
img/tick-black.png | 1.02KB | 0.26KB | ▼ 74.42% |
img/appsmav-logo.png | 5.23KB | 2.71KB | ▼ 48.20% |
img/icon-error.png | 1.36KB | 0.78KB | ▼ 43.12% |
img/icon-link.png | 1.26KB | 0.35KB | ▼ 71.95% |