Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.56ms] Passed 4 tests
This is a short check of server-side resources used by Raffle Ticket Generator - Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.43 ▼2.61 |
Dashboard /wp-admin | 3.39 ▲0.04 | 45.29 ▼15.94 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.56 ▼1.45 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 80.75 ▼10.23 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.72 ▲2.27 |
View Customer's Ticket Numbers /wp-admin/admin.php?page=woocommerce-raffle-tickets | 3.29 | 32.66 |
Raffle Ticket Generator /wp-admin/admin.php?page=woocommerce-raffle | 3.28 | 31.62 |
Server storage [IO: ▲2.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wooraffle_tickets_customer_to_tickets |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Raffle Ticket Generator - Woocommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 14.37 ▲0.00 | 1.78 ▲0.09 | 37.96 ▼4.20 |
Dashboard /wp-admin | 2,230 ▲50 | 5.65 ▲0.07 | 89.49 ▼0.99 | 33.14 ▼8.07 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.03 ▲0.06 | 41.20 ▲5.63 | 33.04 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,556 ▲19 | 23.16 ▲4.72 | 642.53 ▲41.63 | 54.67 ▼6.85 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.38 ▲0.16 | 95.80 ▼5.77 | 39.72 ▼5.09 |
View Customer's Ticket Numbers /wp-admin/admin.php?page=woocommerce-raffle-tickets | 843 | 2.29 | 33.55 | 28.00 |
Raffle Ticket Generator /wp-admin/admin.php?page=woocommerce-raffle | 1,147 | 2.01 | 26.81 | 38.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wooraffle_tickets_customer_to_tickets
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/raffle-ticket-generator/raffle-ticket-generator.php:47
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=woocommerce-raffle
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).accordion is not a function" "TypeError: jQuery(...).accordion is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/raffle-ticket-generator/includes/js/script.js?ver=6.3.1:2:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=woocommerce-raffle
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).accordion is not a function
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (This screenshot shows the product configuration in WooCommerce. When the plugin is installed, the product editor will show a "Number of Raffle Tickets" field. Leave it blank for normal products without a raffle ticket, if you want it to be a raffle ticket item, then put in the appropriate number. In this example it is 50 - this product will generate 50 tickets.) image not found
raffle-ticket-generator/raffle-ticket-generator.php 92% from 13 tests
This is the main PHP file of "Raffle Ticket Generator - Woocommerce" version 4.7.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected14,826 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 2,433 | 1,826 | 12,748 |
CSS | 2 | 2,049 | 4 | 1,673 |
PHP | 1 | 221 | 36 | 393 |
XML | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 17 | |
▷ Named functions | 17 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.52MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bronze-settings.png | 15.76KB | 8.67KB | ▼ 44.98% |
tickets/ticket_1.png | 4.14KB | 0.81KB | ▼ 80.53% |
screen.png | 92.34KB | 41.56KB | ▼ 54.99% |
tickets/start-red.png | 4.94KB | 2.48KB | ▼ 49.80% |
tickets/ticket_3.png | 7.09KB | 3.87KB | ▼ 45.43% |