Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.05MB] [CPU: ▲7.36ms] Passed 4 tests
An overview of server-side resources used by Station Pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.52 ▲1.05 | 58.59 ▲19.78 |
Dashboard /wp-admin | 4.42 ▲1.11 | 58.38 ▲1.07 |
Posts /wp-admin/edit.php | 4.46 ▲1.11 | 66.83 ▲13.27 |
Add New Post /wp-admin/post-new.php | 6.96 ▲1.07 | 95.91 ▼4.69 |
Media Library /wp-admin/upload.php | 4.20 ▲0.97 | 56.06 ▲25.60 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.53 | 45.50 |
Server storage [IO: ▲12.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,020 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
stationpro |
fs_debug_mode |
fs_accounts |
stationpro-transients |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Station Pro
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,754 ▲8 | 22.47 ▲8.10 | 650.76 ▲648.59 | 49.32 ▲7.93 |
Dashboard /wp-admin | 2,283 ▲104 | 4.87 ▼0.94 | 111.55 ▲4.83 | 82.77 ▲38.99 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.04 ▲0.01 | 39.71 ▼2.25 | 34.12 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.28 ▲0.13 | 651.20 ▲57.37 | 53.53 ▲4.09 |
Media Library /wp-admin/upload.php | 1,426 ▲44 | 4.15 ▼0.04 | 104.92 ▲4.38 | 52.52 ▲9.37 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,074 | 1.85 | 26.15 | 33.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/station-pro/app/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 11 options
- widget_recent-comments
- widget_recent-posts
- fs_debug_mode
- widget_theysaidso_widget
- fs_accounts
- can_compress_scripts
- db_upgraded
- stationpro-transients
- fs_active_plugins
- stationpro
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/station-pro/core/inc/player/views/widget.php
- > /wp-content/plugins/station-pro/core/inc/player/views/main.php
- 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/station-pro/core/inc/fields/typography/field_typography.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/station-pro/core/inc/fields/editor/field_editor.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/station-pro/core/inc/fields/date/field_date.php:9
- > PHP Fatal error
Uncaught Error: Class 'Redux' not found in wp-content/plugins/station-pro/app/sections/fields/player_input.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/station-pro/core/inc/fields/dimensions/field_dimensions.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/station-pro/app/templates/panel/container.tpl.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/station-pro/core/inc/fields/button_set/field_button_set.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/station-pro/core/templates/panel/header-stickybar.tpl.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/station-pro/core/inc/fields/spacing/field_spacing.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/station-pro/core/inc/fields/sorter/field_sorter.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: audio player, radio, shoutcast, icecast, music...
station-pro/stationpro.php 85% from 13 tests
Analyzing the main PHP file in "Station Pro" version 2.3.4
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("station-pro.php" instead of "stationpro.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin118,857 lines of code in 701 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 323 | 15,197 | 29,734 | 60,975 |
JavaScript | 147 | 8,244 | 10,056 | 32,922 |
Sass | 96 | 1,929 | 85 | 13,078 |
CSS | 125 | 6,677 | 336 | 10,683 |
SVG | 7 | 1 | 0 | 977 |
Markdown | 1 | 68 | 0 | 214 |
XML | 1 | 0 | 0 | 7 |
JSON | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 51.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 5.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 193 | |
▷ Abstract classes | 6 | 3.11% |
▷ Concrete classes | 187 | 96.89% |
▷ Final classes | 0 | 0.00% |
Methods | 2,333 | |
▷ Static methods | 502 | 21.52% |
▷ Public methods | 1,710 | 73.30% |
▷ Protected methods | 153 | 6.56% |
▷ Private methods | 470 | 20.15% |
Functions | 122 | |
▷ Named functions | 116 | 95.08% |
▷ Anonymous functions | 6 | 4.92% |
Constants | 245 | |
▷ Global constants | 100 | 40.82% |
▷ Class constants | 145 | 59.18% |
▷ Public constants | 145 | 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
55 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/img/raw/jquery-ui-bootstrap/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
core/assets/img/raw/jquery-ui-bootstrap/ui-icons_f6cf3b_256x240.png | 8.68KB | 4.11KB | ▼ 52.68% |
core/assets/img/raw/2cl.png | 2.91KB | 0.24KB | ▼ 91.79% |
core/assets/img/raw/jquery-ui-bootstrap/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
core/assets/img/raw/jquery-ui-bootstrap/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |