Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.63ms] Passed 4 tests
An overview of server-side resources used by Simple Baseball Scoreboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.16 | 36.06 ▲14.87 |
Dashboard /wp-admin | 3.12 ▲0.06 | 47.02 ▲2.10 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 41.66 ▼5.31 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 85.05 ▼560.90 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 32.76 ▼2.39 |
Simple BBScoreboard /wp-admin/options-general.php?page=simple-baseball-scoreboard/ytmr_simple_baseball_scoreboard.php | 3.03 | 28.81 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
YTMRBBScoreBoard |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Baseball Scoreboard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,693 ▲98 | 15.98 ▲0.47 | 8.38 ▼0.65 | 43.55 ▼4.34 |
Dashboard /wp-admin | 2,978 ▲47 | 5.91 ▼0.13 | 136.03 ▼1.08 | 114.81 ▲6.35 |
Posts /wp-admin/edit.php | 2,750 ▲11 | 2.72 ▲0.02 | 64.86 ▼3.04 | 91.27 ▼8.00 |
Add New Post /wp-admin/post-new.php | 1,880 ▲208 | 19.12 ▲0.40 | 358.52 ▼0.09 | 113.10 ▲8.88 |
Media Library /wp-admin/upload.php | 1,821 ▲11 | 5.05 ▲0.03 | 155.18 ▲10.68 | 113.50 ▲2.94 |
Simple BBScoreboard /wp-admin/options-general.php?page=simple-baseball-scoreboard/ytmr_simple_baseball_scoreboard.php | 1,309 | 2.46 | 52.82 | 88.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 items
- 1× 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/simple-baseball-scoreboard/ytmr_simple_baseball_scoreboard.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI found ("")
simple-baseball-scoreboard/ytmr_simple_baseball_scoreboard.php 92% from 13 tests
The principal PHP file in "Simple Baseball Scoreboard" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-baseball-scoreboard.php" instead of "ytmr_simple_baseball_scoreboard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin224 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 2 | 49 | 203 |
JavaScript | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected