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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.69 ▲3.06 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.13 ▼5.61 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.24 ▼2.15 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.81 ▼15.19 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 44.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.34 ▼0.01 | 1.84 ▲0.10 | 45.30 ▲2.38 |
Dashboard /wp-admin | 2,210 ▲33 | 5.55 ▼0.18 | 89.31 ▲0.09 | 81.34 ▲38.17 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.97 ▼0.03 | 38.13 ▼3.38 | 33.64 ▼3.57 |
Add New Post /wp-admin/post-new.php | 1,692 ▲166 | 22.38 ▼1.30 | 721.79 ▲78.13 | 57.79 ▲6.26 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.10 ▼0.09 | 111.06 ▲3.04 | 76.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 58 | 10 | 644 |
CSS | 2 | 0 | 6 | 5 |
JavaScript | 1 | 0 | 6 | 1 |
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 code | 0.53 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 3 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 66.67% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-6.png | 495.04KB | 162.28KB | ▼ 67.22% |
assets/screenshot-7.png | 528.61KB | 164.52KB | ▼ 68.88% |
img/icon.png | 7.43KB | 0.16KB | ▼ 97.91% |
assets/screenshot-1.png | 809.26KB | 194.21KB | ▼ 76.00% |
assets/screenshot-4.png | 1,016.86KB | 400.65KB | ▼ 60.60% |