Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.69MB] [CPU: ▼2.35ms] Passed 4 tests
An overview of server-side resources used by Giveaways and Contests by RafflePress - Get More Website Traffic, Email Subscribers, and Social Followers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 42.98 ▲4.05 |
Dashboard /wp-admin | 4.13 ▲0.79 | 55.25 ▼11.23 |
Posts /wp-admin/edit.php | 4.18 ▲0.83 | 55.07 ▲8.24 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 93.88 ▼10.41 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 42.77 ▲8.18 |
Giveaways /wp-admin/admin.php?page=rafflepress_lite | 4.93 | 78.94 |
Add New /wp-admin/admin.php?page=rafflepress_lite_add_new | 3.82 | 33.16 |
Builder /wp-admin/admin.php?page=rafflepress_lite_builder | 4.92 | 59.41 |
Settings /wp-admin/admin.php?page=rafflepress_lite_settings | 3.82 | 30.05 |
About Us /wp-admin/admin.php?page=rafflepress_lite_about_us | 3.82 | 30.06 |
Get Pro /wp-admin/admin.php?page=rafflepress_lite_get_pro | 3.82 | 38.56 |
Debug /wp-admin/admin.php?page=rafflepress_lite_debug | 4.00 | 48.64 |
Server storage [IO: ▲7.42MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 179 new files
Database: 3 new tables, 13 new options
New tables |
---|
wp_rafflepress_giveaways |
wp_rafflepress_entries |
wp_rafflepress_contestants |
New WordPress options |
---|
widget_theysaidso_widget |
rafflepress_run_activation |
rafflepress_notifications |
rafflepress_version |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
rafflepress_settings |
rafflepress_token |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Giveaways and Contests by RafflePress - Get More Website Traffic, Email Subscribers, and Social Followers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲97 | 13.33 ▼1.46 | 1.73 ▼0.62 | 42.58 ▲0.58 |
Dashboard /wp-admin | 2,291 ▲88 | 4.92 ▼0.98 | 104.74 ▼7.30 | 39.60 ▼4.60 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.07 ▲0.03 | 36.90 ▼1.14 | 33.31 ▼1.22 |
Add New Post /wp-admin/post-new.php | 6,227 ▲4,695 | 19.00 ▼4.14 | 925.67 ▲288.43 | 65.97 ▲2.12 |
Media Library /wp-admin/upload.php | 1,472 ▲69 | 4.29 ▲0.08 | 100.38 ▼1.19 | 43.95 ▲0.41 |
Giveaways /wp-admin/admin.php?page=rafflepress_lite | 1,547 | 7.86 | 156.54 | 47.56 |
Add New /wp-admin/admin.php?page=rafflepress_lite_add_new | 1,245 | 8.39 | 148.41 | 28.57 |
Builder /wp-admin/admin.php?page=rafflepress_lite_builder | 1,239 | 8.27 | 99.64 | 32.37 |
Settings /wp-admin/admin.php?page=rafflepress_lite_settings | 1,434 | 7.74 | 82.25 | 43.82 |
About Us /wp-admin/admin.php?page=rafflepress_lite_about_us | 1,869 | 8.17 | 91.47 | 54.63 |
Get Pro /wp-admin/admin.php?page=rafflepress_lite_get_pro | 1,307 | 5.22 | 137.98 | 97.37 |
Debug /wp-admin/admin.php?page=rafflepress_lite_debug | 1,204 | 7.26 | 70.78 | 23.34 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 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
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_rafflepress_contestants
- wp_rafflepress_entries
- wp_rafflepress_giveaways
- The uninstall procedure has failed, leaving 13 options in the database
- rafflepress_over_time
- can_compress_scripts
- rafflepress_review
- theysaidso_admin_options
- db_upgraded
- rafflepress_run_activation
- widget_theysaidso_widget
- rafflepress_settings
- rafflepress_token
- rafflepress_version
- ...
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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant RAFFLEPRESS_BUILD - assumed 'RAFFLEPRESS_BUILD' (this will throw an Error in a future version of PHP) in wp-content/plugins/rafflepress/resources/giveaway-templates/basic-giveaway.php on line 3
- > PHP Warning
require_once(RAFFLEPRESS_PLUGIN_PATHresources/views/backend-translations.php): failed to open stream: No such file or directory in wp-content/plugins/rafflepress/resources/views/builder.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rafflepress/resources/views/backend-translations.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rafflepress/rafflepress.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rafflepress/app/includes/upgrade.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rafflepress/app/classic-editor.php:4
- > PHP Warning
Use of undefined constant RAFFLEPRESS_PLUGIN_PATH - assumed 'RAFFLEPRESS_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rafflepress/resources/views/dashboard.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/rafflepress/resources/views/rafflepress-giveaway.php:17
- > PHP Fatal error
require_once(): Failed opening required 'RAFFLEPRESS_PLUGIN_PATHresources/views/backend-translations.php' (include_path='.:/usr/share/php') in wp-content/plugins/rafflepress/resources/views/builder.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rafflepress/app/webhook-functions.php:2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=rafflepress_lite_get_pro
- > Javascript (severe) in unknown
https://rafflepress.com/lite-upgrade/?utm_source=WordPress&utm_campaign=liteplugin&utm_medium=wp-sidebar-menu 498:71 Uncaught SyntaxError: Unexpected token ')'
- > GET request to /wp-admin/admin.php?page=rafflepress_lite_debug
- > Javascript (severe) in unknown
/wp-content/plugins/rafflepress/public/lite/vue-backend/js/admin.js?ver=1.12.2 0:143656 Uncaught ReferenceError: rafflepress_data_admin is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: You are using too many tags: 27 tag instead of maximum 10
rafflepress/rafflepress.php Passed 13 tests
Analyzing the main PHP file in "Giveaways and Contests by RafflePress - Get More Website Traffic, Email Subscribers, and Social Followers" version 1.12.2
84 characters long description:
RafflePress allows you to easily create giveaways, contests and rewards in WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin50,531 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 22 | 3,676 | 112 | 28,970 |
PHP | 37 | 2,040 | 2,002 | 9,984 |
SVG | 21 | 0 | 0 | 9,586 |
JavaScript | 13 | 339 | 214 | 1,987 |
HTML | 3 | 0 | 0 | 3 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 83.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 380.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 230 | |
▷ Static methods | 6 | 2.61% |
▷ Public methods | 85 | 36.96% |
▷ Protected methods | 144 | 62.61% |
▷ Private methods | 1 | 0.43% |
Functions | 108 | |
▷ Named functions | 108 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
61 compressed PNG files occupy 0.37MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/plugin-exactmetrics.png | 2.20KB | 2.23KB | 0.00% |
public/img/feature-7.png | 1.19KB | 1.18KB | ▼ 1.15% |
public/img/integrations/activecampaign.png | 2.43KB | 2.46KB | 0.00% |
public/img/integrations/getresponse.png | 0.78KB | 0.80KB | 0.00% |
public/img/integrations/zapier.png | 0.58KB | 0.63KB | 0.00% |