Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/wp-raffle/register.php+8
Only variables should be passed by reference
Server metrics [RAM: ▼1.93MB] [CPU: ▼54.53ms] Passed 4 tests
An overview of server-side resources used by WP Raffle ( System )
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.75 ▼39.85 |
Dashboard /wp-admin | 2.08 ▼1.23 | 5.53 ▼54.35 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.19 ▼39.52 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 7.27 ▼84.39 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.76 ▼30.17 |
Add Prizes /wp-admin/admin.php?page=add_prizes_wp_raffle | 2.08 | 5.58 |
Add Tickets /wp-admin/admin.php?page=add_tickets_wp_raffle | 2.08 | 6.69 |
Help? /wp-admin/admin.php?page=help_wp_raffle | 2.08 | 5.75 |
Settings /wp-admin/admin.php?page=settings_wp_raffle | 2.08 | 6.28 |
Time Schedule /wp-admin/admin.php?page=time_schedule_wp_raffle | 2.08 | 5.45 |
WP Raffle /wp-admin/admin.php?page=wp_raffle | 2.08 | 6.55 |
Add Events /wp-admin/admin.php?page=add_events_wp_raffle | 2.08 | 6.27 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 93 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_raffle_prizes |
wp_raffle_tickets |
wp_raffle_events |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_add_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Raffle ( System )
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,215 ▲458 | 16.15 ▲1.77 | 9.09 ▲6.94 | 39.75 ▼5.80 |
Dashboard /wp-admin | 2,430 ▲239 | 6.75 ▲0.85 | 140.16 ▲30.36 | 42.95 ▼5.57 |
Posts /wp-admin/edit.php | 2,384 ▲295 | 5.79 ▲3.82 | 78.26 ▲39.49 | 101.03 ▲68.79 |
Add New Post /wp-admin/post-new.php | 1,463 ▼70 | 21.55 ▼1.51 | 527.97 ▼168.06 | 91.94 ▲36.88 |
Media Library /wp-admin/upload.php | 1,523 ▲132 | 6.87 ▲2.55 | 99.23 ▼15.69 | 93.69 ▲48.26 |
Add Prizes /wp-admin/admin.php?page=add_prizes_wp_raffle | 1,139 | 5.56 | 60.76 | 82.41 |
Add Tickets /wp-admin/admin.php?page=add_tickets_wp_raffle | 1,151 | 5.59 | 60.45 | 57.99 |
Help? /wp-admin/admin.php?page=help_wp_raffle | 1,176 | 5.44 | 115.92 | 28.92 |
Settings /wp-admin/admin.php?page=settings_wp_raffle | 1,137 | 5.59 | 59.54 | 95.42 |
Time Schedule /wp-admin/admin.php?page=time_schedule_wp_raffle | 1,102 | 5.57 | 63.42 | 82.98 |
WP Raffle /wp-admin/admin.php?page=wp_raffle | 1,097 | 5.63 | 59.42 | 79.58 |
Add Events /wp-admin/admin.php?page=add_events_wp_raffle | 1,125 | 5.47 | 61.93 | 95.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-raffle/register.php+8
Only variables should be passed by reference
- Zombie tables were found after uninstall: 3 tables
- wp_raffle_prizes
- wp_raffle_events
- wp_raffle_tickets
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_add_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/system/load.php+22
Only variables should be passed by reference
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Deprecated in wp-content/plugins/wp-raffle/system/html.php+142
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Deprecated in wp-content/plugins/wp-raffle/controller/db_action.php+8
Cannot use "parent" when current class scope has no parent
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp_raffleadmin-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dashboard handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-sortable handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-draggable handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-droppable handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-core handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-dialog handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-slider handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp_raffleadmin-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp_rafflesort-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp_raffleajax_handler handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Deprecated in wp-content/plugins/wp-raffle/config/config.php+49
Non-static method add::localize_script() should not be called statically
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Warning in wp-content/plugins/wp-raffle/model/users.php+15
Declaration of users::counts() should be compatible with db::counts($tbls = NULL)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/system/input.php+227
Undefined property: stdClass::$edit_tickets
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/system/input.php+227
Undefined property: stdClass::$delete_tickets
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/system/input.php+227
Undefined property: stdClass::$edit_events
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/system/input.php+227
Undefined property: stdClass::$delete_events
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/system/input.php+227
Undefined property: stdClass::$edit_prizes
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/system/input.php+227
Undefined property: stdClass::$delete_prizes
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/system/input.php+227
Undefined property: stdClass::$setting
- > GET request to /wp-admin/admin.php?page=settings_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/model/form.php+730
Trying to get property 'name_inputs' of non-object
- > GET request to /wp-admin/admin.php?page=settings_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/model/form.php+731
Trying to get property 'email_inputs' of non-object
- > GET request to /wp-admin/admin.php?page=settings_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/model/form.php+732
Trying to get property 'pid_inputs' of non-object
- > GET request to /wp-admin/admin.php?page=settings_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/model/form.php+733
Trying to get property 'phone_inputs' of non-object
- > GET request to /wp-admin/admin.php?page=settings_wp_raffle
- > Notice in wp-content/plugins/wp-raffle/model/form.php+734
Trying to get property 'address_inputs' of non-object
- > GET request to /wp-admin/admin.php?page=wp_raffle
- > Notice in wp-content/plugins/wp-raffle/view/manage.php+30
Trying to get property 'boxies_sort' of non-object
- > GET request to /wp-admin/admin.php?page=wp_raffle
- > Warning in wp-content/plugins/wp-raffle/view/manage.php+37
Invalid argument supplied for foreach()
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-raffle/config/router.php
- > /wp-content/plugins/wp-raffle/view/template/select-winner-tpl.php
- 30× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Only variables should be passed by reference in wp-content/plugins/wp-raffle/register.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'db' not found in wp-content/plugins/wp-raffle/model/events.php:3
- > PHP Fatal error
Uncaught Error: Class 'db' not found in wp-content/plugins/wp-raffle/model/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'db' not found in wp-content/plugins/wp-raffle/model/tickets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_userdata() in wp-content/plugins/wp-raffle/view/manage.php:3
- > PHP Fatal error
Uncaught Error: Class 'schedule' not found in wp-content/plugins/wp-raffle/view/shortcode/template/randoms.php:3
- > PHP Fatal error
Uncaught Error: Class 'config' not found in wp-content/plugins/wp-raffle/config/autoload.php:3
- > PHP Fatal error
Uncaught Error: Class 'tickets' not found in wp-content/plugins/wp-raffle/view/template/events-tpl.php:15
- > PHP Fatal error
Uncaught Error: Class 'users' not found in wp-content/plugins/wp-raffle/view/template/users-tpl.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-raffle/view/add-prizes.php:5
- > PHP Notice
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 fix the following user-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_events_wp_raffle
- > Javascript (severe) in unknown
/wp-admin/js/dashboard.min.js?ver=6.3.1 1:8674 Uncaught TypeError: window.wp.deprecateL10nObject is not a function
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-raffle ===
)
wp-raffle/wp-raffle.php Passed 13 tests
The main file in "WP Raffle ( System )" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
22 characters long description:
Based Plugin Structure
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,833 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 1,848 | 494 | 5,288 |
CSS | 2 | 38 | 32 | 1,040 |
JavaScript | 4 | 74 | 57 | 426 |
Markdown | 1 | 37 | 0 | 79 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 20.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 296 | |
▷ Static methods | 234 | 79.05% |
▷ Public methods | 295 | 99.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.34% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ticket-17.png | 0.42KB | 0.40KB | ▼ 4.22% |
assets/images/paypal/paypal-16.png | 0.41KB | 0.43KB | 0.00% |
assets/images/More-16.png | 0.60KB | 0.56KB | ▼ 6.68% |
assets/images/check-circle-green-16-1.png | 0.43KB | 0.44KB | 0.00% |
assets/images/paypal/Paypal-1-16.png | 0.26KB | 0.52KB | 0.00% |