Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.82MB] [CPU: ▼34.44ms] Passed 4 tests
Server-side resources used by Client Carousel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 36.67 ▼7.01 |
Dashboard /wp-admin | 3.14 ▼0.21 | 25.46 ▼37.58 |
Posts /wp-admin/edit.php | 3.14 ▼0.22 | 25.03 ▼21.18 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.75 | 25.79 ▼69.18 |
Media Library /wp-admin/upload.php | 3.14 ▼0.09 | 26.33 ▼9.82 |
All Client Carousel /wp-admin/edit.php?post_type=cpcarousel | 3.14 | 24.17 |
Add Client Carousel /wp-admin/post-new.php?post_type=cpcarousel | 3.14 | 25.26 |
Settings /wp-admin/edit.php?post_type=cpcarousel&page=logo-client-carousel | 3.14 | 30.47 |
Server storage [IO: ▲3.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
clogo_settings |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Client Carousel: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 13.47 ▼1.10 | 10.62 ▲8.90 | 35.73 ▼6.89 |
Dashboard /wp-admin | 2,234 ▲54 | 5.63 ▲0.04 | 86.73 ▼8.81 | 41.45 ▼1.35 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 1.98 ▼0.05 | 35.94 ▲0.04 | 36.36 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.19 ▼0.22 | 667.33 ▼2.60 | 53.98 ▼0.33 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.25 ▲0.06 | 94.36 ▼7.83 | 43.55 ▼3.86 |
All Client Carousel /wp-admin/edit.php?post_type=cpcarousel | 1,117 | 1.97 | 28.96 | 31.23 |
Add Client Carousel /wp-admin/post-new.php?post_type=cpcarousel | 1,648 | 3.57 | 61.20 | 31.96 |
Settings /wp-admin/edit.php?post_type=cpcarousel&page=logo-client-carousel | 1,121 | 2.00 | 22.68 | 26.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- clogo_settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cpcarousel&page=logo-client-carousel
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=cpcarousel
- > Notice in wp-content/plugins/client-carousel/admin/cpadmin.php+36
Undefined property: Admin::$version
- > GET request to /wp-admin/edit.php?post_type=cpcarousel&page=logo-client-carousel
- > Notice in wp-content/plugins/client-carousel/admin/cpadmin_settings.php+111
Undefined index: box_shadow
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cpcarousel&page=logo-client-carousel
- > Notice in wp-content/plugins/client-carousel/admin/cpadmin_settings.php+119
Undefined index: carousel_style
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cpcarousel&page=logo-client-carousel
- > Notice in wp-content/plugins/client-carousel/admin/cpadmin_settings.php+132
Undefined index: hover_style
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cpcarousel&page=logo-client-carousel
- > Notice in wp-content/plugins/client-carousel/admin/cpadmin_settings.php+144
Undefined index: button_style
SRP 50% 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/client-carousel/cpcarousel.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/client-carousel/admin/cpadmin_settings.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: A description for screenshot #6 is missing in client-carousel/assets to your readme.txt
client-carousel/cpcarousel.php 92% from 13 tests
This is the main PHP file of "Client Carousel" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("client-carousel.php" instead of "cpcarousel.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin9,572 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 68 | 46 | 6,095 |
SVG | 2 | 0 | 0 | 1,890 |
JavaScript | 4 | 37 | 20 | 829 |
PHP | 7 | 286 | 54 | 758 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.65% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/assets/images/carouselwith-seprator.png | 44.44KB | 16.67KB | ▼ 62.48% |
classes/assets/images/next-prev-btn.png | 41.06KB | 14.67KB | ▼ 64.28% |
classes/assets/images/pagination.png | 41.58KB | 14.98KB | ▼ 63.97% |
classes/assets/images/Creativepig-logo.png | 3.54KB | 1.56KB | ▼ 55.85% |
classes/assets/images/hover-gray.png | 31.33KB | 16.55KB | ▼ 47.16% |