Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲1.86MB] [CPU: ▲606.72ms] 50% from 4 tests
This is a short check of server-side resources used by Victorious
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,404.95ms on /wp-admin/admin.php?page=manage-playernews)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 606.72ms on /wp-admin/admin.php?page=manage-playernews)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.56 ▲2.09 | 60.25 ▲15.51 |
Dashboard /wp-admin | 5.16 ▲1.81 | 834.95 ▲768.33 |
Posts /wp-admin/edit.php | 5.19 ▲1.83 | 875.53 ▲824.74 |
Add New Post /wp-admin/post-new.php | 7.84 ▲1.95 | 1,097.54 ▲999.62 |
Media Library /wp-admin/upload.php | 5.10 ▲1.86 | 857.00 ▲818.29 |
Fighters /wp-admin/admin.php?page=manage-fighters | 5.85 | 2,373.86 |
Add Player News /wp-admin/admin.php?page=add-playernews | 5.80 | 1,630.91 |
Event Statistics /wp-admin/admin.php?page=statistic | 5.86 | 2,378.98 |
Add Events /wp-admin/admin.php?page=add-pools | 5.81 | 1,602.72 |
Sports /wp-admin/admin.php?page=manage-sports | 5.86 | 2,413.49 |
Player Positions /wp-admin/admin.php?page=manage-playerposition | 5.85 | 2,346.50 |
Credits /wp-admin/admin.php?page=credits | 5.87 | 3,159.86 |
Players /wp-admin/admin.php?page=manage-players | 5.83 | 2,394.16 |
Withdrawls /wp-admin/admin.php?page=withdrawls | 5.87 | 1,554.95 |
Player News /wp-admin/admin.php?page=manage-playernews | 5.85 | 2,404.95 |
Server storage [IO: ▲15.03MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 593 new files
Database: 8 new tables, 41 new options
New tables |
---|
wp_fundhistory |
wp_vic_balance_types |
wp_firebase_tokens |
wp_user_teams |
wp_user_payment |
wp_withdrawls |
wp_vic_balances |
wp_user_extended |
New WordPress options |
---|
victorious_third_place_percent |
victorious_paypal_pro_username |
victorious_entry_fee |
victorious_share_teams_players |
victorious_first_place_percent |
victorious_fee_percentage |
db_upgraded |
victorious_facebook_app_id |
victorious_create_contest |
victorious_currency |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Victorious
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲208 | 13.43 ▼0.92 | 10.18 ▲8.08 | 28.00 ▼15.85 |
Dashboard /wp-admin | 2,281 ▲101 | 5.55 ▼0.03 | 83.87 ▼4.69 | 47.94 ▲8.33 |
Posts /wp-admin/edit.php | 2,189 ▲86 | 2.01 ▼0.02 | 36.85 ▼4.42 | 39.21 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,597 ▲70 | 23.24 ▲0.16 | 647.45 ▼41.40 | 59.05 ▼8.57 |
Media Library /wp-admin/upload.php | 1,486 ▲89 | 4.26 ▲0.08 | 102.47 ▼7.88 | 50.38 ▼0.32 |
Fighters /wp-admin/admin.php?page=manage-fighters | 1,020 | 1.70 | 24.58 | 39.80 |
Add Player News /wp-admin/admin.php?page=add-playernews | 893 | 1.90 | 27.99 | 34.55 |
Event Statistics /wp-admin/admin.php?page=statistic | 1,044 | 2.09 | 27.77 | 38.20 |
Add Events /wp-admin/admin.php?page=add-pools | 898 | 1.91 | 27.20 | 34.38 |
Sports /wp-admin/admin.php?page=manage-sports | 1,036 | 2.09 | 28.38 | 33.85 |
Player Positions /wp-admin/admin.php?page=manage-playerposition | 1,023 | 1.85 | 25.61 | 37.03 |
Credits /wp-admin/admin.php?page=credits | 1,123 | 2.07 | 28.48 | 44.90 |
Players /wp-admin/admin.php?page=manage-players | 920 | 1.72 | 25.57 | 36.55 |
Withdrawls /wp-admin/admin.php?page=withdrawls | 1,048 | 2.11 | 29.19 | 35.77 |
Player News /wp-admin/admin.php?page=manage-playernews | 1,022 | 1.73 | 25.09 | 41.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_vic_balance_types
- wp_user_teams
- wp_vic_balances
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 15 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage-playernews
- > Notice in wp-content/plugins/victorious/model/admin/playernews.php+8
Trying to access array offset on value of type null
SRP 0% 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 take a closer look at the following
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/victorious/views/Elements/live_point.php
- > /wp-content/plugins/victorious/views/Elements/user_summary.php
- > /wp-content/plugins/victorious/views/Elements/contest_detail_tab_prize.php
- > /wp-content/plugins/victorious/views/block/userbalance.html.php
- > /wp-content/plugins/victorious/views/dlg_info.php
- > /wp-content/plugins/victorious/views/Elements/dashboard_stats_chart.php
- > /wp-content/plugins/victorious/views/live_score.php
- > /wp-content/plugins/victorious/views/Elements/qq_template.php
- > /wp-content/plugins/victorious/views/Elements/paypal_normal.php
- 484× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'VIC_Model' not found in wp-content/plugins/victorious/model/admin/players.php:2
- > PHP Warning
require_once(VICTORIOUS__PLUGIN_DIR_VIEW_ELEMENTpick_header.php): failed to open stream: No such file or directory in wp-content/plugins/victorious/views/Elements/gametype/pickem.php on line 2
- > PHP Notice
Undefined variable: league in wp-content/plugins/victorious/views/Elements/contest_picks.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/victorious/views/Elements/portfolio/leaderboard_detail.php:7
- > PHP Notice
Undefined variable: scoringCats in wp-content/plugins/victorious/views/Elements/result/playerdraft.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/victorious/views/Elements/playerdraft/leaderboard_detail.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/victorious/model/admin/emailTemplates/live_draft_reject_trade_player.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/victorious/views/Elements/livescore/schedule.php:122
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/victorious/model/admin/emailTemplates/live_draft_request_trade_player.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/victorious/views/Elements/bracket/result_detail.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== victorious ===
)
victorious/victorious.php 92% from 13 tests
The main file in "Victorious" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 716 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/victorious/model/api_cert_chain.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 27 | 289 | 511 | 40,900 |
PHP | 359 | 3,946 | 3,000 | 38,153 |
JavaScript | 55 | 1,315 | 8,694 | 16,112 |
Sass | 13 | 23 | 24 | 1,256 |
LESS | 13 | 23 | 33 | 1,247 |
SVG | 2 | 0 | 0 | 539 |
Markdown | 3 | 117 | 0 | 479 |
JSON | 2 | 0 | 0 | 113 |
XML | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 37.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 724.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 101 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 101 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,508 | |
▷ Static methods | 452 | 29.97% |
▷ Public methods | 1,300 | 86.21% |
▷ Protected methods | 16 | 1.06% |
▷ Private methods | 192 | 12.73% |
Functions | 79 | |
▷ Named functions | 60 | 75.95% |
▷ Anonymous functions | 19 | 24.05% |
Constants | 111 | |
▷ Global constants | 109 | 98.20% |
▷ Class constants | 2 | 1.80% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
76 PNG files occupy 7.91MB with 1.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/image/gamble.png | 1.01KB | 1.15KB | 0.00% |
_inc/css/images/M.png | 0.60KB | 0.45KB | ▼ 25.49% |
_inc/image/dfscoin.png | 22.31KB | 20.83KB | ▼ 6.64% |
_inc/image/molpay.png | 2.45KB | 2.26KB | ▼ 7.62% |
assets/screenshot-1.png | 254.27KB | 80.36KB | ▼ 68.40% |