90% easy-video-player

Code Review | Easy Video Player

WordPress plugin Easy Video Player scored90%from 54 tests.

About plugin

  • Plugin page: easy-video-player
  • Plugin version: 1.2.2.11
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Nov 10, 2023
  • Number of updates: 78
  • Update frequency: every 49.7 days
  • Top authors: naa986 (100%)

Code review

54 tests

User reviews

55 reviews

Install metrics

40,000+ active /749,636 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.16ms] Passed 4 tests

This is a short check of server-side resources used by Easy Video Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.26 ▼4.08
Dashboard /wp-admin3.37 ▲0.0343.59 ▼19.72
Posts /wp-admin/edit.php3.42 ▲0.0744.80 ▼3.68
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.50 ▼9.15
Media Library /wp-admin/upload.php3.30 ▲0.0733.68 ▼0.10
Easy Video Player /wp-admin/options-general.php?page=easy-video-player-settings3.2628.70

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Video Player
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7314.32 ▼0.023.42 ▲1.6342.85 ▼0.56
Dashboard /wp-admin2,199 ▲225.56 ▲0.0186.62 ▼10.4137.99 ▼5.95
Posts /wp-admin/edit.php2,101 ▲12.00 ▲0.0435.24 ▼3.5735.18 ▲1.64
Add New Post /wp-admin/post-new.php1,529 ▲123.26 ▲0.14671.36 ▼23.3452.77 ▲3.27
Media Library /wp-admin/upload.php1,407 ▲74.27 ▲0.0996.87 ▼13.6341.38 ▼6.01
Easy Video Player /wp-admin/options-general.php?page=easy-video-player-settings8102.0425.2928.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: video, flash, player, mobile, html5

easy-video-player/easy-video-player.php Passed 13 tests

The main file in "Easy Video Player" v. 1.2.2.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
Easily embed videos into your WordPress blog

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
Good job! No executable or dangerous file extensions detected424 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP23836387
CSS20035
JavaScript1001
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
extensions/images/evp-mediaelement-skin-1.png2.63KB1.70KB▼ 35.44%
extensions/images/evp-user-only-videos.png2.81KB1.97KB▼ 29.94%
extensions/images/evp-disable-right-click.png2.61KB1.77KB▼ 31.92%
extensions/images/evp-schema.png4.29KB3.43KB▼ 20.05%