10% nice-youtube-lite

Code Review | Nice YouTube Lite

WordPress plugin Nice YouTube Lite scored10%from 54 tests.

About plugin

  • Plugin page: nice-youtube-lite
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2013
  • Latest release: Jul 14, 2013
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: mjetpax (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /16,755 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/nice-youtube-lite/niceYouTubeLite.php+33
    Methods with the same name as their class will not be constructors in a future version of PHP; NiceYouTubeLite has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.86ms] Passed 4 tests

This is a short check of server-side resources used by Nice YouTube Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.20 ▼32.68
Dashboard /wp-admin2.10 ▼1.256.53 ▼52.95
Posts /wp-admin/edit.php2.10 ▼1.265.35 ▼41.82
Add New Post /wp-admin/post-new.php2.10 ▼3.795.35 ▼91.97
Media Library /wp-admin/upload.php2.10 ▼1.134.96 ▼27.90

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nice YouTube Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.24 ▼0.481.61 ▼0.0838.01 ▼5.15
Dashboard /wp-admin2,199 ▲215.60 ▼0.1482.85 ▼27.1336.22 ▼5.24
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0135.63 ▼0.5031.41 ▼6.22
Add New Post /wp-admin/post-new.php1,543 ▲1517.93 ▼5.24618.67 ▼30.8756.28 ▼25.60
Media Library /wp-admin/upload.php1,407 ▲104.22 ▲0.1098.42 ▼18.7445.28 ▼1.34
Nice YouTube Lite /wp-admin/niceYouTubeLite.php260.420.0916.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/nice-youtube-lite/niceYouTubeLite.php+33
    Methods with the same name as their class will not be constructors in a future version of PHP; NiceYouTubeLite has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nice-youtube-lite/niceYouTubeLite.php:232

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/niceYouTubeLite.php
    • > Network (severe)
    wp-admin/niceYouTubeLite.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: shortcode, video player, video, youtube embed, video embed...

nice-youtube-lite/niceYouTubeLite.php 85% from 13 tests

This is the main PHP file of "Nice YouTube Lite" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 338 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("nice-youtube-lite.php" instead of "niceYouTubeLite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin121 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18737121

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin