80% vidjet

Code Review | Vidjet - Shoppable Videos

WordPress plugin Vidjet - Shoppable Videos scored80%from 54 tests.

About plugin

  • Plugin page: vidjet
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Oct 4, 2021
  • Latest release: Aug 10, 2023
  • Number of updates: 13
  • Update frequency: every 52.2 days
  • Top authors: leovidjet (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /1,237 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.78MB] [CPU: ▼38.36ms] Passed 4 tests

This is a short check of server-side resources used by Vidjet - Shoppable Videos
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.36 ▼6.23
Dashboard /wp-admin3.18 ▼0.1723.64 ▼36.23
Posts /wp-admin/edit.php3.18 ▼0.1825.82 ▼24.71
Add New Post /wp-admin/post-new.php3.18 ▼2.7123.69 ▼81.78
Media Library /wp-admin/upload.php3.18 ▼0.0524.63 ▼10.72

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Vidjet - Shoppable Videos
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.27 ▼1.101.71 ▼0.2438.84 ▼6.30
Dashboard /wp-admin2,218 ▲274.84 ▼0.05108.38 ▲6.2641.43 ▼1.93
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0639.27 ▼1.3334.39 ▼2.01
Add New Post /wp-admin/post-new.php1,552 ▲1818.23 ▼4.79601.41 ▼4.7253.81 ▼4.69
Media Library /wp-admin/upload.php1,400 ▲124.19 ▼0.0195.05 ▼1.7243.79 ▼0.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/vidjet/admin/class-vidjet-admin.php+76
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
7 plugin tags: social, product video, ecommerce, customer experience, sales popup...

vidjet/vidjet.php Passed 13 tests

The principal PHP file in "Vidjet - Shoppable Videos" v. 1.1.1 is loaded by WordPress automatically on each request
52 characters long description:
Engage and convert your visitors using smart videos.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,082 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP193315461,055
PO File15626
Markdown1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.93
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods73
▷ Static methods1317.81%
▷ Public methods6183.56%
▷ Protected methods00.00%
▷ Private methods1216.44%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
No PNG files were detected