Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼139.60ms] Passed 4 tests
A check of server-side resources used by Smart YouTube and Twitch Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 33.82 ▲13.65 |
Dashboard /wp-admin | 3.07 ▲0.02 | 52.39 ▲4.48 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 43.48 ▼0.40 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 91.88 ▼561.38 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 31.45 ▼1.08 |
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings | 3.01 | 29.45 |
Youtube Embed /wp-admin/admin.php?page=swiftninjapro-youtube-embed | 3.09 | 29.80 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Smart YouTube and Twitch Embed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,740 ▲144 | 15.99 ▲0.41 | 11.16 ▲0.34 | 50.44 ▲6.38 |
Dashboard /wp-admin | 2,996 ▲65 | 5.89 ▼0.05 | 147.90 ▼16.89 | 134.62 ▲28.06 |
Posts /wp-admin/edit.php | 2,776 ▲37 | 2.61 ▼0.11 | 66.18 ▼16.21 | 89.41 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,705 ▲33 | 18.74 ▼0.16 | 397.71 ▼4.78 | 109.23 ▼2.04 |
Media Library /wp-admin/upload.php | 1,858 ▲48 | 5.03 ▲0.02 | 134.07 ▼25.70 | 131.85 ▲18.68 |
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings | 1,058 | 2.08 | 50.96 | 76.86 |
Youtube Embed /wp-admin/admin.php?page=swiftninjapro-youtube-embed | 1,211 | 2.09 | 52.92 | 85.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=swiftninjapro-youtube-embed
- > Warning in wp-content/plugins/swiftninjapro-youtube-embed/templates/admin.php+94
Cannot modify header information - headers already sent by (output started at wp-admin/includes/misc.php:1013)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/swiftninjapro-youtube-embed/templates/admin.php
- > /wp-content/plugins/swiftninjapro-youtube-embed/main.php
- > /wp-content/plugins/swiftninjapro-youtube-embed/swiftninjapro-youtube-embed.php
- > /wp-content/plugins/swiftninjapro-youtube-embed/templates/settings-info.php
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: youtube, lazy load, twitch, video, embed...
swiftninjapro-youtube-embed/swiftninjapro-youtube-embed.php 92% from 13 tests
The entry point to "Smart YouTube and Twitch Embed" version 2.3.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)
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 plugin637 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 120 | 39 | 587 |
JavaScript | 1 | 2 | 0 | 28 |
CSS | 1 | 1 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 71.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 7.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/settings_icon.png | 3.27KB | 1.85KB | ▼ 43.48% |