Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.86MB] [CPU: ▼3.64ms] Passed 4 tests
Server-side resources used by Disc Golf Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.37 ▲0.90 | 43.39 ▲2.42 |
Dashboard /wp-admin | 4.20 ▲0.85 | 56.20 ▼5.88 |
Posts /wp-admin/edit.php | 4.25 ▲0.89 | 57.35 ▲4.07 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.85 | 93.40 ▼13.54 |
Media Library /wp-admin/upload.php | 4.06 ▲0.83 | 40.58 ▲2.45 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_seasons | 4.10 | 48.93 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_leagues | 4.25 | 58.10 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_players | 4.17 | 49.58 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_scores | 4.21 | 49.53 |
Scores /wp-admin/edit.php?post_type=disc_golf_scores | 4.17 | 42.85 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_events | 4.23 | 53.17 |
Settings /wp-admin/admin.php?page=disc_golf_settings | 4.05 | 39.02 |
Players /wp-admin/edit.php?post_type=disc_golf_players | 4.16 | 40.39 |
Seasons /wp-admin/edit.php?post_type=disc_golf_seasons | 4.16 | 40.97 |
Import /wp-admin/admin.php?page=disc_golf_import | 4.04 | 37.57 |
Server storage [IO: ▲0.34MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
disc_golf_migrations |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
disc_golf_notifications |
Browser metrics Passed 4 tests
Disc Golf Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲106 | 14.31 ▼0.04 | 1.61 ▼0.60 | 38.76 ▼4.80 |
Dashboard /wp-admin | 2,280 ▲109 | 5.75 ▲0.18 | 88.76 ▼14.62 | 39.87 ▼2.15 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 2.20 ▲0.06 | 38.05 ▲0.57 | 33.10 ▼4.62 |
Add New Post /wp-admin/post-new.php | 1,598 ▲72 | 22.90 ▼0.71 | 670.73 ▼13.30 | 62.94 ▲6.81 |
Media Library /wp-admin/upload.php | 1,485 ▲82 | 4.49 ▲0.35 | 98.08 ▼19.57 | 42.62 ▼5.85 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_seasons | 1,312 | 2.57 | 46.21 | 54.69 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_leagues | 1,962 | 7.44 | 159.84 | 58.74 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_players | 1,337 | 2.52 | 46.22 | 43.14 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_scores | 1,430 | 2.79 | 62.42 | 31.05 |
Scores /wp-admin/edit.php?post_type=disc_golf_scores | 1,260 | 2.18 | 32.32 | 30.18 |
Hidden /wp-admin/post-new.php?post_type=disc_golf_events | 1,784 | 6.19 | 119.71 | 53.25 |
Settings /wp-admin/admin.php?page=disc_golf_settings | 955 | 1.91 | 25.89 | 24.64 |
Players /wp-admin/edit.php?post_type=disc_golf_players | 1,132 | 2.14 | 32.51 | 31.56 |
Seasons /wp-admin/edit.php?post_type=disc_golf_seasons | 1,124 | 2.14 | 33.80 | 30.35 |
Import /wp-admin/admin.php?page=disc_golf_import | 924 | 1.77 | 24.53 | 28.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- disc_golf_notifications
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- disc_golf_migrations
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/disc-golf-manager/views/meta_box_leagues_seasons.php
- > /wp-content/plugins/disc-golf-manager/views/shortcode_disc_golf_event.php
- > /wp-content/plugins/disc-golf-manager/views/shortcode_disc_golf_overview.php
- > /wp-content/plugins/disc-golf-manager/views/shortcode_disc_golf_division.php
- > /wp-content/plugins/disc-golf-manager/views/shortcode_disc_golf_player.php
- > /wp-content/plugins/disc-golf-manager/views/shortcode_disc_golf_future_events.php
- 48× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disc-golf-manager/main.php:3809
- > PHP Notice
Undefined variable: leagues in wp-content/plugins/disc-golf-manager/views/meta_box_events_details.php on line 3
- > PHP Notice
Undefined variable: event_base_url in wp-content/plugins/disc-golf-manager/views/shortcode_disc_golf_future_events.php on line 8
- > PHP Notice
Undefined variable: player_base_url in wp-content/plugins/disc-golf-manager/views/shortcode_disc_golf_player.php on line 10
- > PHP Notice
Undefined variable: divisions in wp-content/plugins/disc-golf-manager/views/meta_box_scores_details.php on line 8
- > PHP Notice
Undefined variable: action in wp-content/plugins/disc-golf-manager/views/admin.php on line 1
- > PHP Notice
Undefined variable: seasons in wp-content/plugins/disc-golf-manager/views/meta_box_leagues_seasons.php on line 3
- > PHP Notice
Undefined variable: event_base_url in wp-content/plugins/disc-golf-manager/views/shortcode_disc_golf_player.php on line 11
- > PHP Notice
Undefined variable: json_events in wp-content/plugins/disc-golf-manager/views/shortcode_disc_golf_player.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/disc-golf-manager/views/meta_box_players_details.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: tournament, disc, director, golf, manage...
disc-golf-manager/main.php 92% from 13 tests
This is the main PHP file of "Disc Golf Manager" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("disc-golf-manager.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,081 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 753 | 476 | 4,404 |
JavaScript | 12 | 387 | 25 | 1,454 |
CSS | 6 | 44 | 50 | 1,223 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 282.50 |
▷ Minimum class complexity | 105.00 |
▷ Maximum class complexity | 460.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 2 | 1.54% |
▷ Public methods | 126 | 96.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.08% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.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
There were not PNG files found in your plugin