Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.48MB] [CPU: ▼34.45ms] Passed 4 tests
This is a short check of server-side resources used by Coaching Staffs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 29.31 ▼13.66 |
Dashboard /wp-admin | 3.48 ▲0.17 | 29.07 ▼21.68 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 25.13 ▼32.09 |
Add New Post /wp-admin/post-new.php | 3.48 ▼2.41 | 26.81 ▼70.35 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 29.78 ▼5.95 |
Staff Positions /wp-admin/edit.php?post_type=staff_position | 3.48 | 34.61 |
Staffs /wp-admin/edit-tags.php?taxonomy=staffs&post_type=staff_position | 3.48 | 27.16 |
Coaches /wp-admin/edit.php?post_type=coach | 3.48 | 25.29 |
Display Settings /wp-admin/admin.php?page=mstw-cs-display-settings | 3.48 | 27.08 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Coaching Staffs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲111 | 13.42 ▼0.97 | 1.64 ▼0.60 | 43.31 ▼8.98 |
Dashboard /wp-admin | 2,249 ▲58 | 5.05 ▲0.14 | 110.18 ▲6.28 | 87.81 ▲46.50 |
Posts /wp-admin/edit.php | 2,132 ▲46 | 2.29 ▲0.29 | 34.97 ▼7.81 | 34.81 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,577 ▲57 | 23.14 ▼0.06 | 699.12 ▼29.70 | 37.69 ▼16.75 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.50 ▲0.23 | 110.29 ▲3.70 | 100.57 ▲53.44 |
Staff Positions /wp-admin/edit.php?post_type=staff_position | 1,124 | 2.25 | 34.66 | 31.63 |
Staffs /wp-admin/edit-tags.php?taxonomy=staffs&post_type=staff_position | 1,296 | 2.00 | 30.52 | 30.92 |
Coaches /wp-admin/edit.php?post_type=coach | 1,149 | 2.27 | 33.86 | 30.90 |
Display Settings /wp-admin/admin.php?page=mstw-cs-display-settings | 3,447 | 3.37 | 118.53 | 36.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/coaching-staffs/includes/mstw-coaching-staffs-admin.php+601
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 264 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mstw-cs-display-settings
- > Notice in wp-content/plugins/coaching-staffs/includes/mstw-coaching-staffs-admin.php+1439
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/coaching-staffs/theme-templates/single-coach.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/coaching-staffs/includes/mstw-coaching-staffs-admin.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/coaching-staffs/theme-templates/taxonomy-staffs.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/coaching-staffs/mstw-coaching-staffs.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: sports roster, sports team roster, sports teams, sports, roster...
coaching-staffs/mstw-coaching-staffs.php 85% from 13 tests
"Coaching Staffs" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("coaching-staffs.php" instead of "mstw-coaching-staffs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,855 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 678 | 1,062 | 2,607 |
CSS | 2 | 43 | 55 | 220 |
JavaScript | 1 | 5 | 1 | 28 |
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.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 84 | |
▷ Named functions | 84 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.28MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mstw-logo-32x32.png | 52.27KB | 0.48KB | ▼ 99.09% |
images/mstw-admin-menu-icon.png | 51.45KB | 0.27KB | ▼ 99.47% |
images/mstw-logo-16x16.png | 51.45KB | 0.27KB | ▼ 99.47% |
images/mstw-logo-square.png | 57.07KB | 1.56KB | ▼ 97.27% |
images/logo-square-615x615.png | 77.52KB | 4.83KB | ▼ 93.77% |