Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼3.02ms] Passed 4 tests
This is a short check of server-side resources used by WP Posts Carousel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 38.96 ▼2.53 |
Dashboard /wp-admin | 3.55 ▲0.24 | 45.89 ▼2.61 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 42.94 ▼3.12 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 84.94 ▼3.82 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 35.67 ▲0.58 |
WP Posts Carousel /wp-admin/options-general.php?page=wp-posts-carousel | 3.44 | 31.84 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_wp_posts_carousel |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Posts Carousel
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲128 | 13.51 ▼0.77 | 9.54 ▲7.77 | 36.64 ▼18.09 |
Dashboard /wp-admin | 2,205 ▲25 | 5.60 ▼0.05 | 87.22 ▼10.80 | 37.42 ▼4.54 |
Posts /wp-admin/edit.php | 2,110 ▲31 | 2.07 ▲0.03 | 39.63 ▲0.48 | 36.20 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.11 ▼0.06 | 607.97 ▼10.53 | 83.59 ▲22.78 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.26 ▼0.05 | 98.36 ▼5.44 | 42.66 ▼2.64 |
WP Posts Carousel /wp-admin/options-general.php?page=wp-posts-carousel | 990 | 2.16 | 26.41 | 25.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_wp_posts_carousel
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Widget configuration), #2 (Shortcode generator), #3 (WYSIWYG button), #4 (Settings page), #5 (Example of usage)
wp-posts-carousel/wp-posts-carousel.php 92% from 13 tests
"WP Posts Carousel" version 1.3.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 201 characters long)
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected4,350 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 493 | 928 | 1,985 |
PHP | 8 | 178 | 234 | 1,589 |
CSS | 6 | 38 | 102 | 468 |
PO File | 1 | 120 | 132 | 308 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 25.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 5.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 16 | 44.44% |
▷ Public methods | 35 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.78% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.52MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 247.89KB | 81.24KB | ▼ 67.23% |
screenshot-1.png | 84.43KB | 31.99KB | ▼ 62.11% |
images/placeholder.png | 3.61KB | 3.64KB | 0.00% |
screenshot-4.png | 123.72KB | 50.95KB | ▼ 58.82% |
images/teastudio-logo.png | 4.23KB | 2.93KB | ▼ 30.76% |