Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.36ms] Passed 4 tests
An overview of server-side resources used by Product Videos for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.96 ▼6.04 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.48 ▲1.54 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.66 ▲1.85 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.53 ▼10.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.82 ▲1.28 |
Automations /wp-admin/admin.php?page=api-pv-automations | 3.34 | 32.35 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 11 new options
New WordPress options |
---|
api_pv_automation_count |
can_compress_scripts |
theysaidso_admin_options |
api_pv_automation_all |
widget_recent-posts |
db_upgraded |
api_pv_automation_products_per |
widget_theysaidso_widget |
api_pv_product_store_count |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Product Videos for Woocommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲113 | 13.32 ▼1.06 | 1.96 ▼0.01 | 39.85 ▼4.38 |
Dashboard /wp-admin | 2,229 ▲41 | 5.83 ▲0.98 | 95.72 ▼24.40 | 35.97 ▼8.98 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.06 ▼0.10 | 34.90 ▲0.43 | 31.01 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.16 ▲5.55 | 668.37 ▲12.57 | 52.81 ▼7.30 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.20 ▼0.01 | 105.35 ▲6.23 | 51.76 ▲5.02 |
Automations /wp-admin/admin.php?page=api-pv-automations | 993 | 2.04 | 28.08 | 29.70 |
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 does not fully uninstall, leaving 11 options in the database
- widget_recent-posts
- api_pv_product_store_count
- api_pv_automation_products_per
- api_pv_automation_count
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- api_pv_total_products_start
- api_pv_automation_all
- theysaidso_admin_options
- ...
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
product-videos-for-woocommerce/product-videos-for-woocommerce.php 85% from 13 tests
Analyzing the main PHP file in "Product Videos for Woocommerce" version 2.1.0
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: The description should be shorter than 140 characters (currently 209 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,238 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 209 | 227 | 3,238 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/video-icon.png | 1.80KB | 1.66KB | ▼ 7.91% |