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.62MB] [CPU: ▲0.41ms] Passed 4 tests
An overview of server-side resources used by Simple Golf Club
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 46.04 ▲10.50 |
Dashboard /wp-admin | 3.95 ▲0.61 | 50.69 ▼5.47 |
Posts /wp-admin/edit.php | 4.00 ▲0.65 | 54.00 ▲7.46 |
Add New Post /wp-admin/post-new.php | 6.87 ▲0.98 | 88.25 ▼5.86 |
Media Library /wp-admin/upload.php | 3.81 ▲0.58 | 38.93 ▲5.51 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sgc_scorecard | 3.93 | 35.54 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=sgc_team | 3.93 | 42.80 |
All Locations /wp-admin/edit.php?post_type=sgc_location | 3.93 | 38.86 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=sgc_location | 3.94 | 37.98 |
Add New Location /wp-admin/post-new.php?post_type=sgc_location | 6.85 | 86.55 |
All Events /wp-admin/edit.php?post_type=sgc_event | 3.93 | 39.88 |
Add New Team /wp-admin/post-new.php?post_type=sgc_team | 6.85 | 85.98 |
Add New Event /wp-admin/post-new.php?post_type=sgc_event | 6.39 | 71.88 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sgc_event | 3.93 | 38.88 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=sgc_event | 3.94 | 38.71 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
category_children |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Golf Club
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,211 ▲450 | 13.62 ▼0.91 | 5.10 ▲3.50 | 38.53 ▼1.99 |
Dashboard /wp-admin | 2,491 ▲317 | 5.86 ▲0.30 | 86.83 ▼1.76 | 41.95 ▲1.72 |
Posts /wp-admin/edit.php | 2,341 ▲241 | 2.30 ▲0.28 | 35.90 ▲0.60 | 36.79 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,711 ▲185 | 23.47 ▲0.03 | 649.91 ▼31.91 | 35.09 ▼22.00 |
Media Library /wp-admin/upload.php | 1,619 ▲219 | 4.47 ▲0.28 | 96.44 ▼12.64 | 40.33 ▼6.99 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sgc_scorecard | 1,535 | 1.92 | 29.73 | 28.50 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=sgc_team | 1,671 | 1.94 | 29.65 | 32.47 |
All Locations /wp-admin/edit.php?post_type=sgc_location | 1,360 | 2.27 | 33.11 | 30.91 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=sgc_location | 1,668 | 1.94 | 29.20 | 31.64 |
Add New Location /wp-admin/post-new.php?post_type=sgc_location | 7,062 | 23.19 | 876.42 | 34.26 |
All Events /wp-admin/edit.php?post_type=sgc_event | 1,394 | 2.24 | 34.74 | 30.14 |
Add New Team /wp-admin/post-new.php?post_type=sgc_team | 6,453 | 20.71 | 768.00 | 28.88 |
Add New Event /wp-admin/post-new.php?post_type=sgc_event | 7,073 | 20.65 | 756.86 | 90.36 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=sgc_event | 1,535 | 1.99 | 30.63 | 30.31 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=sgc_event | 1,668 | 1.94 | 29.07 | 32.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- category_children
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sgc_event
- > Notice in wp-content/plugins/simple-golf-club/admin/class-sgc-admin-events.php+146
date_default_timezone_set(): Timezone ID '' is invalid
SRP 50% 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
Almost there! Just fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-golf-club/admin/partials/sgc-widget-events.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/simple-golf-club/admin/partials/sgc-admin-teams.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/simple-golf-club/admin/partials/sgc-admin-settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/simple-golf-club/admin/partials/sgc-admin-players.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/simple-golf-club/admin/partials/sgc-admin-locations.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/simple-golf-club/admin/partials/sgc-admin-settings-general.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-golf-club/admin/partials/sgc-admin-settings-about.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/simple-golf-club/admin/partials/sgc-admin-events.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-golf-club/admin/partials/sgc-admin-scorecards.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=sgc_team
- > Network (severe)
wp-json/wp/v2/sgc_players?order=asc&orderby=title&per_page=16&page=1&search= - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=sgc_event
- > Network (severe)
wp-json/wp/v2/sgc_locations?order=asc&orderby=title&per_page=16&page=1&search= - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=sgc_event
- > Network (severe)
wp-json/wp/v2/sgc_teams?order=asc&orderby=title&per_page=16&page=1&search= - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #10, #11, #7, #8, #9 in simple-golf-club/assets to your readme.txt
simple-golf-club/simplegolfclub.php 77% from 13 tests
"Simple Golf Club" version 1.6.21's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-golf-club.php" instead of "simplegolfclub.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,371 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 433 | 1,027 | 3,210 |
JavaScript | 13 | 193 | 395 | 831 |
CSS | 6 | 14 | 27 | 330 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 34 | 39.08% |
▷ Public methods | 74 | 85.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 14.94% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected