Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-club-manager/includes/class-wpcm-install.php+182
Trying to get property 'soccer' of non-object
Server metrics [RAM: ▲2.19MB] [CPU: ▲1.92ms] Passed 4 tests
This is a short check of server-side resources used by WP Club Manager - WordPress Sports Club Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.88 ▲2.42 | 61.57 ▲14.96 |
Dashboard /wp-admin | 6.41 ▲3.06 | 71.20 ▲5.62 |
Posts /wp-admin/edit.php | 6.45 ▲3.10 | 76.22 ▲26.78 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 62.59 ▼39.70 |
Media Library /wp-admin/upload.php | 6.25 ▲3.02 | 74.19 ▲38.18 |
Settings /wp-admin/admin.php?page=wpcm-settings | 6.58 | 65.10 |
Venues /wp-admin/edit-tags.php?taxonomy=wpcm_venue&post_type=wpcm_club | 6.25 | 62.37 |
Add New /wp-admin/post-new.php?post_type=wpcm_staff | 6.14 | 61.40 |
Jobs /wp-admin/edit-tags.php?taxonomy=wpcm_jobs&post_type=wpcm_staff | 6.25 | 67.93 |
Competitions /wp-admin/edit-tags.php?taxonomy=wpcm_comp&post_type=wpcm_club | 6.25 | 61.70 |
Status /wp-admin/admin.php?page=wpcm-status | 6.32 | 56.09 |
All Staff /wp-admin/edit.php?post_type=wpcm_staff | 6.32 | 64.54 |
Dashboard /wp-admin/admin.php?page=wpcm-dashboard | 6.29 | 54.74 |
Teams /wp-admin/edit-tags.php?taxonomy=wpcm_team&post_type=wpcm_player | 6.25 | 62.16 |
All Matches /wp-admin/edit.php?post_type=wpcm_match | 6.32 | 62.71 |
Server storage [IO: ▲8.88MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 558 new files
Database: no new tables, 114 new options
New WordPress options |
---|
wpcm_standings_orderby |
wpcm_staff_profile_show_nationality |
wpcm_mode |
wpcm_player_profile_show_age |
wpcm_player_profile_show_joined |
wpcm_player_profile_show_hometown |
wpcm_match_show_stats_yellowcards |
wpcm_match_show_stats_assists |
wpcm_standings_orderby_3 |
widget_wpcm_players_widget |
... |
Browser metrics Passed 4 tests
WP Club Manager - WordPress Sports Club Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,244 ▲498 | 13.66 ▼0.50 | 7.12 ▲5.22 | 39.50 ▼5.23 |
Dashboard /wp-admin | 2,501 ▲319 | 4.95 ▲0.05 | 105.95 ▼0.34 | 64.17 ▲20.83 |
Posts /wp-admin/edit.php | 2,353 ▲264 | 2.19 ▲0.20 | 36.87 ▼3.38 | 40.01 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,734 ▲220 | 21.76 ▲4.08 | 730.36 ▲54.08 | 63.47 ▲0.25 |
Media Library /wp-admin/upload.php | 1,649 ▲258 | 4.14 ▼0.14 | 109.24 ▲3.58 | 87.47 ▲38.30 |
Settings /wp-admin/admin.php?page=wpcm-settings | 2,762 | 2.39 | 52.88 | 43.56 |
Venues /wp-admin/edit-tags.php?taxonomy=wpcm_venue&post_type=wpcm_club | 2,214 | 6.63 | 158.31 | 131.24 |
Add New /wp-admin/post-new.php?post_type=wpcm_staff | 3,904 | 7.68 | 202.08 | 149.44 |
Jobs /wp-admin/edit-tags.php?taxonomy=wpcm_jobs&post_type=wpcm_staff | 1,585 | 2.12 | 30.93 | 41.72 |
Competitions /wp-admin/edit-tags.php?taxonomy=wpcm_comp&post_type=wpcm_club | 1,574 | 2.25 | 33.66 | 51.30 |
Status /wp-admin/admin.php?page=wpcm-status | 1,584 | 2.16 | 34.42 | 42.34 |
All Staff /wp-admin/edit.php?post_type=wpcm_staff | 1,377 | 2.30 | 33.64 | 34.43 |
Dashboard /wp-admin/admin.php?page=wpcm-dashboard | 1,311 | 1.76 | 26.22 | 49.53 |
Teams /wp-admin/edit-tags.php?taxonomy=wpcm_team&post_type=wpcm_player | 1,581 | 2.26 | 32.66 | 43.08 |
All Matches /wp-admin/edit.php?post_type=wpcm_match | 1,425 | 2.30 | 39.51 | 36.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 16 options in the database
- widget_wpcm_sponsors_widget
- staff_single_image_size
- player_thumbnail_image_size
- widget_recent-posts
- player_single_image_size
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_wpcm_results
- widget_wpcm_birthdays
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpcm_staff
- > User notice in wp-includes/functions.php+5905
Function WP_Object_Cache::delete was called incorrectly. Cache key must be an integer or a non-empty string, NULL given. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpcm-dashboard
- > Notice in wp-content/plugins/wp-club-manager/includes/admin/class-wpcm-admin-dashboard.php+60
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=wpcm-dashboard
- > Notice in wp-content/plugins/wp-club-manager/includes/admin/class-wpcm-admin-dashboard.php+60
Trying to get property 'slug' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpcm-dashboard
- > Notice in wp-content/plugins/wp-club-manager/includes/admin/class-wpcm-admin-dashboard.php+282
Trying to get property 'term_id' of non-object
- > GET request to /wp-admin/admin.php?page=wpcm-dashboard
- > Notice in wp-content/plugins/wp-club-manager/includes/admin/views/html-admin-page-dashboard.php+8
Trying to get property 'name' of non-object
SRP 50% 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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-club-manager/includes/class-wpcm-taxonomy-order.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wp-club-manager/includes/libraries/tgm-plugin-activation/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-club-manager/includes/admin/views/html-admin-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-club-manager/assets/js/admin/editor-lang.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_post_thumbnail() in wp-content/plugins/wp-club-manager/includes/admin/views/html-admin-page-dashboard.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-club-manager/templates/layout/wrapper-end.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/wp-club-manager/includes/admin/views/html-admin-sidebar.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/edit-tags.php?taxonomy=wpcm_venue&post_type=wpcm_club
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?key&libraries=places&ver=6.3.1 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/edit-tags.php?taxonomy=wpcm_venue&post_type=wpcm_club
- > Console-api (severe) in unknown
http://maps.googleapis.com/maps/api/js?key&libraries=places&ver=6.3.1 153:248 "Geocoding Service: You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account"
- > GET request to /wp-admin/edit-tags.php?taxonomy=wpcm_venue&post_type=wpcm_club
- > Console-api (severe) in unknown
http://maps.googleapis.com/maps/api/js?key&libraries=places&ver=6.3.1 153:248 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
- > GET request to /wp-admin/post-new.php?post_type=wpcm_staff
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=wpcm_staff 2108:2 Uncaught TypeError: tinyMCE.addI18n(...) is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: fixtures, sport, club, team rosters, sports club...
wp-club-manager/wpclubmanager.php 92% from 13 tests
Analyzing the main PHP file in "WP Club Manager - WordPress Sports Club Plugin" version 2.2.10
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-club-manager.php" instead of "wpclubmanager.php")
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
No dangerous file extensions were detected140,010 lines of code in 252 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 27 | 39,397 | 68,779 | 86,817 |
PHP | 178 | 5,408 | 6,939 | 23,551 |
CSS | 10 | 1,524 | 1,958 | 16,341 |
JavaScript | 36 | 1,034 | 1,061 | 13,290 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 5.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 96 | |
▷ Abstract classes | 1 | 1.04% |
▷ Concrete classes | 95 | 98.96% |
▷ Final classes | 1 | 1.05% |
Methods | 519 | |
▷ Static methods | 121 | 23.31% |
▷ Public methods | 481 | 92.68% |
▷ Protected methods | 24 | 4.62% |
▷ Private methods | 14 | 2.70% |
Functions | 177 | |
▷ Named functions | 172 | 97.18% |
▷ Anonymous functions | 5 | 2.82% |
Constants | 13 | |
▷ Global constants | 10 | 76.92% |
▷ Class constants | 3 | 23.08% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
265 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags/ma.png | 0.42KB | 0.60KB | 0.00% |
assets/images/flags/ct.png | 0.39KB | 0.64KB | 0.00% |
assets/images/flags/lk.png | 0.61KB | 0.72KB | 0.00% |
assets/js/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/images/flags/hn.png | 0.52KB | 0.70KB | 0.00% |