Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.53ms] Passed 4 tests
A check of server-side resources used by YouTubeR by Maxio lab.
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.40 ▼1.29 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.59 ▼5.41 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 54.52 ▲2.38 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 97.59 ▲3.22 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.96 ▼1.81 |
YouTubeR Free /wp-admin/options-general.php?page=mx-youtuber | 3.28 | 32.32 |
Server storage [IO: ▲1.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by YouTubeR by Maxio lab.
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲194 | 14.76 ▲0.00 | 8.09 ▲6.30 | 92.61 ▲47.71 |
Dashboard /wp-admin | 2,217 ▲29 | 5.93 ▲1.00 | 140.19 ▲31.07 | 41.74 ▼5.14 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.68 ▲0.70 | 46.28 ▲3.62 | 32.92 ▼4.98 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 18.19 ▼4.84 | 650.30 ▼31.65 | 39.51 ▼22.23 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 5.19 ▲0.98 | 109.21 ▲2.62 | 46.85 ▲0.67 |
YouTubeR Free /wp-admin/options-general.php?page=mx-youtuber | 857 | 2.81 | 32.79 | 32.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mxyoutuber-responsive/themes/default/video.php
- > /wp-content/plugins/mxyoutuber-responsive/mxyoutuber.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'mxYouTuberView_base' not found in wp-content/plugins/mxyoutuber-responsive/views/video.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (A YouTubeR button above the content editor.), #2 (When you press a button (1-st screenshot) an YouTubeR window will appear where you can see all your videos and upload new ones), #3 (Section of YouRubeR where you can upload a new video to YouTube), #4 (Example of the videos (with different settings) displayed on the website)
- Tags: You are using too many tags: 46 tag instead of maximum 10
mxyoutuber-responsive/mxyoutuber.php 92% from 13 tests
The main PHP script in "YouTubeR by Maxio lab." version 1.0.5 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("mxyoutuber-responsive.php" instead of "mxyoutuber.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,943 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 270 | 537 | 1,522 |
CSS | 6 | 148 | 87 | 782 |
PHP | 7 | 89 | 9 | 465 |
PO File | 1 | 37 | 42 | 95 |
SVG | 2 | 0 | 0 | 42 |
JSON | 1 | 0 | 0 | 30 |
Markdown | 1 | 2 | 0 | 6 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 25.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.20MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mxassets/images/btn.png | 4.72KB | 3.29KB | ▼ 30.21% |
assets/banner-772x250.png | 76.26KB | 35.73KB | ▼ 53.14% |
mxassets/images/pro.png | 67.67KB | 30.14KB | ▼ 55.46% |
assets/icon-128x128.png | 12.86KB | 6.67KB | ▼ 48.12% |
mxassets/images/header.png | 11.48KB | 8.26KB | ▼ 28.04% |