Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.83ms] Passed 4 tests
Analyzing server-side resources used by TWI Woocommerce Grid/Slider/Carousel Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.78 ▼10.49 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.18 ▼2.97 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.02 ▲4.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.12 ▼11.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 34.21 ▲1.19 |
Server storage [IO: ▲3.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 223 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TWI Woocommerce Grid/Slider/Carousel Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.47 ▲0.11 | 1.56 ▼0.43 | 38.17 ▲0.65 |
Dashboard /wp-admin | 2,215 ▲24 | 4.84 ▼0.05 | 108.21 ▲5.17 | 40.85 ▼5.84 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 1.97 ▼0.09 | 40.03 ▼1.68 | 38.31 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 23.04 ▲0.28 | 588.10 ▲15.02 | 49.28 ▲1.72 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.24 ▼0.02 | 94.03 ▼13.90 | 44.14 ▼0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 133× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/inc/config/dependencies.php on line 32
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/inc/views/control/date.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/inc/constant.php:11
- > PHP Notice
Undefined variable: type in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/inc/views/control/template_control_head.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function get_title() on null in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/inc/views/option/set.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/lang.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/inc/views/option/impexp.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function vp_metabox() in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/template/variables/variables.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/inc/includes/wpalchemy/MetaBox.php:22
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/twi-woocommerce-gridslidercarousel-lite/inc/views/control/radiobutton.php on line 1
- > PHP Warning
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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce slider, woocommerce grid, woocommerce product slider, woocommerce carousel, woocommerce product carousel
twi-woocommerce-gridslidercarousel-lite/twi-awesome-woocommerce-slider-carousel-free.php 92% from 13 tests
The main PHP file in "TWI Woocommerce Grid/Slider/Carousel Lite" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("twi-woocommerce-gridslidercarousel-lite.php" instead of "twi-awesome-woocommerce-slider-carousel-free.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,018 lines of code in 171 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 2,106 | 2,375 | 9,716 |
JavaScript | 49 | 444 | 291 | 2,973 |
CSS | 15 | 52 | 158 | 2,816 |
SVG | 2 | 0 | 0 | 979 |
PO File | 1 | 208 | 1,347 | 444 |
Markdown | 2 | 31 | 0 | 89 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 272.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 4 | 7.14% |
▷ Concrete classes | 52 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 505 | |
▷ Static methods | 89 | 17.62% |
▷ Public methods | 472 | 93.47% |
▷ Protected methods | 19 | 3.76% |
▷ Private methods | 14 | 2.77% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 35 | 92.11% |
▷ Class constants | 3 | 7.89% |
▷ Public constants | 3 | 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
27 PNG files occupy 0.50MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
inc/public/img/vp_shortcode_icon.png | 1.13KB | 0.18KB | ▼ 84.22% |
inc/public/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |
inc/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |