83% dplayer

Code Review | dPlayer - Video Player for WordPress

WordPress plugin dPlayer - Video Player for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: dplayer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 27, 2021
  • Latest release: May 31, 2021
  • Number of updates: 13
  • Update frequency: every 2.9 days
  • Top authors: indionetech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,708 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.74MB] [CPU: ▲3.69ms] Passed 4 tests

Server-side resources used by dPlayer - Video Player for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.27 ▲0.8152.38 ▼0.28
Dashboard /wp-admin4.05 ▲0.7463.07 ▲8.86
Posts /wp-admin/edit.php4.10 ▲0.7463.12 ▲12.43
Add New Post /wp-admin/post-new.php6.63 ▲0.7598.43 ▲1.80
Media Library /wp-admin/upload.php3.97 ▲0.7446.29 ▲4.37
Add New dPlayer /wp-admin/post-new.php?post_type=dplayer4.1067.71
dPlayers /wp-admin/edit.php?post_type=dplayer4.1153.96

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

Browser metrics Passed 4 tests

A check of browser resources used by dPlayer - Video Player for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.69 ▲0.151.78 ▼0.0844.80 ▲4.00
Dashboard /wp-admin2,222 ▲425.62 ▼0.0497.35 ▲8.6846.08 ▲1.87
Posts /wp-admin/edit.php2,127 ▲272.00 ▲0.0339.31 ▲1.0034.81 ▼2.31
Add New Post /wp-admin/post-new.php1,551 ▲2323.20 ▲2.25700.95 ▼31.5059.08 ▲1.44
Media Library /wp-admin/upload.php1,421 ▲184.19 ▲0.0699.36 ▼8.2443.61 ▼4.58
Add New dPlayer /wp-admin/post-new.php?post_type=dplayer2,1575.52105.7955.22
dPlayers /wp-admin/edit.php?post_type=dplayer1,2983.8452.3729.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dplayer/dplayer.php:15
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dplayer/dplayer.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: No descriptions were found for these screenshots #1, #2 in dplayer/assets to your readme.txt
Please take inspiration from this readme.txt

dplayer/dplayer.php 92% from 13 tests

The main file in "dPlayer - Video Player for WordPress" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected33,405 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP863,3461,45514,070
PO File203,1973,5946,490
Sass1595234,803
CSS42784784,038
JavaScript71,2543484,002
SVG2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity25.43
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity6.89
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes60
▷ Abstract classes23.33%
▷ Concrete classes5896.67%
▷ Final classes00.00%
Methods249
▷ Static methods4216.87%
▷ Public methods249100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%