Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼180.74ms] Passed 4 tests
An overview of server-side resources used by Product Slider For WooCommerce Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 29.27 ▼2.85 |
Dashboard /wp-admin | 3.06 ▼0.00 | 33.07 ▼19.26 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 29.98 ▼5.14 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 76.11 ▼695.71 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 24.15 ▼0.16 |
Server storage [IO: ▲6.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 122 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Product Slider For WooCommerce Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,716 ▲114 | 15.80 ▲0.18 | 5.56 ▼1.28 | 77.43 ▼0.91 |
Dashboard /wp-admin | 2,933 ▲37 | 6.03 ▼0.11 | 115.85 ▼14.61 | 166.13 ▼7.36 |
Posts /wp-admin/edit.php | 2,743 ▼0 | 3.24 ▼0.00 | 67.09 ▲2.81 | 143.99 ▲8.59 |
Add New Post /wp-admin/post-new.php | 3,735 ▲56 | 17.83 ▼0.41 | 425.87 ▼13.07 | 155.89 ▼3.54 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.46 ▼0.10 | 131.13 ▼13.94 | 185.54 ▲1.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 47× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/frontend/data/ribbon/ribbon-settings.php
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/admin/settings/psfw-post.php
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/frontend/data/ribbon.php
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/admin/settings/psfw-banner.php
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/frontend/data/inner/thumbnail-image.php
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/admin/settings/psfw-usages.php
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/admin/fields/button-settings.php
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/frontend/data/ribbon/individual-ribbon.php
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/admin/settings/psfw-product.php
- > /wp-content/plugins/product-slider-for-woocommerce-lite/inc/admin/settings/psfw-general.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/product-slider-for-woocommerce-lite/inc/psfwl-block/psfwl-block-init.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #15 is missing in product-slider-for-woocommerce-lite/assets to your readme.txt
- Tags: There are too many tags (14 tag instead of maximum 10)
product-slider-for-woocommerce-lite/product-slider-for-woocommerce-lite.php 85% from 13 tests
The entry point to "Product Slider For WooCommerce Lite" version 1.1.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages/")
- Description: Keep the plugin description shorter than 140 characters (currently 179 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
No dangerous file extensions were detected32,958 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 582 | 431 | 25,318 |
PHP | 49 | 317 | 750 | 3,784 |
JavaScript | 9 | 204 | 720 | 3,171 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 56.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 95 | |
▷ Static methods | 9 | 9.47% |
▷ Public methods | 93 | 97.89% |
▷ Protected methods | 2 | 2.11% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 25 | |
▷ Global constants | 16 | 64.00% |
▷ Class constants | 9 | 36.00% |
▷ Public constants | 9 | 100.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
24 PNG files occupy 3.37MB with 1.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/demo/slider-templates/template-3.png | 429.74KB | 161.10KB | ▼ 62.51% |
images/demo/slider-templates/template-4.png | 274.48KB | 96.87KB | ▼ 64.71% |
images/plugin.png | 12.50KB | 5.31KB | ▼ 57.50% |
images/controls1.png | 2.74KB | 1.42KB | ▼ 48.29% |
images/googleplus.png | 1.91KB | 0.99KB | ▼ 48.06% |