Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.17ms] Passed 4 tests
An overview of server-side resources used by No Frills Prize Draw Competitions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.06 ▼5.23 |
Dashboard /wp-admin | 3.34 ▼0.01 | 52.84 ▼10.80 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 53.03 ▼0.75 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.14 ▼19.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.22 ▼0.29 |
Prize Draw Details /wp-admin/admin.php?page=nfpd_prize_draw | 3.35 | 33.89 |
Shortcode /wp-admin/admin.php?page=nfpd_shortcode_generator | 3.28 | 38.60 |
Select Prize Draw CSV /wp-admin/admin.php?page=nfpd_prize_draw_export | 3.24 | 37.11 |
Select Prize Draw Winner /wp-admin/admin.php?page=nfpd_pick_winner | 3.21 | 33.02 |
View Prize Draw Entries /wp-admin/admin.php?page=nfpd_prize_draw_view_draw_entries | 3.36 | 30.82 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_nfpd_entries |
wp_nfpd |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by No Frills Prize Draw Competitions
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲232 | 14.45 ▼0.11 | 2.19 ▲0.47 | 42.92 ▼0.52 |
Dashboard /wp-admin | 2,356 ▲176 | 6.18 ▲0.59 | 107.40 ▲18.31 | 38.23 ▼9.94 |
Posts /wp-admin/edit.php | 2,290 ▲190 | 3.32 ▲1.33 | 48.26 ▲8.05 | 29.22 ▼6.26 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.45 ▼0.25 | 662.76 ▼39.74 | 36.97 ▼17.19 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.17 ▲0.06 | 87.34 ▼25.64 | 44.28 ▼1.37 |
Prize Draw Details /wp-admin/admin.php?page=nfpd_prize_draw | 1,336 | 3.02 | 45.66 | 69.18 |
Shortcode /wp-admin/admin.php?page=nfpd_shortcode_generator | 1,116 | 3.15 | 38.03 | 33.70 |
Select Prize Draw CSV /wp-admin/admin.php?page=nfpd_prize_draw_export | 1,001 | 2.97 | 38.13 | 24.82 |
Select Prize Draw Winner /wp-admin/admin.php?page=nfpd_pick_winner | 707 | 1.50 | 10.61 | 20.82 |
View Prize Draw Entries /wp-admin/admin.php?page=nfpd_prize_draw_view_draw_entries | 1,186 | 2.99 | 37.49 | 41.69 |
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
The following items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_nfpd
- wp_nfpd_entries
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+24
Undefined index: edited
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+44
Trying to get property 'thumb' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw_view_draw_entries
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-view-entrees-admin.php+46
Trying to get property '_winner' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+48
Trying to get property 'nam' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+49
Trying to get property '_registered' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+51
Trying to get property '_pp_link' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+53
Trying to get property '_terms_link' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+56
Trying to get property 'descr' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+58
Trying to get property '_type' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+60
Trying to get property '_question' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw_view_draw_entries
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-view-entrees-admin.php+48
Trying to get property '_answer' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+67
Trying to get property '_answers' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+72
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php+80
Trying to get property 'id' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_pick_winner
- > Notice in wp-content/plugins/no-frills-prize-draw/no-frills-prize-draw.php+544
Undefined index: custom_main_nonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw_view_draw_entries
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-view-entrees-admin.php+26
Undefined index: picked
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw_view_draw_entries
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-view-entrees-admin.php+45
Trying to get property '_prize_name' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw_view_draw_entries
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-view-entrees-admin.php+47
Trying to get property '_amended' of non-object
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw_view_draw_entries
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-view-entrees-admin.php+84
Undefined index: paged
- > GET request to /wp-admin/admin.php?page=nfpd_prize_draw_view_draw_entries
- > Notice in wp-content/plugins/no-frills-prize-draw/admin/nfpd-view-entrees-admin.php+105
Undefined index: filter
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/no-frills-prize-draw/no-frills-prize-draw.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/no-frills-prize-draw/admin/nfpd-shortcode-generator-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/no-frills-prize-draw/admin/nfpd-view-entrees-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/no-frills-prize-draw/admin/nfpd-edit-draw-admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== No Frills Prize Draw Competitions===
) - Contributors: Plugin contributors field is missing
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
no-frills-prize-draw/no-frills-prize-draw.php 92% from 13 tests
The main PHP file in "No Frills Prize Draw Competitions" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 302 characters long)
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
Everything looks great! No dangerous files found in this plugin1,715 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 339 | 68 | 918 |
PO File | 1 | 131 | 172 | 311 |
CSS | 2 | 7 | 0 | 283 |
JavaScript | 3 | 76 | 17 | 203 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/questionmark.png | 1.07KB | 0.97KB | ▼ 9.36% |