84% ezwebplayer-wordpress-pro-video-plugin

Code Review | EZWebPlayer.com - Video Plugin

WordPress plugin EZWebPlayer.com - Video Plugin scored84%from 54 tests.

About plugin

  • Plugin page: ezwebplayer-wordp...
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 6.3.1
  • First release: Sep 17, 2010
  • Latest release: Aug 11, 2020
  • Number of updates: 93
  • Update frequency: every 38.9 days
  • Top authors: ezwebplayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /13,769 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by EZWebPlayer.com - Video Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.90 ▼5.42
Dashboard /wp-admin3.31 ▲0.0147.11 ▲0.69
Posts /wp-admin/edit.php3.36 ▲0.0049.03 ▼0.05
Add New Post /wp-admin/post-new.php7.17 ▲1.2896.44 ▼4.35
Media Library /wp-admin/upload.php3.23 ▲0.0036.36 ▼1.56

Server storage [IO: ▲0.20MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

EZWebPlayer.com - Video Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲20521.77 ▲7.17181.61 ▲180.0679.23 ▲38.47
Dashboard /wp-admin2,195 ▲155.50 ▼0.3577.13 ▼8.6538.54 ▼5.89
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0035.14 ▲1.7636.88 ▲0.25
Add New Post /wp-admin/post-new.php6,206 ▲4,67819.29 ▼3.84920.31 ▲239.4840.34 ▼15.70
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.0394.26 ▼7.0944.13 ▼0.60

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ezwebplayer-wordpress-pro-video-plugin/EZWebPlayer.php:23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
The official readme.txt might help

ezwebplayer-wordpress-pro-video-plugin/EZWebPlayer.php 92% from 13 tests

Analyzing the main PHP file in "EZWebPlayer.com - Video Plugin" version 4.1
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ezwebplayer-wordpress-pro-video-plugin.php" instead of "EZWebPlayer.php")

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
Everything looks great! No dangerous files found in this plugin589 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1104107577
PHP213812

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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
PNG images were not found in this plugin