Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.56MB] [CPU: ▼50.39ms] Passed 4 tests
An overview of server-side resources used by MSTW Schedules & Scoreboards
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼1.02 | 11.90 ▼25.73 |
Dashboard /wp-admin | 2.46 ▼0.89 | 11.70 ▼47.07 |
Posts /wp-admin/edit.php | 2.46 ▼0.90 | 13.55 ▼30.71 |
Add New Post /wp-admin/post-new.php | 2.46 ▼3.43 | 11.48 ▼98.06 |
Media Library /wp-admin/upload.php | 2.46 ▼0.77 | 10.95 ▼24.09 |
Games /wp-admin/edit.php?post_type=mstw_ss_game | 2.46 | 13.48 |
Schedules /wp-admin/edit.php?post_type=mstw_ss_schedule | 2.46 | 11.27 |
Teams /wp-admin/edit.php?post_type=mstw_ss_team | 2.46 | 12.23 |
CSV Import /wp-admin/edit.php?post_type=mstw_ss_game&page=mstw_ss_import_csv_page | 2.46 | 9.18 |
Settings /wp-admin/edit.php?post_type=mstw_ss_game&page=mstw-ss-settings | 2.46 | 13.62 |
Sports /wp-admin/edit.php?post_type=mstw_ss_sport | 2.46 | 16.81 |
Venues /wp-admin/edit.php?post_type=mstw_ss_venue | 2.46 | 12.69 |
Server storage [IO: ▲1.29MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 13 new options
New WordPress options |
---|
mstw_ss_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
mstw_ss_version |
widget_recent-posts |
theysaidso_admin_options |
mstw_ss_venue_options |
mstw_ss_dtg_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for MSTW Schedules & Scoreboards
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,094 ▲348 | 15.45 ▲1.05 | 6.52 ▲4.55 | 42.39 ▲2.13 |
Dashboard /wp-admin | 2,383 ▲195 | 6.46 ▲0.56 | 135.15 ▲32.55 | 91.57 ▲48.51 |
Posts /wp-admin/edit.php | 2,317 ▲228 | 3.48 ▲1.48 | 59.44 ▲17.80 | 76.37 ▲43.57 |
Add New Post /wp-admin/post-new.php | 1,577 ▲58 | 23.03 ▼0.09 | 662.68 ▼8.33 | 41.33 ▼12.57 |
Media Library /wp-admin/upload.php | 1,453 ▲74 | 4.12 ▼0.03 | 82.81 ▼15.52 | 90.15 ▲47.58 |
Games /wp-admin/edit.php?post_type=mstw_ss_game | 1,371 | 3.44 | 44.89 | 74.52 |
Schedules /wp-admin/edit.php?post_type=mstw_ss_schedule | 1,298 | 3.58 | 46.48 | 61.97 |
Teams /wp-admin/edit.php?post_type=mstw_ss_team | 1,312 | 3.45 | 46.60 | 76.58 |
CSV Import /wp-admin/edit.php?post_type=mstw_ss_game&page=mstw_ss_import_csv_page | 1,280 | 3.07 | 42.46 | 65.98 |
Settings /wp-admin/edit.php?post_type=mstw_ss_game&page=mstw-ss-settings | 1,545 | 3.36 | 43.01 | 79.83 |
Sports /wp-admin/edit.php?post_type=mstw_ss_sport | 1,312 | 3.46 | 48.73 | 75.28 |
Venues /wp-admin/edit.php?post_type=mstw_ss_venue | 1,312 | 3.58 | 44.67 | 63.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-schedule-widget.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; mstw_ss_sched_widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 13 options
- widget_theysaidso_widget
- mstw_ss_color_options
- mstw_ss_dtg_options
- widget_recent-comments
- widget_recent-posts
- mstw_ss_version
- theysaidso_admin_options
- mstw_ss_options
- db_upgraded
- can_compress_scripts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mstw_ss_venue
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-schedule-widget.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; mstw_ss_sched_widget has a deprecated constructor
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mstw_ss_venue
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-cdt-widget.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; mstw_ss_cdt_widget has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=mstw_ss_game&page=mstw-ss-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=mstw_ss_game&page=mstw-ss-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please fix the following
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-schedule-cpt-admin.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-schedule-slider.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-venue-cpt-admin.php:28
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-cdt-widget.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-countdown-timer.php:30
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-schedule-widget.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mstw-schedules-scoreboards/templates/single-game.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-schedule-table.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-globals.php:29
- > PHP Warning
include_once(): Failed opening 'WP_PLUGIN_DIR/mstw-schedules-scoreboards/includes/mstw-ss-globals.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mstw-schedules-scoreboards/mstw-schedules-scoreboards.php on line 33
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=mstw_ss_game&page=mstw-ss-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: $sbt_date_header_color
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: countdown timer, team schedule, schedule, scoreboards, sports...
mstw-schedules-scoreboards/mstw-schedules-scoreboards.php Passed 13 tests
"MSTW Schedules & Scoreboards" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
Replaces the MSTW Game Schedules plugin. Includes game schedules and scoreboards.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin11,584 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,908 | 4,971 | 7,784 |
PO File | 1 | 663 | 835 | 1,851 |
CSS | 2 | 157 | 144 | 1,745 |
JavaScript | 9 | 106 | 147 | 204 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 61.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 89.09% |
▷ Protected methods | 6 | 10.91% |
▷ Private methods | 0 | 0.00% |
Functions | 183 | |
▷ Named functions | 183 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.51MB with 0.50MB 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/logos/mstw-logo-square-150x150.png | 57.04KB | 1.63KB | ▼ 97.15% |
images/next.png | 49.45KB | 0.20KB | ▼ 99.59% |
images/logos/default-table-logo.png | 51.75KB | 0.48KB | ▼ 99.07% |
images/logos/mstw-logo-41x28.png | 51.75KB | 0.48KB | ▼ 99.07% |