84% wp-video-enhanced

Code Review | WP Video Enhanced

WordPress plugin WP Video Enhanced scored 84% from 54 tests.

About plugin

  • Plugin page: wp-video-enhanced
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-4.9
  • WordPress version: 5.9.2
  • First release: May 31, 2018
  • Latest release: Aug 21, 2018
  • Number of updates: 9
  • Update frequency: every 9.2 days
  • Top authors: plugins360 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 3,585 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.97MB] [CPU: ▼342.86ms] Passed 4 tests

A check of server-side resources used by WP Video Enhanced
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2457.97 ▲4.14
Dashboard /wp-admin3.36 ▼0.0532.30 ▼54.29
Posts /wp-admin/edit.php3.36 ▼0.2820.63 ▼18.87
Add New Post /wp-admin/post-new.php3.36 ▼3.6119.68 ▼1,287.90
Media Library /wp-admin/upload.php3.36 ▲0.0618.01 ▼10.37

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 4 new options
New WordPress options
wpve_general_settings
wpve_version
wpve_brand_settings
wpve_privacy_settings

Browser metrics Passed 4 tests

Checking browser requirements for WP Video Enhanced
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,015 ▲29317.53 ▲1.846.04 ▼0.003.14 ▲0.91
Dashboard /wp-admin3,112 ▲2518.41 ▲2.23164.13 ▲22.10166.66 ▲4.96
Posts /wp-admin/edit.php2,954 ▲2704.98 ▲1.7480.34 ▼11.23141.17 ▼23.55
Add New Post /wp-admin/post-new.php1,692 ▲3217.83 ▼1.78389.77 ▼27.51158.65 ▲0.03
Media Library /wp-admin/upload.php1,740 ▲455.70 ▲0.17109.54 ▼29.87185.43 ▼3.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/wp-video-enhanced/admin/class-wpve-admin.php+324
    Function create_function() is deprecated

Smoke tests 75% 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-video-enhanced/admin/templates/settings.php:15

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

wp-video-enhanced/wp-video-enhanced.php 92% from 13 tests

The primary PHP file in "WP Video Enhanced" version 1.3.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,101 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11358628842
JavaScript26445150
CSS11820108
HTML1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.29
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods52
▷ Static methods23.85%
▷ Public methods4790.38%
▷ Protected methods00.00%
▷ Private methods59.62%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG images were found in this plugin