Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.69ms] Passed 4 tests
This is a short check of server-side resources used by SoundCloud Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.75 ▼1.56 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.36 ▼2.05 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.91 ▲2.72 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.46 ▼5.14 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.27 ▲2.00 |
SoundCloud /wp-admin/options-general.php?page=soundcloud-shortcode | 3.20 | 33.88 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
SoundCloud Shortcode: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.24 ▼0.12 | 1.73 ▼0.33 | 45.29 ▼3.52 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▼0.02 | 90.66 ▲1.62 | 40.37 ▲0.07 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▲0.07 | 38.70 ▲2.82 | 35.45 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.34 ▼0.19 | 654.42 ▲0.48 | 54.63 ▲3.17 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.22 ▲0.07 | 98.52 ▼2.39 | 39.87 ▼1.79 |
SoundCloud /wp-admin/options-general.php?page=soundcloud-shortcode | 936 | 2.04 | 24.44 | 26.14 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(./soundcloud-shortcode.php): failed to open stream: No such file or directory in wp-content/plugins/soundcloud-shortcode/tests/soundcloud-shortcode-test.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/soundcloud-shortcode/soundcloud-shortcode.php:39
- > PHP Fatal error
require_once(): Failed opening required './soundcloud-shortcode.php' (include_path='.:/usr/share/php') in wp-content/plugins/soundcloud-shortcode/tests/soundcloud-shortcode-test.php on line 30
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: shortcode, soundcloud
soundcloud-shortcode/soundcloud-shortcode.php 92% from 13 tests
The main PHP script in "SoundCloud Shortcode" version 3.1.0 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
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 plugin389 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 117 | 110 | 352 |
Markdown | 1 | 21 | 0 | 20 |
XML | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin