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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.54ms] Passed 4 tests
Server-side resources used by Videos For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 33.88 ▼3.11 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.49 ▼3.39 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.02 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.09 ▼19.19 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.48 ▼4.47 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Videos For WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.83 ▲0.46 | 1.56 ▼0.29 | 39.65 ▲1.19 |
Dashboard /wp-admin | 2,206 ▲21 | 4.83 ▼0.27 | 109.61 ▲3.86 | 38.62 ▼6.24 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.03 | 39.65 ▲3.05 | 34.93 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.17 ▲5.63 | 645.73 ▲15.02 | 57.95 ▲5.67 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▼0.04 | 96.10 ▼13.57 | 42.26 ▼6.02 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: youtube videos, woocommerce product, product related videos
videos-for-woocommerce/videos-for-woocommerce.php Passed 13 tests
"Videos For WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
43 characters long description:
WooCommerce product related youtube videos.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin223 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 69 | 194 |
CSS | 1 | 3 | 0 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin