Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.98ms] Passed 4 tests
A check of server-side resources used by MSTW Schedule Builder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 32.33 ▼3.59 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.47 ▼3.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.36 ▼3.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.42 ▼17.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.86 ▲1.40 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
MSTW Schedule Builder: 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,789 ▲3 | 14.26 ▲0.05 | 1.65 ▼0.19 | 44.82 ▲0.62 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.07 | 85.45 ▼7.74 | 38.12 ▼2.22 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.04 ▲0.04 | 37.61 ▲2.82 | 32.43 ▼6.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.67 ▲0.42 | 599.10 ▼6.20 | 65.24 ▲2.55 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.25 ▲0.05 | 97.87 ▼9.12 | 44.68 ▲2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mstw-schedule-builder/includes/mstw-sb-admin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mstw-schedule-builder/mstw-schedule-builder.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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: sports, leagues, schedules, games, tournaments...
mstw-schedule-builder/mstw-schedule-builder.php 92% from 13 tests
The main PHP script in "MSTW Schedule Builder" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.6" instead of "5.5.1")
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
There were no executable files found in this plugin4,987 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 799 | 1,349 | 2,558 |
CSS | 3 | 63 | 65 | 1,289 |
JavaScript | 5 | 290 | 210 | 1,140 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 55.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 60 | |
▷ Named functions | 60 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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
11 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/lm-header-bkgd.png | 49.90KB | 0.30KB | ▼ 99.40% |
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.09KB | 0.14KB | 0.00% |
images/mstw-logo-16x16.png | 51.45KB | 0.27KB | ▼ 99.47% |
css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/mstw-admin-menu-icon.png | 51.45KB | 0.27KB | ▼ 99.47% |