Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.14ms] Passed 4 tests
This is a short check of server-side resources used by WPC Product Videos for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 46.13 ▲12.07 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.67 ▼2.01 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 43.45 ▼4.66 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 79.42 ▼8.93 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 41.00 ▲7.04 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.52 | 30.17 |
About /wp-admin/admin.php?page=wpclever | 3.31 | 28.41 |
Server storage [IO: ▲1.07MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WPC Product Videos for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 14.29 ▼0.09 | 1.79 ▲0.14 | 44.13 ▲4.33 |
Dashboard /wp-admin | 2,258 ▲87 | 5.61 ▲0.04 | 89.70 ▲0.83 | 82.07 ▲38.31 |
Posts /wp-admin/edit.php | 2,176 ▲73 | 2.03 ▼0.01 | 34.94 ▼2.01 | 32.73 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,752 ▲224 | 22.32 ▼0.84 | 732.41 ▲63.09 | 54.12 ▲3.34 |
Media Library /wp-admin/upload.php | 1,469 ▲72 | 4.23 ▼0.02 | 96.64 ▼2.43 | 70.04 ▲25.61 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,742 | 2.16 | 31.93 | 57.45 |
About /wp-admin/admin.php?page=wpclever | 1,394 | 2.14 | 32.42 | 35.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2 in wpc-product-videos/assets to your readme.txt
wpc-product-videos/wpc-product-videos.php Passed 13 tests
The primary PHP file in "WPC Product Videos for WooCommerce" version 1.1.0 is used by WordPress to initiate all plugin functionality
117 characters long description:
WPC Product Videos helps you add many videos for a product and linked to the feature image or product gallery images.
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
There were no executable files found in this plugin7,538 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 984 | 453 | 3,677 |
CSS | 10 | 421 | 19 | 2,430 |
SVG | 4 | 0 | 0 | 875 |
PHP | 4 | 89 | 28 | 556 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/libs/lightgallery/img/youtube-play.png | 5.06KB | 2.37KB | ▼ 53.04% |
assets/libs/lightgallery/img/video-play.png | 4.42KB | 1.05KB | ▼ 76.27% |
assets/libs/lightgallery/img/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |