Benchmarks
Plugin footprint 83% 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.10MB] [CPU: ▼7.03ms] Passed 4 tests
Analyzing server-side resources used by Any Content Carousel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.09 | 43.15 ▲2.43 |
Dashboard /wp-admin | 39.38 ▲36.04 | 7,365,169.85 ▲7,365,118.89 |
Posts /wp-admin/edit.php | 3.55 ▲0.14 | 56.38 ▼1.57 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.10 | 87.06 ▼18.87 |
Media Library /wp-admin/upload.php | 3.36 ▲0.08 | 35.26 ▼10.10 |
Server storage [IO: ▲0.40MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Any Content Carousel
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 13.29 ▼1.21 | 3.44 ▲1.69 | 41.03 ▼5.96 |
Dashboard /wp-admin | 2,230 ▲53 | 5.91 ▲0.24 | 93.05 ▲3.67 | 41.83 ▼1.34 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.31 ▲0.34 | 42.87 ▲6.41 | 36.21 ▲3.43 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.17 ▲0.24 | 657.87 ▼14.71 | 34.61 ▼27.24 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.58 ▲0.36 | 102.74 ▼7.55 | 46.64 ▼0.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 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 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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 following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: posts in wp-content/plugins/any-content-carousel/inc/content-post.php on line 6
- > PHP Notice
Undefined variable: prdotti in wp-content/plugins/any-content-carousel/inc/content-product.php on line 5
- > PHP Notice
Undefined variable: content in wp-content/plugins/any-content-carousel/inc/content-home.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/any-content-carousel/inc/utility.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/any-content-carousel/inc/dati-strutturati.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/any-content-carousel/inc/content-home.php:23
- > PHP Notice
Undefined variable: users in wp-content/plugins/any-content-carousel/inc/content-user.php on line 5
- > PHP Notice
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: carousel, product carousel, type, shortcode, woocommerce...
any-content-carousel/content-slider.php 92% from 13 tests
"Any Content Carousel" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("any-content-carousel.php" instead of "content-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,392 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 881 | 52 | 2,255 |
PHP | 8 | 371 | 275 | 1,245 |
CSS | 4 | 19 | 16 | 477 |
Sass | 2 | 31 | 5 | 361 |
SVG | 4 | 1 | 0 | 54 |
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.21 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 22 | |
▷ Static methods | 6 | 27.27% |
▷ Public methods | 9 | 40.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 59.09% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/sfera.png | 33.19KB | 11.09KB | ▼ 66.57% |