Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.64ms] Passed 4 tests
An overview of server-side resources used by YITH WooCommerce Featured Video
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.65 ▼2.67 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.76 ▼7.03 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.00 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.73 ▼12.49 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.72 ▲0.99 |
Server storage [IO: ▲4.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 339 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
yit_recently_activated |
Browser metrics Passed 4 tests
YITH WooCommerce Featured Video: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.36 ▼0.36 | 1.81 ▲0.06 | 42.34 ▼3.63 |
Dashboard /wp-admin | 2,204 ▲27 | 5.62 ▼0.07 | 87.17 ▼9.09 | 39.66 ▼4.05 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.97 ▼0.00 | 35.75 ▼3.33 | 31.67 ▼5.48 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.33 ▲0.01 | 653.91 ▼38.95 | 50.29 ▲0.38 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.20 ▼0.02 | 100.68 ▲4.99 | 41.54 ▼1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- yit_recently_activated
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/yith-woocommerce-featured-video/templates/admin/premium.php:153
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
yith-woocommerce-featured-video/init.php 77% from 13 tests
This is the main PHP file of "YITH WooCommerce Featured Video" version 1.31.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 257 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("6.2" instead of "8.2")
- Main file name: Name the main plugin file the same as the plugin slug ("yith-woocommerce-featured-video.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin41,406 lines of code in 262 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 173 | 2,777 | 5,481 | 15,348 |
JavaScript | 53 | 1,350 | 823 | 9,377 |
CSS | 19 | 1,668 | 243 | 9,211 |
PO File | 7 | 1,697 | 2,207 | 4,476 |
SVG | 9 | 0 | 1 | 2,954 |
XML | 1 | 12 | 9 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 39.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 389 | |
▷ Static methods | 54 | 13.88% |
▷ Public methods | 317 | 81.49% |
▷ Protected methods | 52 | 13.37% |
▷ Private methods | 20 | 5.14% |
Functions | 150 | |
▷ Named functions | 142 | 94.67% |
▷ Anonymous functions | 8 | 5.33% |
Constants | 17 | |
▷ Global constants | 16 | 94.12% |
▷ Class constants | 1 | 5.88% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
51 PNG files occupy 0.76MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/images/sidebar-right.png | 0.95KB | 0.11KB | ▼ 87.91% |
plugin-fw/assets/images/colorbox/border1.png | 0.61KB | 0.82KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_888888_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/sleep.png | 0.11KB | 0.11KB | ▼ 5.13% |
assets/images/04-bg.png | 2.75KB | 1.22KB | ▼ 55.56% |