Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/prediction-league/admin.php+42
Uncaught Error: Call to undefined function mysql_real_escape_string() in wp-content/plugins/prediction-league/admin.php:42
Stack trace:
#0 wp-admin/includes/plugin.php(2318): include_once()
#1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.52ms] Passed 4 tests
This is a short check of server-side resources used by Prediction League
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.66 ▼4.46 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.47 ▼0.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.24 ▲0.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.74 ▼0.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.12 ▼0.52 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Prediction League: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.37 ▼0.01 | 1.84 ▲0.30 | 50.62 ▲11.33 |
Dashboard /wp-admin | 2,192 ▲15 | 5.63 ▼0.03 | 88.42 ▲0.56 | 42.17 ▲2.30 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▼0.02 | 38.89 ▲2.64 | 34.80 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.13 ▼0.08 | 650.29 ▼32.80 | 52.19 ▼12.01 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.02 | 94.56 ▼18.32 | 41.92 ▼4.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/prediction-league/styles.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function pl_get_number_of_competitions() in wp-content/plugins/prediction-league/view.php:20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/prediction-league/view.php on line 19
- > PHP Notice
Undefined offset: 2 in wp-content/plugins/prediction-league/styles.php on line 8
- > PHP Warning
implode(): Invalid arguments passed in wp-content/plugins/prediction-league/import_competition.php on line 151
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/prediction-league/styles.php on line 7
- > PHP Warning
file(): Filename cannot be empty in wp-content/plugins/prediction-league/import_competition.php on line 151
- > PHP Notice
Undefined index: pluginurl in wp-content/plugins/prediction-league/styles.php on line 10
- > PHP Notice
Undefined variable: pl_options in wp-content/plugins/prediction-league/view.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/prediction-league/admin.php:17
- > PHP Notice
Undefined index: colors in wp-content/plugins/prediction-league/styles.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: bracket game, soccer, football, prediction league, tippspiel
prediction-league/admin.php 92% from 13 tests
The main PHP script in "Prediction League" version 2.1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("prediction-league.php" instead of "admin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin6,981 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 3,362 |
PHP | 7 | 313 | 426 | 2,634 |
JavaScript | 5 | 261 | 285 | 836 |
HTML | 2 | 12 | 0 | 112 |
CSS | 1 | 22 | 21 | 37 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 81 | |
▷ Named functions | 81 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 226 | |
▷ Global constants | 226 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
color_picker/color_picker_files/images/mask.png | 12.36KB | 18.69KB | 0.00% |
graphics/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |