90% dadevarzan-wp-video

Code Review | Dadevarzan WordPress Video

WordPress plugin Dadevarzan WordPress Video scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-video
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Feb 28, 2019
  • Latest release: May 31, 2022
  • Number of updates: 10
  • Update frequency: every 118.8 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,368 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.30ms] Passed 4 tests

This is a short check of server-side resources used by Dadevarzan WordPress Video
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.45 ▲0.74
Dashboard /wp-admin3.41 ▲0.1052.83 ▼3.10
Posts /wp-admin/edit.php3.51 ▲0.1555.18 ▲1.23
Add New Post /wp-admin/post-new.php6.09 ▲0.21102.40 ▲6.29
Media Library /wp-admin/upload.php3.32 ▲0.0940.67 ▲2.32

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Dadevarzan WordPress Video
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.24 ▼0.111.96 ▲0.1343.00 ▼3.86
Dashboard /wp-admin2,226 ▲465.58 ▼0.1092.66 ▼9.6038.30 ▼6.38
Posts /wp-admin/edit.php2,131 ▲281.96 ▼0.0239.77 ▼0.4735.43 ▼1.37
Add New Post /wp-admin/post-new.php1,552 ▲2423.37 ▲0.35606.73 ▼0.7672.28 ▲29.69
Media Library /wp-admin/upload.php1,428 ▲344.20 ▲0.0195.45 ▼15.2243.78 ▲1.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: video, video cpt, wp, dadehvarzan, wordpress...

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

The primary PHP file in "Dadevarzan WordPress Video" version 1.2.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • 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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected311 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File1202155

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG files were detected