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
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼6.10ms] Passed 4 tests
A check of server-side resources used by Scratch & Win - Giveaways and Contests. Boost subscribers, traffic, repeat visits, referrals, sales and more
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 36.29 ▼6.89 |
Dashboard /wp-admin | 3.50 ▲0.15 | 46.80 ▼12.10 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 47.55 ▼1.38 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 87.25 ▼4.04 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 34.31 ▲2.48 |
Scratch & Win Appsmav /wp-admin/options-general.php?page=appsmavscratchwin | 3.40 | 34.82 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
apmswn_register |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Scratch & Win - Giveaways and Contests. Boost subscribers, traffic, repeat visits, referrals, sales and more
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.21 ▲0.35 | 1.70 ▼0.02 | 39.32 ▼7.22 |
Dashboard /wp-admin | 2,199 ▲24 | 5.60 ▲0.00 | 90.30 ▼11.55 | 43.14 ▲3.46 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▲0.01 | 39.05 ▼1.78 | 37.12 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.12 ▼0.27 | 620.33 ▼8.84 | 52.95 ▼11.92 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.16 ▼0.03 | 99.36 ▼6.40 | 42.75 ▼2.88 |
Scratch & Win Appsmav /wp-admin/options-general.php?page=appsmavscratchwin | 1,185 | 8.20 | 145.81 | 96.11 |
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
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- apmswn_register
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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/scratch-win-giveaways-for-website-facebook/socialscratchwin.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scratch-win-giveaways-for-website-facebook/templates/settings.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=appsmavscratchwin
- > Other (warning) in unknown
https://cdn.livechatinc.com/widget/static/js/iframe.ac52f503.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=appsmavscratchwin
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #10, #11, #12, #13, #14, #15, #16, #17, #18, #2, #4, #6, #8, #9 in scratch-win-giveaways-for-website-facebook/assets to your readme.txt
scratch-win-giveaways-for-website-facebook/socialscratchwin.php 92% from 13 tests
The entry point to "Scratch & Win - Giveaways and Contests. Boost subscribers, traffic, repeat visits, referrals, sales and more" version 2.6.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("scratch-win-giveaways-for-website-facebook.php" instead of "socialscratchwin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,756 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 233 | 77 | 1,141 |
JavaScript | 2 | 278 | 269 | 1,095 |
CSS | 3 | 41 | 40 | 520 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 76.50 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 5.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.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 | 32 | |
▷ Static methods | 5 | 15.62% |
▷ Public methods | 30 | 93.75% |
▷ Protected methods | 2 | 6.25% |
▷ Private methods | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-link.png | 1.26KB | 0.35KB | ▼ 71.95% |
img/tick-green.png | 1.11KB | 0.35KB | ▼ 68.64% |
img/Video.png | 0.62KB | 0.63KB | 0.00% |
img/appsmav-logo.png | 5.23KB | 2.71KB | ▼ 48.20% |
img/icon-error.png | 1.36KB | 0.78KB | ▼ 43.12% |