Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.88MB] [CPU: ▼35.57ms] Passed 4 tests
Analyzing server-side resources used by Teams of Tennis
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.87 ▼0.61 |
Dashboard /wp-admin | 3.06 ▼0.24 | 27.45 ▼32.84 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 24.76 ▼24.60 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 26.55 ▼70.70 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 22.57 ▼14.14 |
Teams of Tennis /wp-admin/options-general.php?page=Teams-of-Tennis | 3.06 | 26.05 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 9 new options
New WordPress options |
---|
vr_tennisballmodus_link |
vr_tennisclub_link |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
vr_tennisteam_link |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Teams of Tennis
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▲0.11 | 1.92 ▲0.36 | 43.39 ▼2.37 |
Dashboard /wp-admin | 2,202 ▲25 | 5.57 ▼0.00 | 94.59 ▼2.63 | 42.32 ▼9.04 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.00 | 34.17 ▼3.82 | 32.94 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.19 ▼0.48 | 676.07 ▲10.51 | 62.75 ▲12.01 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.15 ▼0.02 | 112.12 ▲4.83 | 46.60 ▼2.23 |
Teams of Tennis /wp-admin/options-general.php?page=Teams-of-Tennis | 830 | 1.99 | 22.57 | 28.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method VR_TennisOptions::register_options_page() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=Teams-of-Tennis
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method VR_TennisOptions::register_options_page() should not be called statically
- > GET request to /wp-admin/options-general.php?page=Teams-of-Tennis
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method VR_TennisOptions::register_settings() should not be called statically
- > GET request to /wp-admin/options-general.php?page=Teams-of-Tennis
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method VR_TennisOptions::options_page() should not be called statically
- > GET request to /wp-admin/options-general.php?page=Teams-of-Tennis
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=Teams-of-Tennis
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/teams-of-tennis/templates/teamlink.php
- > /wp-content/plugins/teams-of-tennis/templates/clublink.php
- 24× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/teams-of-tennis/templates/available.php on line 11
- > PHP Notice
Undefined variable: player_ids in wp-content/plugins/teams-of-tennis/templates/available.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/teams-of-tennis/includes/teamlink.php:7
- > PHP Notice
Undefined variable: teamPortraitLink in wp-content/plugins/teams-of-tennis/templates/teamlink.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/teams-of-tennis/includes/install.php:7
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/teams-of-tennis/templates/available.php on line 21
- > PHP Notice
Undefined variable: height in wp-content/plugins/teams-of-tennis/templates/clublink.php on line 1
- > PHP Notice
Undefined variable: scores in wp-content/plugins/teams-of-tennis/templates/livescore.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/teams-of-tennis/templates/livescore.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/teams-of-tennis/includes/livescore.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
teams-of-tennis/teams-of-tennis.php Passed 13 tests
The principal PHP file in "Teams of Tennis" v. 1.0.3 is loaded by WordPress automatically on each request
43 characters long description:
manage tennis teams and clubs from BTV page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,875 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 294 | 279 | 1,875 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 8 | 6.96% |
▷ Public methods | 92 | 80.00% |
▷ Protected methods | 16 | 13.91% |
▷ Private methods | 7 | 6.09% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 26 | |
▷ Global constants | 25 | 96.15% |
▷ Class constants | 1 | 3.85% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/unknown.png | 3.11KB | 0.59KB | ▼ 81.05% |
public/images/yes.png | 3.16KB | 0.56KB | ▼ 82.39% |
public/images/ifneeded.png | 3.44KB | 0.85KB | ▼ 75.42% |
public/images/trash.png | 1.48KB | 1.17KB | ▼ 20.84% |
public/images/no.png | 3.27KB | 0.75KB | ▼ 77.10% |