90% wp-videodesk

Code Review | VideoDesk live chat integration

WordPress plugin VideoDesk live chat integration scored90%from 54 tests.

About plugin

  • Plugin page: wp-videodesk
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-3.8.0
  • WordPress version: 6.3.1
  • First release: Dec 30, 2013
  • Latest release: Jan 16, 2014
  • Number of updates: 5
  • Update frequency: every 3.8 days
  • Top authors: swoelffel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /947 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by VideoDesk live chat integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.02 ▼9.03
Dashboard /wp-admin3.42 ▲0.1254.34 ▼1.55
Posts /wp-admin/edit.php3.53 ▲0.1857.96 ▲6.12
Add New Post /wp-admin/post-new.php6.00 ▲0.11100.71 ▼7.01
Media Library /wp-admin/upload.php3.34 ▲0.1142.85 ▲8.12

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
videodesk_config

Browser metrics Passed 4 tests

VideoDesk live chat integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.28 ▼0.081.93 ▲0.3640.32 ▼3.09
Dashboard /wp-admin2,193 ▲165.56 ▲0.0184.88 ▼1.1575.99 ▲37.78
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.0238.19 ▲2.9232.74 ▼0.43
Add New Post /wp-admin/post-new.php1,552 ▲2618.27 ▼5.33661.42 ▲6.80137.85 ▲82.72
Media Library /wp-admin/upload.php1,410 ▲134.11 ▼0.09111.20 ▲4.8675.33 ▲30.42

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: videodesk

wp-videodesk/VideoDesk.php 92% from 13 tests

This is the main PHP file of "VideoDesk live chat integration" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-videodesk.php" instead of "VideoDesk.php")

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
Good job! No executable or dangerous file extensions detected546 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17537387
PO File256126150
CSS1109

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity86.00
▷ Minimum class complexity86.00
▷ Maximum class complexity86.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/not-displayed.png0.54KB0.56KB0.00%
img/displayed.png0.70KB0.73KB0.00%
img/logo.png0.64KB0.59KB▼ 7.34%