78% mxyoutuber-responsive

Code Review | YouTubeR by Maxio lab.

WordPress plugin YouTubeR by Maxio lab. scored78%from 54 tests.

About plugin

  • Plugin page: mxyoutuber-respon...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Jul 30, 2016
  • Number of updates: 24
  • Update frequency: every 11.8 days
  • Top authors: maxio.lab (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,278 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.40 ▼1.29
Dashboard /wp-admin3.39 ▲0.0848.59 ▼5.41
Posts /wp-admin/edit.php3.50 ▲0.1554.52 ▲2.38
Add New Post /wp-admin/post-new.php5.99 ▲0.1097.59 ▲3.22
Media Library /wp-admin/upload.php3.31 ▲0.0836.96 ▼1.81
YouTubeR Free /wp-admin/options-general.php?page=mx-youtuber3.2832.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲19414.76 ▲0.008.09 ▲6.3092.61 ▲47.71
Dashboard /wp-admin2,217 ▲295.93 ▲1.00140.19 ▲31.0741.74 ▼5.14
Posts /wp-admin/edit.php2,113 ▲242.68 ▲0.7046.28 ▲3.6232.92 ▼4.98
Add New Post /wp-admin/post-new.php1,530 ▲1118.19 ▼4.84650.30 ▼31.6539.51 ▼22.23
Media Library /wp-admin/upload.php1,408 ▲235.19 ▲0.98109.21 ▲2.6246.85 ▲0.67
YouTubeR Free /wp-admin/options-general.php?page=mx-youtuber8572.8132.7932.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript52705371,522
CSS614887782
PHP7899465
PO File1374295
SVG20042
JSON10030
Markdown1206
HTML1001

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 code0.30
Average class complexity10.00
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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
FileSize - originalSize - compressedSavings
mxassets/images/btn.png4.72KB3.29KB▼ 30.21%
assets/banner-772x250.png76.26KB35.73KB▼ 53.14%
mxassets/images/pro.png67.67KB30.14KB▼ 55.46%
assets/icon-128x128.png12.86KB6.67KB▼ 48.12%
mxassets/images/header.png11.48KB8.26KB▼ 28.04%