78% ezplayer

Code Review | EZPlayer

WordPress plugin EZPlayer scored78%from 54 tests.

About plugin

  • Plugin page: ezplayer
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2017
  • Latest release: Dec 21, 2017
  • Number of updates: 16
  • Update frequency: every 8.2 days
  • Top authors: ezmarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,724 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.99ms] Passed 4 tests

A check of server-side resources used by EZPlayer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.42 ▼7.67
Dashboard /wp-admin3.35 ▲0.0146.60 ▼13.89
Posts /wp-admin/edit.php3.46 ▲0.1147.75 ▲4.16
Add New Post /wp-admin/post-new.php5.95 ▲0.0789.18 ▲7.38
Media Library /wp-admin/upload.php3.27 ▲0.0533.99 ▲1.45

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by EZPlayer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲3613.27 ▼1.101.60 ▼0.4040.86 ▼1.16
Dashboard /wp-admin2,210 ▲244.84 ▼0.0999.93 ▼25.4039.64 ▼8.00
Posts /wp-admin/edit.php2,096 ▲42.01 ▼0.0242.96 ▲7.9634.07 ▲2.69
Add New Post /wp-admin/post-new.php1,521 ▼1217.61 ▼5.59602.52 ▼78.0557.05 ▲4.21
Media Library /wp-admin/upload.php1,398 ▲74.17 ▼0.0496.64 ▲0.9543.13 ▲0.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ezplayer/assets/frontend/views/js.php
    • > /wp-content/plugins/ezplayer/assets/frontend/views/wrapper.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ezplayer/ezplayer.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ezplayer/include/builders/divi.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ezplayer/assets/frontend/views/wrapper.php on line 3
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/ezplayer/assets/frontend/views/wrapper.php on line 3

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

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: video player, ezplayer, player

ezplayer/ezplayer.php 92% from 13 tests

"EZPlayer" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin296 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP754166246
JavaScript12026
PO File161119
CSS1003
Markdown1202

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.40
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods1155.00%
▷ Public methods1470.00%
▷ Protected methods15.00%
▷ Private methods525.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
2 PNG files occupy 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dashboard/images/vc.png21.49KB1.20KB▼ 94.43%
assets/dashboard/images/tinymce.png21.85KB1.04KB▼ 95.23%