84% paidvideocall-widget

Code Review | PaidVideoCall Widget

WordPress plugin PaidVideoCall Widget scored84%from 54 tests.

About plugin

  • Plugin page: paidvideocall-widget
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2022
  • Latest release: Jan 21, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: peercast (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /858 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.14ms] Passed 4 tests

A check of server-side resources used by PaidVideoCall Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.90 ▼2.13
Dashboard /wp-admin3.36 ▲0.0544.96 ▼1.62
Posts /wp-admin/edit.php3.41 ▲0.0547.07 ▲1.62
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.52 ▼8.03
Media Library /wp-admin/upload.php3.28 ▲0.0535.29 ▼0.78
PaidVideoCall Widget /wp-admin/options-general.php?page=paidvideocallwidgetsettings3.2530.80

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by PaidVideoCall Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.80 ▼0.451.72 ▼0.0842.78 ▲3.54
Dashboard /wp-admin2,224 ▲354.89 ▲0.0099.76 ▼18.9038.69 ▼8.84
Posts /wp-admin/edit.php2,107 ▲182.07 ▲0.0741.29 ▲1.6034.95 ▼0.01
Add New Post /wp-admin/post-new.php1,528 ▼1423.20 ▲4.86656.69 ▲20.8253.69 ▲0.82
Media Library /wp-admin/upload.php1,406 ▲184.29 ▲0.0598.10 ▲3.9040.14 ▼2.58
PaidVideoCall Widget /wp-admin/options-general.php?page=paidvideocallwidgetsettings9782.4634.5030.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=paidvideocallwidgetsettings
    • > Warning in wp-content/plugins/paidvideocall-widget/paidvideocall-widget.php+194
    implode(): Invalid arguments passed

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
5 plugin tags: audiocall, paidvideocall, monetize chat, paid chat, videocall

paidvideocall-widget/paidvideocall-widget.php 85% from 13 tests

Analyzing the main PHP file in "PaidVideoCall Widget" version 1.0
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "4.1")

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
There were no executable files found in this plugin441 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP31923193
JavaScript281170
CSS222878

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/images/step-2.png44.03KB19.27KB▼ 56.23%
assets/images/chosen-sprite.png0.53KB0.88KB0.00%
assets/images/step-1.png44.95KB18.66KB▼ 58.48%
assets/images/paidvideocall-min.png46.77KB46.88KB0.00%