Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▲1.95ms] Passed 4 tests
An overview of server-side resources used by Gift Hunt
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 44.65 ▲8.35 |
Dashboard /wp-admin | 3.51 ▲0.20 | 49.63 ▲2.02 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 45.10 ▼1.88 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 91.17 ▲2.32 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.88 ▲5.33 |
Add New /wp-admin/admin.php?page=gifthuntfree-sessions&p=session-create | 3.54 | 41.41 |
Gift Hunt /wp-admin/admin.php?page=gifthuntfree-sessions | 3.43 | 34.10 |
Mailchimp Integration /wp-admin/admin.php?page=gifthuntfree-sessions&p=mailchimp-integration | 3.45 | 41.21 |
Server storage [IO: ▲1.27MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 72 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_ff_gifthuntfree_gifts |
wp_ff_mailchimp_settings |
wp_ff_mailchimp_logs |
wp_ff_gifthuntfree_sessions |
wp_ff_gifthuntfree_hunters |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Gift Hunt
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 14.39 ▼0.19 | 1.64 ▲0.06 | 40.73 ▲2.13 |
Dashboard /wp-admin | 2,274 ▲94 | 5.54 ▼0.08 | 84.50 ▼0.18 | 36.43 ▼7.30 |
Posts /wp-admin/edit.php | 2,182 ▲82 | 1.99 ▼0.02 | 36.48 ▲1.89 | 37.43 ▲2.71 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.17 ▲0.25 | 649.01 ▼6.52 | 56.60 ▲0.86 |
Media Library /wp-admin/upload.php | 1,486 ▲86 | 4.22 ▲0.00 | 108.57 ▲7.44 | 46.98 ▲3.65 |
Add New /wp-admin/admin.php?page=gifthuntfree-sessions&p=session-create | 5,298 | 10.04 | 196.11 | 154.83 |
Gift Hunt /wp-admin/admin.php?page=gifthuntfree-sessions | 1,490 | 9.30 | 269.90 | 68.11 |
Mailchimp Integration /wp-admin/admin.php?page=gifthuntfree-sessions&p=mailchimp-integration | 1,312 | 2.01 | 27.09 | 58.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 24× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/gift-hunt/views/gifthunt-sessions.view.php
- > /wp-content/plugins/gift-hunt/views/form-components/visibility-settings.php
- > /wp-content/plugins/gift-hunt/views/gifthunt-session-edit.view.php
- > /wp-content/plugins/gift-hunt/views/success-email-templates/christmas.php
- > /wp-content/plugins/gift-hunt/views/success-email-templates/halloween.php
- > /wp-content/plugins/gift-hunt/views/form-components/data-collection-options.php
- > /wp-content/plugins/gift-hunt/views/gifthunt-mailchimp-log.view.php
- > /wp-content/plugins/gift-hunt/views/gifthunt-session-create.view.php
- > /wp-content/plugins/gift-hunt/views/success-email-templates/default-dark.php
- > /wp-content/plugins/gift-hunt/views/form-components/get-started.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were found
gift-hunt/gifthuntfree.php 85% from 13 tests
The main PHP script in "Gift Hunt" version 2.0.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("gift-hunt.php" instead of "gifthuntfree.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin8,541 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 708 | 550 | 4,638 |
JavaScript | 6 | 302 | 390 | 1,546 |
Sass | 1 | 178 | 0 | 994 |
CSS | 7 | 154 | 18 | 791 |
SVG | 11 | 0 | 0 | 512 |
HTML | 3 | 8 | 0 | 60 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 86.75 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 97 | |
▷ Static methods | 12 | 12.37% |
▷ Public methods | 69 | 71.13% |
▷ Protected methods | 14 | 14.43% |
▷ Private methods | 14 | 14.43% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.32MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/success-email-templates/easter.png | 26.10KB | 10.68KB | ▼ 59.08% |
assets/images/success-email-templates/unstyled.png | 24.36KB | 9.64KB | ▼ 60.42% |
assets/images/success-email-templates/default-dark.png | 25.10KB | 10.94KB | ▼ 56.40% |
assets/images/success-email-templates/halloween.png | 24.34KB | 10.44KB | ▼ 57.13% |
assets/images/popup/default_dark.png | 28.00KB | 12.52KB | ▼ 55.27% |