77% arvia

Code Review | Arvia Live Video Shopping - WP Live Video Shopping Plugin for Wordpress

WordPress plugin Arvia Live Video Shopping - WP Live Video Shopping Plugin for Wordpress scored77%from 54 tests.

About plugin

  • Plugin page: arvia
  • Plugin version: 1.0.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 24, 2022
  • Latest release: Oct 17, 2022
  • Number of updates: 4
  • Update frequency: every 52.5 days
  • Top authors: arvia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.23ms] Passed 4 tests

This is a short check of server-side resources used by Arvia Live Video Shopping - WP Live Video Shopping Plugin for Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.69 ▲3.06
Dashboard /wp-admin3.35 ▲0.0447.13 ▼5.61
Posts /wp-admin/edit.php3.40 ▲0.0447.24 ▼2.15
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.81 ▼15.19
Media Library /wp-admin/upload.php3.27 ▲0.0444.90 ▲2.03

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Arvia Live Video Shopping - WP Live Video Shopping Plugin for Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.34 ▼0.011.84 ▲0.1045.30 ▲2.38
Dashboard /wp-admin2,210 ▲335.55 ▼0.1889.31 ▲0.0981.34 ▲38.17
Posts /wp-admin/edit.php2,118 ▲181.97 ▼0.0338.13 ▼3.3833.64 ▼3.57
Add New Post /wp-admin/post-new.php1,692 ▲16622.38 ▼1.30721.79 ▲78.1357.79 ▲6.26
Media Library /wp-admin/upload.php1,409 ▲124.10 ▼0.09111.06 ▲3.0476.76 ▲29.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 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 everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/arvia/templates/logo.php
    • > /wp-content/plugins/arvia/templates/loading.php
    • > /wp-content/plugins/arvia/templates/signup.php
    • > /wp-content/plugins/arvia/templates/login.php
    • > /wp-content/plugins/arvia/templates/error.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/arvia/templates/page.php:2
    • > PHP Warning
      Use of undefined constant ARVIA_PLUGIN_URL - assumed 'ARVIA_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/arvia/templates/logo.php on line 2
    • > PHP Warning
      Use of undefined constant ARVIA_PLUGIN_URL - assumed 'ARVIA_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/arvia/templates/loading.php on line 2
    • > PHP Warning
      Use of undefined constant ARVIA_PLUGIN_URL - assumed 'ARVIA_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/arvia/templates/loading.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/arvia/templates/integration.php:78
    • > PHP Warning
      Use of undefined constant ARVIA_PLUGIN_URL - assumed 'ARVIA_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/arvia/templates/logo.php on line 2
    • > PHP Warning
      Use of undefined constant ARVIA_PLUGIN_URL - assumed 'ARVIA_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/arvia/templates/logo.php on line 2
    • > PHP Warning
      Use of undefined constant ARVIA_PLUGIN_URL - assumed 'ARVIA_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/arvia/templates/logo.php on line 2
    • > PHP Warning
      Use of undefined constant ARVIA_PLUGIN_URL - assumed 'ARVIA_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/arvia/templates/logo.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/arvia/arvia.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 103 tag instead of maximum 10
The official readme.txt might help

arvia/arvia.php 85% from 13 tests

The main PHP file in "Arvia Live Video Shopping - WP Live Video Shopping Plugin for Wordpress" ver. 1.0.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected650 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP85810644
CSS2065
JavaScript1061

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods333.33%
▷ Protected methods00.00%
▷ Private methods666.67%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 8.65MB with 6.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-6.png495.04KB162.28KB▼ 67.22%
assets/screenshot-7.png528.61KB164.52KB▼ 68.88%
img/icon.png7.43KB0.16KB▼ 97.91%
assets/screenshot-1.png809.26KB194.21KB▼ 76.00%
assets/screenshot-4.png1,016.86KB400.65KB▼ 60.60%