Benchmarks
Plugin footprint 65% from 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: ▼1.05MB] [CPU: ▼40.01ms] Passed 4 tests
Analyzing server-side resources used by X-tra Ordinary WooCommerce Product Carousel and Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▼0.55 | 16.50 ▼25.17 |
Dashboard /wp-admin | 2.96 ▼0.34 | 18.51 ▼28.29 |
Posts /wp-admin/edit.php | 2.96 ▼0.39 | 17.46 ▼28.59 |
Add New Post /wp-admin/post-new.php | 2.96 ▼2.92 | 16.56 ▼77.98 |
Media Library /wp-admin/upload.php | 2.96 ▼0.27 | 17.79 ▼16.21 |
Add New Slider/Carousel /wp-admin/post-new.php?post_type=xox-carousel-slider | 2.96 | 17.98 |
Edit Theme /wp-admin/edit.php?post_type=xox-carousel-slider&page=xox-carousel-slider-edit-theme | 2.97 | 17.39 |
XoX Slider & Carousel /wp-admin/edit.php?post_type=xox-carousel-slider | 2.97 | 16.95 |
Upload/Import Theme /wp-admin/edit.php?post_type=xox-carousel-slider&page=xox-carousel-slider-upload-theme | 2.97 | 17.60 |
Server storage [IO: ▲6.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 483 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
recovery_mode_email_last_sent |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_wpb_widget |
Browser metrics Passed 4 tests
X-tra Ordinary WooCommerce Product Carousel and Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.30 ▼1.45 | 1.71 ▼0.38 | 40.93 ▼2.34 |
Dashboard /wp-admin | 2,262 ▲71 | 5.89 ▲1.03 | 94.02 ▼8.63 | 40.37 ▼2.31 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 2.05 ▲0.00 | 35.78 ▲2.62 | 32.32 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,560 ▲24 | 23.31 ▲0.14 | 635.55 ▲1.54 | 66.65 ▲10.15 |
Media Library /wp-admin/upload.php | 1,448 ▲63 | 4.28 ▲0.09 | 96.99 ▼4.12 | 43.03 ▼3.05 |
Add New Slider/Carousel /wp-admin/post-new.php?post_type=xox-carousel-slider | 1,627 | 1.89 | 25.48 | 47.54 |
Edit Theme /wp-admin/edit.php?post_type=xox-carousel-slider&page=xox-carousel-slider-edit-theme | 987 | 2.15 | 30.24 | 35.08 |
XoX Slider & Carousel /wp-admin/edit.php?post_type=xox-carousel-slider | 1,120 | 2.09 | 35.67 | 27.64 |
Upload/Import Theme /wp-admin/edit.php?post_type=xox-carousel-slider&page=xox-carousel-slider-upload-theme | 940 | 2.11 | 26.47 | 28.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/xox-woocommerce-slidercarousel/includes/class-xox-woo-carousel-custom-meta-box.php+46
Trying to get property 'slug' of non-object
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_recent-posts
- recovery_mode_email_last_sent
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_wpb_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=xox-carousel-slider&page=xox-carousel-slider-upload-theme
- > Notice in wp-content/plugins/xox-woocommerce-slidercarousel/includes/class-xox-woo-carousel-custom-meta-box.php+46
Trying to get property 'slug' of non-object
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=xox-carousel-slider&page=xox-carousel-slider-upload-theme
- > Notice in wp-content/plugins/xox-woocommerce-slidercarousel/includes/class-xox-woo-carousel-custom-meta-box.php+46
Trying to get property 'name' of non-object
- > GET request to /wp-admin/post-new.php?post_type=xox-carousel-slider
- > Compile error in wp-content/plugins/xox-woocommerce-slidercarousel/includes/cmb2/includes/types/CMB2_Type_Colorpicker.php+35
Declaration of CMB2_Type_Colorpicker::render() must be compatible with CMB2_Type_Text::render($args = Array)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/xox-woocommerce-slidercarousel/admin/partials/xox-woo-carousel-admin-display.php
- > /wp-content/plugins/xox-woocommerce-slidercarousel/public/partials/xox-woo-carousel-public-display.php
- 102× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/xox-woocommerce-slidercarousel/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/xox-woocommerce-slidercarousel/includes/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Notice
Undefined variable: sliderID in wp-content/plugins/xox-woocommerce-slidercarousel/includes/templates/slider/default.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/xox-woocommerce-slidercarousel/includes/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xox-woocommerce-slidercarousel/includes/cmb2/init.php:120
- > PHP Notice
Undefined variable: default_next in wp-content/plugins/xox-woocommerce-slidercarousel/includes/templates/slider/default.php on line 14
- > PHP Notice
Undefined variable: loops in wp-content/plugins/xox-woocommerce-slidercarousel/includes/templates/carousel/vertical.php on line 2
- > PHP Notice
Undefined variable: output in wp-content/plugins/xox-woocommerce-slidercarousel/includes/templates/carousel/default.php on line 2
- > PHP Notice
Undefined variable: sliderID in wp-content/plugins/xox-woocommerce-slidercarousel/includes/templates/slider/overlay.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/xox-woocommerce-slidercarousel/includes/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
7 plugin tags: category, sliders, products, woocommerce, premium...
xox-woocommerce-slidercarousel/xox-woo-carousel.php 85% from 13 tests
The entry point to "X-tra Ordinary WooCommerce Product Carousel and Slider" version 3.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("xox-woocommerce-slidercarousel.php" instead of "xox-woo-carousel.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected101,803 lines of code in 315 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 0 | 0 | 47,726 |
PO File | 124 | 14,158 | 18,381 | 32,404 |
PHP | 77 | 2,212 | 5,902 | 7,459 |
CSS | 23 | 1,168 | 1,165 | 7,012 |
Sass | 27 | 288 | 49 | 2,518 |
JavaScript | 26 | 545 | 493 | 2,438 |
LESS | 13 | 23 | 33 | 1,247 |
SVG | 1 | 0 | 0 | 520 |
YAML | 2 | 9 | 0 | 156 |
Markdown | 2 | 55 | 0 | 135 |
JSON | 3 | 0 | 0 | 95 |
HTML | 16 | 0 | 1 | 93 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 8 | 10.81% |
▷ Concrete classes | 66 | 89.19% |
▷ Final classes | 0 | 0.00% |
Methods | 510 | |
▷ Static methods | 81 | 15.88% |
▷ Public methods | 423 | 82.94% |
▷ Protected methods | 75 | 14.71% |
▷ Private methods | 12 | 2.35% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 7 | 43.75% |
▷ Class constants | 9 | 56.25% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/logo.png | 5.74KB | 1.98KB | ▼ 65.48% |
includes/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
includes/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
includes/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |