Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.28ms] Passed 4 tests
Analyzing server-side resources used by Raffle Play Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.35 ▲1.00 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.14 ▼3.38 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.39 ▼3.84 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.71 ▼10.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.69 ▲2.16 |
Server storage [IO: ▲6.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 193 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Raffle Play Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲56 | 14.20 ▼0.14 | 1.72 ▼0.02 | 42.40 ▼3.57 |
Dashboard /wp-admin | 2,202 ▲25 | 5.55 ▼0.12 | 83.00 ▼7.08 | 38.81 ▼3.09 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 2.03 ▲0.04 | 34.69 ▼4.13 | 33.67 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.46 ▲0.17 | 698.51 ▲51.30 | 61.00 ▲9.73 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.21 ▼0.05 | 98.42 ▲2.26 | 43.40 ▲0.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 18× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/raffle-play-woo/uninstall.php
- > /wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_MainPage.php
- > /wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_AuditPage.php
- > /wp-content/plugins/raffle-play-woo/includes/RafflePlayWoo_OptionsManager.php
- > /wp-content/plugins/raffle-play-woo/raffle-play-woo.php
- > /wp-content/plugins/raffle-play-woo/raffle-play-woo_init.php
- > /wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_Releases.php
- > /wp-content/plugins/raffle-play-woo/includes/d/D_RafflePlayWoo_Main.php
- > /wp-content/plugins/raffle-play-woo/includes/RafflePlayWoo_LifeCycle.php
- > /wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_ViewPage.php
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'RAFFLE_PLAY_WOO_DIR_PATH/includes/RafflePlayWoo_Includes.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_MainPage.php on line 5
- > PHP Warning
require_once(RAFFLE_PLAY_WOO_DIR_PATH/includes/RafflePlayWoo_Includes.php): failed to open stream: No such file or directory in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_Reports.php on line 5
- > PHP Warning
include_once(): Failed opening 'RAFFLE_PLAY_WOO_DIR_PATH/includes/RafflePlayWoo_Includes.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_AuditPage.php on line 4
- > PHP Warning
Use of undefined constant RAFFLE_PLAY_WOO_DIR_PATH - assumed 'RAFFLE_PLAY_WOO_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_Winners.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'RAFFLE_PLAY_WOO_DIR_PATH/includes/RafflePlayWoo_Includes.php' (include_path='.:/usr/share/php') in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_Reports.php on line 5
- > PHP Warning
include_once(RAFFLE_PLAY_WOO_DIR_PATH/includes/RafflePlayWoo_Includes.php): failed to open stream: No such file or directory in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_Raffles.php on line 4
- > PHP Warning
Use of undefined constant RAFFLE_PLAY_WOO_DIR_PATH - assumed 'RAFFLE_PLAY_WOO_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_Raffles.php on line 4
- > PHP Warning
include_once(RAFFLE_PLAY_WOO_DIR_PATH/includes/RafflePlayWoo_Includes.php): failed to open stream: No such file or directory in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_ViewPage.php on line 4
- > PHP Warning
include_once(RAFFLE_PLAY_WOO_DIR_PATH/includes/RafflePlayWoo_Includes.php): failed to open stream: No such file or directory in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_MainPage.php on line 5
- > PHP Warning
include_once(): Failed opening 'RAFFLE_PLAY_WOO_DIR_PATH/includes/RafflePlayWoo_Includes.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/raffle-play-woo/includes/w/W_RafflePlayWoo_Raffles.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
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
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in raffle-play-woo/assets to your readme.txt
raffle-play-woo/raffle-play-woo.php 92% from 13 tests
The principal PHP file in "Raffle Play Woocommerce" v. 2.2 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 278 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin47,357 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 22 | 6,930 | 8,723 | 17,469 |
CSS | 34 | 3,712 | 365 | 13,944 |
SVG | 4 | 0 | 0 | 8,899 |
PHP | 29 | 1,448 | 87 | 5,246 |
JavaScript | 12 | 353 | 120 | 1,799 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 279 | |
▷ Static methods | 14 | 5.02% |
▷ Public methods | 178 | 63.80% |
▷ Protected methods | 83 | 29.75% |
▷ Private methods | 18 | 6.45% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 49 | |
▷ Global constants | 4 | 8.16% |
▷ Class constants | 45 | 91.84% |
▷ Public constants | 45 | 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
39 PNG files occupy 0.27MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jquery/themes/base/images/ui-icons_cc0000_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
jquery/themes/sunny/images/ui-bg_diagonals-medium_20_d34d17_40x40.png | 0.43KB | 0.11KB | ▼ 73.86% |
jquery/themes/sunny/images/ui-bg_highlight-soft_100_feeebd_1x100.png | 0.39KB | 0.18KB | ▼ 52.87% |
jquery/themes/sunny/images/ui-bg_gloss-wave_70_ffdd57_500x100.png | 5.47KB | 2.03KB | ▼ 62.81% |
images/icons/info/email_template_labels.png | 15.50KB | 9.03KB | ▼ 41.76% |