Benchmarks
Plugin footprint Passed 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.05MB] [CPU: ▼145.46ms] Passed 4 tests
Analyzing server-side resources used by Sports Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 40.26 ▲4.89 |
Dashboard /wp-admin | 3.16 ▲0.10 | 48.29 ▼6.20 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 51.03 ▲4.01 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 100.24 ▼584.52 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 39.45 ▲5.23 |
Server storage [IO: ▲0.70MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 114 new files
Database: 8 new tables, 1 new option
New tables |
---|
wp_sportsmanager_games |
wp_sportsmanager_clubs |
wp_sportsmanager_scoresheets |
wp_sportsmanager_teams |
wp_sportsmanager_locations |
wp_sportsmanager_leagues |
wp_sportsmanager_faq |
wp_sportsmanager_players |
New WordPress options |
---|
sportsmanager_disable_intro |
Browser metrics Passed 4 tests
Sports Manager: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,725 ▲130 | 16.34 ▲0.69 | 9.04 ▼1.35 | 53.74 ▼7.37 |
Dashboard /wp-admin | 2,995 ▲61 | 5.90 ▼0.08 | 142.20 ▼12.76 | 121.88 ▼4.48 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 2.84 ▲0.00 | 73.08 ▲3.67 | 106.52 ▲11.97 |
Add New Post /wp-admin/post-new.php | 1,701 ▲29 | 18.52 ▼0.43 | 390.54 ▲4.01 | 120.89 ▼0.93 |
Media Library /wp-admin/upload.php | 1,829 ▲22 | 5.04 ▼0.00 | 153.74 ▲3.65 | 130.97 ▲1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 26× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/sportsmanager/views/modal_edit_stats.php
- > /wp-content/plugins/sportsmanager/views/modal_edit_cell.php
- > /wp-content/plugins/sportsmanager/views/modal_edit_description.php
- > /wp-content/plugins/sportsmanager/views/header.php
- > /wp-content/plugins/sportsmanager/views/donate.php
- > /wp-content/plugins/sportsmanager/views/import.php
- > /wp-content/plugins/sportsmanager/views/modal_add_row.php
- > /wp-content/plugins/sportsmanager/views/modal_edit_players_id.php
- > /wp-content/plugins/sportsmanager/views/header_general.php
- > /wp-content/plugins/sportsmanager/views/frontend_player_stats_box.php
- 104× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sportsmanager/functions/install.php:116
- > PHP Fatal error
Uncaught Error: Class 'SportsManager_Frontend_Default' not found in wp-content/plugins/sportsmanager/classes/Scoresheet.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sportsmanager/views/frontend_filters.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sportsmanager/views/home.php on line 51
- > PHP Notice
Undefined variable: option_default_locations_url in wp-content/plugins/sportsmanager/views/home.php on line 82
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/sportsmanager/views/frontend_player_stats_box.php on line 18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sportsmanager/controllers/frontend_player_stats_box.php:3
- > PHP Notice
Undefined variable: version in wp-content/plugins/sportsmanager/views/footer.php on line 5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sportsmanager/languages/en.php:3
- > PHP Notice
Undefined variable: check_url in wp-content/plugins/sportsmanager/views/modal_intro.php on line 27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: league managing system, stats, sports, league, sports managing system...
sportsmanager/sportsmanager.php Passed 13 tests
The main PHP script in "Sports Manager" version 1.3.1 is automatically included on every request by WordPress
36 characters long description:
Manage your sport league like a pro!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,330 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 425 | 246 | 3,418 |
JavaScript | 7 | 67 | 56 | 1,198 |
CSS | 3 | 19 | 32 | 714 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 21.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 7.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
18 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrow_left.png | 1.14KB | 0.32KB | ▼ 71.89% |
images/sports/football.png | 3.89KB | 1.36KB | ▼ 65.17% |
images/icon_loupe.png | 1.21KB | 0.41KB | ▼ 66.29% |
images/sort_asc_disabled.png | 0.23KB | 0.25KB | 0.00% |
images/sort_desc_disabled.png | 0.24KB | 0.25KB | 0.00% |