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.01MB] [CPU: ▼3.17ms] Passed 4 tests
A check of server-side resources used by JustinTV / Twitch oEmbed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.86 ▼3.25 |
Dashboard /wp-admin | 3.31 ▲0.01 | 55.88 ▼10.40 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.68 ▲0.96 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.99 ▲1.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.96 ▲0.02 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for JustinTV / Twitch oEmbed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.23 ▲0.30 | 2.40 ▼0.07 | 43.32 ▼0.82 |
Dashboard /wp-admin | 2,189 ▲12 | 5.61 ▼0.01 | 96.55 ▼3.93 | 44.31 ▲0.34 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.04 | 35.35 ▼3.19 | 31.67 ▼5.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.23 ▲0.11 | 688.83 ▼6.57 | 62.29 ▼2.76 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.19 ▼0.02 | 96.89 ▼7.76 | 44.76 ▼6.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/justintv-twitch-oembed/justintv_twitch_oembed.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
1 plugin tags: oembed
justintv-twitch-oembed/justintv_twitch_oembed.php 85% from 13 tests
The main PHP file in "JustinTV / Twitch oEmbed" ver. 1... adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1...")
- Main file name: The principal plugin file should be the same as the plugin slug ("justintv-twitch-oembed.php" instead of "justintv_twitch_oembed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected19 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 1 | 6 | 0 | 10 |
PHP | 1 | 3 | 13 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 1 | |
▷ Named functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin