Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.38MB] [CPU: ▲23.22ms] 50% from 4 tests
A check of server-side resources used by YouTube Easy Embed (Wall/Rail)
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 2,105.01ms on /wp-admin/options-general.php?page=gwt-youtube-api)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.38MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.19 ▲5.73 | 66.66 ▲22.02 |
Dashboard /wp-admin | 9.21 ▲5.87 | 82.13 ▲17.88 |
Posts /wp-admin/edit.php | 9.22 ▲5.86 | 74.47 ▲23.93 |
Add New Post /wp-admin/post-new.php | 9.96 ▲4.07 | 130.20 ▲29.04 |
Media Library /wp-admin/upload.php | 9.22 ▲5.99 | 77.69 ▲41.06 |
YouTube Easy Embed (Wall/Rail) /wp-admin/options-general.php?page=gwt-youtube-api | 9.22 | 2,105.01 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.22 | 61.91 |
Server storage [IO: ▲4.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 225 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
fs_active_plugins |
db_upgraded |
fs_debug_mode |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YouTube Easy Embed (Wall/Rail)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲180 | 13.98 ▼0.42 | 9.60 ▲7.97 | 28.58 ▼13.34 |
Dashboard /wp-admin | 2,237 ▲63 | 5.84 ▲0.25 | 95.01 ▲1.07 | 44.33 ▲0.04 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.33 ▲0.37 | 38.45 ▲3.67 | 36.47 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 22.16 ▼0.89 | 636.76 ▼42.22 | 35.68 ▼17.97 |
Media Library /wp-admin/upload.php | 1,446 ▲49 | 4.37 ▲0.18 | 93.47 ▼5.40 | 44.49 ▼5.32 |
YouTube Easy Embed (Wall/Rail) /wp-admin/options-general.php?page=gwt-youtube-api | 1,013 | 2.09 | 27.71 | 65.76 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,097 | 2.10 | 28.97 | 25.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/easy-embed-for-youtube-wall/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- fs_active_plugins
- fs_accounts
- fs_debug_mode
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: channelLogo in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
Undefined variable: tiletext in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
Undefined variable: videoLikes in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
Undefined variable: columnspacing in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
Undefined variable: tilebordercolor in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
Undefined variable: shortcodeID in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
Undefined variable: videoTitle in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
Undefined variable: shortcodeID in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
Undefined variable: channelUsername in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
Undefined variable: hideContainer in wp-content/plugins/easy-embed-for-youtube-wall/public/partials/gwt-youtube-api-public-display.php on line 18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== easy-embed-for-youtube-wall ===
)
easy-embed-for-youtube-wall/gwt-youtube-api.php 85% from 13 tests
The main file in "YouTube Easy Embed (Wall/Rail)" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-embed-for-youtube-wall.php" instead of "gwt-youtube-api.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected34,985 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 8,230 | 17,825 | 33,891 |
JavaScript | 6 | 59 | 126 | 768 |
CSS | 15 | 32 | 21 | 292 |
SVG | 5 | 1 | 0 | 34 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 82.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,288 | |
▷ Static methods | 199 | 15.45% |
▷ Public methods | 894 | 69.41% |
▷ Protected methods | 17 | 1.32% |
▷ Private methods | 377 | 29.27% |
Functions | 134 | |
▷ Named functions | 134 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.84MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/img/cross.png | 2.67KB | 2.12KB | ▼ 20.80% |
admin/img/slide1.png | 82.19KB | 33.91KB | ▼ 58.74% |
admin/img/twitch-player.png | 6.97KB | 4.26KB | ▼ 38.90% |
admin/img/twitch-wall.png | 7.49KB | 4.16KB | ▼ 44.49% |