Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.75ms] Passed 4 tests
A check of server-side resources used by Gratisfaction- Contests Giveaways Referral Loyalty Rewards and Birthdays Program
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.84 ▼4.78 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.42 ▼20.71 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 43.62 ▼7.71 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.95 ▼9.80 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 30.79 ▼3.53 |
Gratisfaction /wp-admin/options-general.php?page=grappsmav | 3.28 | 31.94 |
Server storage [IO: ▲0.89MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
grappsmav_register |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Gratisfaction- Contests Giveaways Referral Loyalty Rewards and Birthdays Program
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.25 ▼0.03 | 1.73 ▲0.09 | 44.38 ▲0.05 |
Dashboard /wp-admin | 2,196 ▲15 | 5.61 ▼0.11 | 86.71 ▼21.11 | 38.02 ▼4.27 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.06 | 38.25 ▼2.47 | 37.26 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.34 ▲0.07 | 606.69 ▼95.75 | 49.94 ▲2.43 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.01 | 95.57 ▼5.15 | 39.73 ▼5.30 |
Gratisfaction /wp-admin/options-general.php?page=grappsmav | 1,210 | 8.64 | 146.48 | 101.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- grappsmav_register
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gratisfaction-social-contests-referral-loyalty-rewards-program-by-appsmav/grappsmav.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-social-contests-referral-loyalty-rewards-program-by-appsmav/templates/settings.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=grappsmav
- > Other (warning) in unknown
https://cdn.livechatinc.com/widget/static/js/iframe.4fe2f6d5.chunk.js 1 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
- > GET request to /wp-admin/options-general.php?page=grappsmav
- > Other (warning) in unknown
http://cdn.livechatinc.com/tracking.js 0 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (The screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).) image missing
gratisfaction-social-contests-referral-loyalty-rewards-program-by-appsmav/grappsmav.php 92% from 13 tests
The main PHP file in "Gratisfaction- Contests Giveaways Referral Loyalty Rewards and Birthdays Program" ver. 3.4.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("gratisfaction-social-contests-referral-loyalty-rewards-program-by-appsmav.php" instead of "grappsmav.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,226 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 280 | 270 | 1,116 |
PHP | 4 | 176 | 76 | 876 |
SVG | 1 | 0 | 0 | 228 |
CSS | 3 | 1 | 4 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 5 | 16.67% |
▷ Public methods | 27 | 90.00% |
▷ Protected methods | 2 | 6.67% |
▷ Private methods | 1 | 3.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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/icon-link.png | 1.26KB | 0.35KB | ▼ 71.95% |
img/appsmav-logo.png | 5.23KB | 2.71KB | ▼ 48.20% |
img/icon-error.png | 1.36KB | 0.78KB | ▼ 43.12% |