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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.64ms] Passed 4 tests
This is a short check of server-side resources used by wp-championship
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.51 ▼0.13 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.16 ▼14.76 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 45.31 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.09 ▼11.85 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.00 ▲1.89 |
Labels /wp-admin/admin.php?page=wp-championship/cs_admin_labels.php | 3.37 | 53.24 |
Player /wp-admin/admin.php?page=wp-championship/cs_admin_users.php | 3.27 | 37.40 |
Stats /wp-admin/admin.php?page=wp-championship/cs_admin_stats.php | 3.25 | 33.47 |
Preliminary /wp-admin/admin.php?page=wp-championship/cs_admin_match.php | 3.27 | 35.74 |
Guessing-game /wp-admin/users.php?page=wpcs-usertipp | 3.29 | 44.33 |
Finals /wp-admin/admin.php?page=wp-championship/cs_admin_finals.php | 3.27 | 33.65 |
Teams /wp-admin/admin.php?page=wp-championship/cs_admin_team.php | 3.27 | 33.21 |
Guessing-game /wp-admin/admin.php?page=wp-championship/cs_admin.php | 3.29 | 43.23 |
Server storage [IO: ▲2.04MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 385 new files
Database: 5 new tables, 26 new options
New tables |
---|
cs_users |
cs_tippgroup |
cs_team |
cs_match |
cs_tipp |
New WordPress options |
---|
cs_pts_looser |
cs_pts_goalsum |
cs_pts_tipp |
cs_final_teams |
cs_goalsum |
cs_modus |
widget_wp-championship-tippgroup |
cs_lock_round1 |
cs_rank_trend |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for wp-championship
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲179 | 13.52 ▼0.83 | 7.65 ▲5.74 | 40.23 ▲0.88 |
Dashboard /wp-admin | 2,250 ▲75 | 5.60 ▼0.11 | 81.15 ▼22.29 | 74.95 ▲35.71 |
Posts /wp-admin/edit.php | 2,152 ▲55 | 2.01 ▼0.00 | 34.85 ▼2.80 | 35.30 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,571 ▲40 | 23.18 ▲0.26 | 743.25 ▲116.82 | 57.91 ▲6.11 |
Media Library /wp-admin/upload.php | 1,455 ▲52 | 4.17 ▼0.00 | 92.60 ▼3.16 | 69.44 ▲27.51 |
Labels /wp-admin/admin.php?page=wp-championship/cs_admin_labels.php | 1,670 | 1.96 | 33.53 | 32.80 |
Player /wp-admin/admin.php?page=wp-championship/cs_admin_users.php | 1,109 | 2.00 | 23.59 | 30.10 |
Stats /wp-admin/admin.php?page=wp-championship/cs_admin_stats.php | 896 | 2.03 | 25.65 | 26.69 |
Preliminary /wp-admin/admin.php?page=wp-championship/cs_admin_match.php | 977 | 2.00 | 25.65 | 29.44 |
Guessing-game /wp-admin/users.php?page=wpcs-usertipp | 914 | 2.00 | 26.73 | 31.88 |
Finals /wp-admin/admin.php?page=wp-championship/cs_admin_finals.php | 1,131 | 2.00 | 24.66 | 29.20 |
Teams /wp-admin/admin.php?page=wp-championship/cs_admin_team.php | 1,038 | 2.13 | 21.87 | 24.30 |
Guessing-game /wp-admin/admin.php?page=wp-championship/cs_admin.php | 1,385 | 1.78 | 25.94 | 34.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 5 tables in the database
- cs_tippgroup
- cs_match
- cs_users
- cs_tipp
- cs_team
- Zombie WordPress options were found after uninstall: 26 options
- cs_rank_trend
- cs_pts_goalsum
- cs_pts_oneside
- can_compress_scripts
- cs_pts_deuce
- widget_theysaidso_widget
- cs_pts_supertipp
- widget_wp-championship-tippgroup
- theysaidso_admin_options
- widget_recent-comments
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=wp-championship/cs_admin_stats.php
- > Notice in wp-content/plugins/wp-championship/functions.php+1341
Trying to get property 'wteam' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-championship/cs_admin_stats.php
- > Notice in wp-content/plugins/wp-championship/functions.php+1359
Trying to get property 'name' of non-object
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
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-championship/func-pie.php
- > /wp-content/plugins/wp-championship/cs-usertipp.php
- > /wp-content/plugins/wp-championship/cs-stats.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined offset: 0 in wp-content/plugins/wp-championship/func-pie.php on line 76
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/class-IXR.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-championship/class-wpc-xmlrpc.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_file_name() in wp-content/plugins/wp-championship/cs-userstats.php:25
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-championship/class-wpc-xmlrpc.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-championship/wpc-autoupdate.php:73
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-championship/globals.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_file_name() in wp-content/plugins/wp-championship/cs-groupstats.php:24
- > PHP Warning
require_once(ABSPATHwp-includes/class-IXR.php): failed to open stream: No such file or directory in wp-content/plugins/wp-championship/class-wpc-xmlrpc.php on line 25
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-championship/globals.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-championship/class-cs-widget-tippgroup.php:27
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/users.php?page=wpcs-usertipp
- > Javascript (severe) in unknown
/wp-admin/users.php?page=wpcs-usertipp 147:31 Uncaught SyntaxError: Unexpected token '&'
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: soccer, team, plugin, game, guessing...
wp-championship/wp-championship.php Passed 13 tests
Analyzing the main PHP file in "wp-championship" version 10.1
103 characters long description:
wp-championship is a plugin for wordpress letting you play a guessing game of a tournament e.g. soccer.
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
Success! There were no dangerous files found in this plugin12,932 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,259 | 2,167 | 7,757 |
SQL | 20 | 224 | 440 | 3,406 |
PO File | 2 | 626 | 811 | 1,286 |
JavaScript | 5 | 59 | 64 | 245 |
CSS | 2 | 38 | 27 | 222 |
make | 1 | 3 | 3 | 16 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 8.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 13 | 61.90% |
▷ Protected methods | 8 | 38.10% |
▷ Private methods | 0 | 0.00% |
Functions | 77 | |
▷ Named functions | 67 | 87.01% |
▷ Anonymous functions | 10 | 12.99% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
234 PNG files occupy 0.62MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/wm2018/cr.png | 3.20KB | 2.73KB | ▼ 14.77% |
icons/borussia-moenchengladbach-wappen.png | 2.29KB | 1.72KB | ▼ 25.05% |
icons/wm2022/switzerland.png | 0.43KB | 0.24KB | ▼ 43.61% |
worldcup-icon.png | 0.81KB | 0.91KB | 0.00% |
icons/hrv.png | 2.56KB | 2.07KB | ▼ 19.07% |