84% cw-easy-video-player

Code Review | CW Easy Video Player

WordPress plugin CW Easy Video Player scored84%from 54 tests.

About plugin

  • Plugin page: cw-easy-video-player
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.9
  • WordPress version: 6.3.1
  • First release: Aug 3, 2011
  • Latest release: May 5, 2014
  • Number of updates: 7
  • Update frequency: every 143.7 days
  • Top authors: christianwenzl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,396 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.66ms] Passed 4 tests

An overview of server-side resources used by CW Easy Video Player
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.65 ▼1.41
Dashboard /wp-admin3.32 ▲0.0245.02 ▼4.96
Posts /wp-admin/edit.php3.37 ▲0.0250.15 ▼1.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.39 ▼7.02
Media Library /wp-admin/upload.php3.24 ▲0.0235.98 ▲2.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by CW Easy Video Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.74 ▲0.541.97 ▲0.1545.67 ▲6.90
Dashboard /wp-admin2,206 ▲215.89 ▲1.01109.59 ▲8.5842.63 ▼0.75
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0140.09 ▼1.0634.08 ▼0.33
Add New Post /wp-admin/post-new.php1,514 ▼1918.01 ▼5.23667.11 ▲34.8558.25 ▲9.75
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0897.94 ▼2.3343.07 ▲1.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
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 load_plugin_textdomain() in wp-content/plugins/cw-easy-video-player/cw-easy-video-player.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Complete the hostname after installation of cw-evp.), #2 (Copy this snippet from your evp-generated code (see screenshot).), #3 (Paste the snippet into your page/post.)
You can take inspiration from this readme.txt

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

"CW Easy Video Player" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Easy way to display videos with the Easy Video Player (EVP)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP19931
PO File16526

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin