Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▼3.08ms] Passed 4 tests
Server-side resources used by Shownotes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 43.90 ▼1.57 |
Dashboard /wp-admin | 3.66 ▲0.36 | 53.24 ▲2.95 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 51.60 ▲2.75 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 87.13 ▼14.15 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 37.43 ▲0.64 |
Shownotes /wp-admin/options-general.php?page=shownotes | 3.53 | 36.30 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 261 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
shownotes_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Shownotes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲44 | 14.32 ▼0.24 | 1.70 ▼0.27 | 43.31 ▲0.57 |
Dashboard /wp-admin | 2,207 ▲30 | 5.65 ▲0.08 | 90.03 ▼2.98 | 38.40 ▲0.59 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.01 ▲0.04 | 39.08 ▲2.75 | 36.55 ▲0.03 |
Add New Post /wp-admin/post-new.php | 6,259 ▲4,731 | 26.08 ▲2.92 | 918.33 ▲219.08 | 62.49 ▲7.34 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.25 ▲0.10 | 95.56 ▼17.28 | 43.16 ▼2.90 |
Shownotes /wp-admin/options-general.php?page=shownotes | 1,107 | 2.04 | 26.45 | 42.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- shownotes_options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=shownotes
- > Notice in wp-content/plugins/shownotes/snsettings.php+181
Undefined index: main_mode
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=shownotes
- > Notice in wp-content/plugins/shownotes/snsettings.php+197
Undefined index: main_tags_mode
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=shownotes
- > Notice in wp-content/plugins/shownotes/snsettings.php+272
Undefined index: css_id
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/shownotes/api.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
file_put_contents(./cache/3338247711100.mp4chaps.txt): failed to open stream: Permission denied in wp-content/plugins/shownotes/api.php on line 129
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/shownotes/snsettings.php:3
- > PHP Notice
Undefined index: proxytype in wp-content/plugins/shownotes/api.php on line 3
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/shownotes/OSFphp/osf.php on line 656
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/shownotes/OSFphp/osf.php on line 657
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/shownotes/OSFphp/osf.php on line 656
- > PHP Notice
Undefined index: mode in wp-content/plugins/shownotes/api.php on line 7
- > PHP Notice
Undefined index: preview in wp-content/plugins/shownotes/api.php on line 8
- > PHP Notice
Undefined index: shownotes in wp-content/plugins/shownotes/api.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/shownotes/snsettings.php:3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=shownotes
- > Network (severe)
https://button.flattr.com/loader.js?mode=auto - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Options), #2 (Result (Block style)), #3 (Result (List style)), #4 (Result (Button style)), #5 (Meta box for OSF/MD input with Preview)
shownotes/shownotes.php Passed 13 tests
The entry point to "Shownotes" version 0.5.7 is a PHP file that has certain tags in its header comment area
46 characters long description:
Convert OSF-Shownotes to HTML for your Podcast
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
Good job! No executable or dangerous file extensions detected8,015 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 88 | 70 | 3,889 |
PHP | 6 | 210 | 88 | 2,209 |
JavaScript | 6 | 56 | 91 | 1,212 |
SVG | 1 | 0 | 0 | 414 |
Markdown | 5 | 86 | 0 | 220 |
HTML | 1 | 7 | 0 | 71 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
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 | 72 | |
▷ Named functions | 70 | 97.22% |
▷ Anonymous functions | 2 | 2.78% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
225 PNG files occupy 0.73MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/bwi/sharethis.png | 1.47KB | 1.33KB | ▼ 9.57% |
static/img/bwi/bitcoin.png | 4.67KB | 1.39KB | ▼ 70.29% |
static/img/bwi/git.png | 4.86KB | 1.32KB | ▼ 72.74% |
static/img/bwi/email.png | 1.35KB | 1.07KB | ▼ 20.67% |
static/img/bwi/w3.png | 1.94KB | 1.58KB | ▼ 18.69% |