Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲1.05MB] [CPU: ▲8.15ms] Passed 4 tests
A check of server-side resources used by Scratch and Win
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 43.05 ▼2.90 |
Dashboard /wp-admin | 4.48 ▲1.17 | 68.66 ▲14.40 |
Posts /wp-admin/edit.php | 4.59 ▲1.23 | 59.20 ▲8.51 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.17 | 107.22 ▲12.59 |
Media Library /wp-admin/upload.php | 4.48 ▲1.25 | 58.66 ▲21.10 |
Games /wp-admin/admin.php?page=sos-scratch-and-win-0 | 4.84 | 58.25 |
Tickets /wp-admin/admin.php?page=sos-scratch-and-win-3 | 4.85 | 61.47 |
sos-scratch-and-win-2 /wp-admin/admin.php?page=sos-scratch-and-win-2 | 4.71 | 45.94 |
Statistics /wp-admin/admin.php?page=sos-scratch-and-win-4 | 4.85 | 65.45 |
sos-scratch-and-win-1 /wp-admin/admin.php?page=sos-scratch-and-win-1 | 4.92 | 101.62 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 99 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_sos_saw_prizes |
wp_sos_saw_tickets |
wp_sos_saw_games |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
sos-scratch-and-win_db-version |
Browser metrics Passed 4 tests
Scratch and Win: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲34 | 14.31 ▼0.16 | 1.68 ▼0.20 | 42.81 ▼1.41 |
Dashboard /wp-admin | 2,226 ▲52 | 5.58 ▼0.09 | 88.01 ▼16.33 | 44.22 ▼5.61 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 1.99 ▼0.03 | 33.23 ▼5.32 | 31.55 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 17.95 ▼5.11 | 680.88 ▲15.96 | 67.88 ▲8.00 |
Media Library /wp-admin/upload.php | 1,428 ▲34 | 4.19 ▼0.01 | 108.02 ▲3.49 | 48.06 ▲1.68 |
Games /wp-admin/admin.php?page=sos-scratch-and-win-0 | 909 | 2.05 | 25.09 | 27.00 |
Tickets /wp-admin/admin.php?page=sos-scratch-and-win-3 | 1,043 | 2.00 | 21.03 | 23.82 |
sos-scratch-and-win-2 /wp-admin/admin.php?page=sos-scratch-and-win-2 | 709 | 1.33 | 6.96 | 22.46 |
Statistics /wp-admin/admin.php?page=sos-scratch-and-win-4 | 973 | 2.02 | 26.26 | 33.09 |
sos-scratch-and-win-1 /wp-admin/admin.php?page=sos-scratch-and-win-1 | 1,640 | 2.99 | 40.64 | 75.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_sos_saw_tickets
- wp_sos_saw_games
- wp_sos_saw_prizes
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- sos-scratch-and-win_db-version
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
- 59× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/scratch-and-win/sos/wp/email.php
- > /wp-content/plugins/scratch-and-win/sos/wp/data/field.php
- > /wp-content/plugins/scratch-and-win/sos/wp/data/formfile.php
- > /wp-content/plugins/scratch-and-win/sos/wp/functions.php
- > /wp-content/plugins/scratch-and-win/sos/wp/data/db.php
- > /wp-content/plugins/scratch-and-win/sos/wp/data/wpdatabase.php
- > /wp-content/plugins/scratch-and-win/src/gamestatus.php
- > /wp-content/plugins/scratch-and-win/sos/wp/elementor/widget.php
- > /wp-content/plugins/scratch-and-win/sos/wp/data/formfield.php
- > /wp-content/plugins/scratch-and-win/sos/wp/be/menu.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_SAW\\SosPlugin' not found in wp-content/plugins/scratch-and-win/admin/prize.php:4
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_SAW\\SosPlugin' not found in wp-content/plugins/scratch-and-win/admin/tickets.php:5
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_SAW\\SosPlugin' not found in wp-content/plugins/scratch-and-win/admin/game.php:5
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_SAW\\SosPlugin' not found in wp-content/plugins/scratch-and-win/admin/games.php:4
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_SAW\\SosPlugin' not found in wp-content/plugins/scratch-and-win/admin/stats.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
scratch-and-win/scratch-and-win.php 92% from 13 tests
The main PHP file in "Scratch and Win" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
No dangerous file extensions were detected8,888 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 1,529 | 979 | 8,170 |
JavaScript | 5 | 111 | 62 | 644 |
CSS | 2 | 6 | 4 | 73 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 5 | |
Classes | 52 | |
▷ Abstract classes | 1 | 1.92% |
▷ Concrete classes | 51 | 98.08% |
▷ Final classes | 0 | 0.00% |
Methods | 514 | |
▷ Static methods | 73 | 14.20% |
▷ Public methods | 387 | 75.29% |
▷ Protected methods | 60 | 11.67% |
▷ Private methods | 67 | 13.04% |
Functions | 39 | |
▷ Named functions | 17 | 43.59% |
▷ Anonymous functions | 22 | 56.41% |
Constants | 66 | |
▷ Global constants | 1 | 1.52% |
▷ Class constants | 65 | 98.48% |
▷ Public constants | 65 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/coin.png | 8.46KB | 2.04KB | ▼ 75.94% |