84% yottie-lite

Code Review | YouTube Gallery - YouTube Channel

WordPress plugin YouTube Gallery - YouTube Channel scored84%from 54 tests.

About plugin

  • Plugin page: yottie-lite
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.0
  • WordPress version: 6.3.1
  • First release: Feb 29, 2016
  • Latest release: Feb 6, 2019
  • Number of updates: 40
  • Update frequency: every 26.9 days
  • Top authors: elfsight (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /48,560 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.47ms] Passed 4 tests

This is a short check of server-side resources used by YouTube Gallery - YouTube Channel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.46 ▲7.60
Dashboard /wp-admin3.40 ▲0.0949.72 ▼0.43
Posts /wp-admin/edit.php3.45 ▲0.0947.19 ▼0.04
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.20 ▼0.46
Media Library /wp-admin/upload.php3.32 ▲0.0936.43 ▲2.82

Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

YouTube Gallery - YouTube Channel: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,138 ▲39216.19 ▲1.8075.85 ▲74.0557.32 ▲12.14
Dashboard /wp-admin2,224 ▲364.84 ▼1.0698.73 ▼1.8581.34 ▲39.07
Posts /wp-admin/edit.php2,104 ▲151.99 ▼0.1738.60 ▲3.1936.40 ▲0.18
Add New Post /wp-admin/post-new.php1,545 ▲2618.01 ▼5.04695.08 ▲54.2469.18 ▲20.93
Media Library /wp-admin/upload.php1,406 ▲154.15 ▼0.06100.95 ▼1.0876.97 ▲32.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: api_key in wp-content/plugins/yottie-lite/includes/yottie-demo.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/yottie-lite/includes/yottie-demo.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: youtube channel, youtube, youtube gallery

yottie-lite/yottie-lite.php 92% from 13 tests

The main PHP file in "YouTube Gallery - YouTube Channel" ver. 1.3.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,038 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7252181,017
JavaScript24219
CSS1212

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.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
30 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/demo/numeric-increase.png0.97KB0.20KB▼ 78.97%
assets/img/demo/icon-shortcode.png1.27KB0.62KB▼ 51.04%
assets/img/demo/icon-check-black.png1.00KB0.25KB▼ 75.07%
assets/img/demo/range-handle.png1.00KB0.24KB▼ 76.27%
assets/img/icon-check-orange-small.png0.99KB0.23KB▼ 77.20%