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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.39MB] [CPU: ▼4.76ms] Passed 4 tests
Server-side resources used by Carousel Horizontal Posts Content Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 42.71 ▲3.84 |
Dashboard /wp-admin | 3.69 ▲0.35 | 51.47 ▼14.20 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 54.80 ▲4.60 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 97.46 ▼9.40 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 39.11 ▲0.71 |
Settings /wp-admin/edit.php?post_type=wa_chpcs&page=wa_chpcs | 3.59 | 37.60 |
CHPC slider /wp-admin/edit.php?post_type=wa_chpcs | 3.66 | 40.16 |
Add New /wp-admin/post-new.php?post_type=wa_chpcs | 3.69 | 45.88 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_wa_chpcs_widget |
wa_chpcs_version |
wa_chpcs_review_notice_dismiss |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Carousel Horizontal Posts Content Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲240 | 14.21 ▲0.03 | 7.19 ▲5.37 | 40.53 ▲1.19 |
Dashboard /wp-admin | 2,262 ▲74 | 5.51 ▲0.61 | 122.06 ▲2.67 | 82.36 ▲36.14 |
Posts /wp-admin/edit.php | 2,164 ▲72 | 2.37 ▲0.36 | 44.77 ▲3.99 | 35.09 ▼0.64 |
Add New Post /wp-admin/post-new.php | 6,419 ▲4,900 | 28.70 ▲5.42 | 923.93 ▲298.04 | 40.12 ▼13.84 |
Media Library /wp-admin/upload.php | 1,447 ▲62 | 4.84 ▲0.61 | 107.40 ▲4.61 | 89.08 ▲45.89 |
Settings /wp-admin/edit.php?post_type=wa_chpcs&page=wa_chpcs | 1,021 | 2.34 | 29.98 | 28.54 |
CHPC slider /wp-admin/edit.php?post_type=wa_chpcs | 1,144 | 2.51 | 41.84 | 32.51 |
Add New /wp-admin/post-new.php?post_type=wa_chpcs | 3,342 | 3.46 | 89.09 | 100.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- wa_chpcs_version
- wa_chpcs_review_notice_dismiss
- widget_wa_chpcs_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wa_chpcs
- > Notice in wp-content/plugins/carousel-horizontal-posts-content-slider/views/wa_chpcs_type_meta_box.php+184
Trying to get property 'slug' of non-object
- > GET request to /wp-admin/post-new.php?post_type=wa_chpcs
- > Notice in wp-content/plugins/carousel-horizontal-posts-content-slider/views/wa_chpcs_options_meta_box.php+60
Undefined index: contents_order
- > GET request to /wp-admin/post-new.php?post_type=wa_chpcs
- > Warning in wp-content/plugins/carousel-horizontal-posts-content-slider/views/wa_chpcs_options_meta_box.php+682
file_get_contents(http://wp.com/wp-content/plugins/carousel-horizontal-posts-content-slider/views/webfonts.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/carousel-horizontal-posts-content-slider/views/wa_chpcs_banner_meta_box.php
- > /wp-content/plugins/carousel-horizontal-posts-content-slider/views/wa_chpcs_shortcode_meta_box.php
- 30× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: slider_gallery in wp-content/plugins/carousel-horizontal-posts-content-slider/templates/mouse-overlay/mouse-overlay.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/carousel-horizontal-posts-content-slider/views/wa_chpcs_custom_publish_meta_box.php:17
- > PHP Notice
Undefined variable: wa_chpcs_show_controls in wp-content/plugins/carousel-horizontal-posts-content-slider/templates/card/card.php on line 351
- > PHP Notice
Undefined variable: wa_chpcs_show_controls in wp-content/plugins/carousel-horizontal-posts-content-slider/templates/mouse-overlay/mouse-overlay.php on line 258
- > PHP Notice
Undefined variable: myposts in wp-content/plugins/carousel-horizontal-posts-content-slider/templates/basic/basic.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/carousel-horizontal-posts-content-slider/includes/class-wa-chpcs-widget.php:2
- > PHP Notice
Undefined variable: wa_chpcs_query_posts_item_height in wp-content/plugins/carousel-horizontal-posts-content-slider/templates/card/card.php on line 7
- > PHP Notice
Undefined variable: post_status in wp-content/plugins/carousel-horizontal-posts-content-slider/views/wa_chpcs_custom_publish_meta_box.php on line 7
- > PHP Notice
Undefined variable: wa_chpcs_show_paging in wp-content/plugins/carousel-horizontal-posts-content-slider/templates/card/card.php on line 367
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/carousel-horizontal-posts-content-slider/templates/basic/basic.php on line 9
- > PHP Notice
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 57 tag instead of maximum 10
carousel-horizontal-posts-content-slider/carousel-horizontal-posts-content-slider.php Passed 13 tests
"Carousel Horizontal Posts Content Slider" version 3.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
118 characters long description:
A simple posts content slider, product, images, videos, related posts, custom post type carousel plugin for WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin8,189 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 1,317 | 216 | 3,443 |
JavaScript | 12 | 121 | 37 | 2,693 |
CSS | 6 | 296 | 92 | 2,053 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 133.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 1 | 1.41% |
▷ Public methods | 71 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.33MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.77KB | 0.72KB | ▼ 6.94% |
assets/images/hover.png | 3.10KB | 0.31KB | ▼ 90.11% |
assets/js/shortcode/b_img.png | 0.57KB | 0.96KB | 0.00% |
assets/images/banner-772x2502.png | 313.11KB | 97.13KB | ▼ 68.98% |
assets/js/shortcode/icon.png | 0.77KB | 0.72KB | ▼ 6.94% |