Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/sweepstakes-app/socialsweepstakes.php+15
include_once(wp-content/plugins/sweepstakes-app/sweepstakes_widget.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.56ms] Passed 4 tests
A check of server-side resources used by Sweepstakes app
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.41 ▼36.29 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.57 ▼46.03 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.31 ▼42.95 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.17 ▼92.95 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.02 ▼26.63 |
Social Sweepstakes /wp-admin/options-general.php?page=sweepstakes-app-options | 2.05 | 5.64 |
Server storage [IO: ▲3.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Sweepstakes app: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.66 ▼0.74 | 5.17 ▲3.31 | 58.67 ▲20.07 |
Dashboard /wp-admin | 2,219 ▲31 | 5.83 ▲0.95 | 99.53 ▼11.89 | 40.09 ▲0.09 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.05 ▼0.01 | 38.85 ▼0.80 | 33.64 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.21 ▼0.02 | 656.51 ▼3.27 | 59.75 ▲9.91 |
Media Library /wp-admin/upload.php | 1,404 ▲22 | 4.23 ▼0.04 | 96.13 ▼0.39 | 45.60 ▲2.44 |
Social Sweepstakes /wp-admin/options-general.php?page=sweepstakes-app-options | 792 | 1.87 | 25.89 | 23.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/sweepstakes-app/socialsweepstakes.php+15
include_once(wp-content/plugins/sweepstakes-app/sweepstakes_widget.php): failed to open stream: No such file or directory
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=sweepstakes-app-options
- > Warning in wp-content/plugins/sweepstakes-app/socialsweepstakes.php+15
include_once(wp-content/plugins/sweepstakes-app/sweepstakes_widget.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/options-general.php?page=sweepstakes-app-options
- > Warning in wp-content/plugins/sweepstakes-app/socialsweepstakes.php+15
include_once(): Failed opening 'wp-content/plugins/sweepstakes-app/sweepstakes_widget.php' for inclusion (include_path='.:/usr/share/php')
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
include_once(): Failed opening 'wp-content/plugins/sweepstakes-app/sweepstakes_widget.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/sweepstakes-app/socialsweepstakes.php on line 15
- > PHP Warning
include_once(wp-content/plugins/sweepstakes-app/sweepstakes_widget.php): failed to open stream: No such file or directory in wp-content/plugins/sweepstakes-app/socialsweepstakes.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sweepstakes-app/common.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sweepstakes-app/common.php:25
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=sweepstakes-app-options
- > Security (severe) in unknown
security - Refused to frame 'https://www.wishpond.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
sweepstakes-app/socialsweepstakes.php 85% from 13 tests
"Sweepstakes app" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sweepstakes-app.php" instead of "socialsweepstakes.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin105 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 20 | 26 | 105 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 3.14MB with 2.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 1,141.91KB | 309.21KB | ▼ 72.92% |
screenshot-6.png | 340.00KB | 90.60KB | ▼ 73.35% |
screenshot-7.png | 532.52KB | 135.95KB | ▼ 74.47% |
screenshot-2.png | 165.05KB | 48.78KB | ▼ 70.44% |
screenshot-4.png | 232.09KB | 70.51KB | ▼ 69.62% |