Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.88ms] Passed 4 tests
Server-side resources used by Carousel Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.05 ▼18.82 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.56 ▼1.86 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 52.41 ▲7.39 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 93.99 ▼1.13 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 38.21 ▲2.29 |
Server storage [IO: ▲2.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_url_table |
New WordPress options |
---|
db_upgraded |
widget_carousel_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Carousel Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲221 | 14.71 ▲0.34 | 1.89 ▲0.13 | 38.83 ▼4.99 |
Dashboard /wp-admin | 2,369 ▲184 | 6.44 ▲1.56 | 130.43 ▲23.58 | 40.90 ▼4.04 |
Posts /wp-admin/edit.php | 2,275 ▲183 | 3.32 ▲1.33 | 53.96 ▲19.01 | 35.19 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 17.67 ▼5.40 | 560.97 ▼91.44 | 33.70 ▼34.77 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.20 ▼0.19 | 79.01 ▼27.68 | 40.40 ▼2.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/carousel-widget/carousel_widget.php+72
Undefined variable: tableName
- Zombie tables were found after uninstall: 1 table
- wp_url_table
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_carousel_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/carousel-widget/carousel_widget.php:271
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Screenshot of the carousel), #2 (Screenshot of widget), #3 (Screenshot of settings/info section), #4 (Screenshot of Item list on carousel), #5 (Screenshot of carousel demo in backend)
- Requires at least: Version format is invalid
carousel-widget/carousel_widget.php 92% from 13 tests
The main PHP file in "Carousel Widget" ver. 2.7.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("carousel-widget.php" instead of "carousel_widget.php")
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
Good job! No executable or dangerous file extensions detected1,528 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 261 | 145 | 930 |
CSS | 1 | 128 | 39 | 315 |
PHP | 1 | 107 | 41 | 255 |
JSON | 1 | 0 | 0 | 28 |
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.24 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.79MB with 1.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 788.12KB | 226.08KB | ▼ 71.31% |
screenshot-1.png | 1,045.81KB | 328.50KB | ▼ 68.59% |