84% smiling-video

Code Review | Smiling Video player and video content

WordPress plugin Smiling Video player and video content scored84%from 54 tests.

About plugin

  • Plugin page: smiling-video
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 7, 2017
  • Latest release: May 25, 2023
  • Number of updates: 43
  • Update frequency: every 46.4 days
  • Top authors: techadminsmilingvideo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.27ms] Passed 4 tests

This is a short check of server-side resources used by Smiling Video player and video content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.60 ▼5.14
Dashboard /wp-admin3.31 ▲0.0044.82 ▼18.59
Posts /wp-admin/edit.php3.36 ▲0.0047.43 ▼1.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.02 ▼7.69
Media Library /wp-admin/upload.php3.23 ▲0.0038.97 ▲8.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
smiling_video_user
db_upgraded
smiling_video_password
smiling_video_publishmode
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Smiling Video player and video content: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▲0.301.92 ▲0.0941.00 ▼2.69
Dashboard /wp-admin2,203 ▲184.87 ▼1.01102.56 ▼15.2837.64 ▼9.04
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0541.03 ▲1.0435.97 ▲2.07
Add New Post /wp-admin/post-new.php1,544 ▲1118.45 ▼4.76614.53 ▼60.5567.37 ▲0.24
Media Library /wp-admin/upload.php1,382 ▼64.22 ▼0.1397.16 ▼5.1443.54 ▲0.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% 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 50% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/smiling-video/smiling_video.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: video

smiling-video/smiling_video.php 85% from 13 tests

Analyzing the main PHP file in "Smiling Video player and video content" version 1.2.0
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("smiling-video.php" instead of "smiling_video.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected13,567 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45,15010,50111,182
CSS5319391,873
PHP25940512

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png7.74KB2.92KB▼ 62.32%