Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.47MB] [CPU: ▼34.94ms] Passed 4 tests
This is a short check of server-side resources used by Palto Carousel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.12 ▼2.50 |
Dashboard /wp-admin | 3.53 ▲0.22 | 21.08 ▼25.71 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 23.03 ▼33.22 |
Add New Post /wp-admin/post-new.php | 3.53 ▼2.36 | 22.09 ▼66.74 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 22.05 ▼14.08 |
Add New carousel /wp-admin/post-new.php?post_type=palto-carousel | 3.53 | 21.15 |
All carousel /wp-admin/edit.php?post_type=palto-carousel | 3.53 | 28.49 |
Server storage [IO: ▲3.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 422 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Palto Carousel: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 13.77 ▼0.44 | 6.38 ▲4.71 | 38.54 ▼7.56 |
Dashboard /wp-admin | 2,233 ▲42 | 4.87 ▼0.18 | 107.88 ▲2.93 | 40.27 ▲1.06 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.02 | 39.10 ▲1.00 | 34.67 ▲3.13 |
Add New Post /wp-admin/post-new.php | 1,554 ▲40 | 17.71 ▲0.29 | 665.57 ▲34.03 | 37.38 ▼21.14 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.19 ▼0.02 | 97.41 ▼4.23 | 41.81 ▼2.71 |
Add New carousel /wp-admin/post-new.php?post_type=palto-carousel | 1,427 | 2.57 | 46.66 | 30.87 |
All carousel /wp-admin/edit.php?post_type=palto-carousel | 1,096 | 1.95 | 30.15 | 30.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/helper-functions.php+44
include_once(wp-content/plugins/palto-carousel/admin/src/cmb2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=palto-carousel
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/helper-functions.php+44
include_once(wp-content/plugins/palto-carousel/admin/src/cmb2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=palto-carousel
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/helper-functions.php+44
include_once(): Failed opening 'wp-content/plugins/palto-carousel/admin/src/cmb2/includes/CMB2_Hookup.php' for inclusion (include_path='.:/usr/share/php')
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=palto-carousel
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'CMB2_Hookup' not found
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 46× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/palto-carousel/admin/src/cmb2-field-slider/cmb2_field_slider.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/palto-carousel/admin/pcarousel-post-type.php:60
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/palto-carousel/admin/src/pcarousel-meta.php:18
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/palto-carousel/admin/src/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=palto-carousel
- > Network (severe)
wp-content/plugins/palto-carousel/admin/src/cmb2/js/cmb2-conditionals.js?ver=1.0.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
palto-carousel/palto-carousel.php 92% from 13 tests
The entry point to "Palto Carousel" version 1.2.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
No dangerous file extensions were detected49,701 lines of code in 244 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,454 | 18,650 | 32,624 |
PHP | 64 | 2,213 | 6,312 | 8,011 |
CSS | 23 | 367 | 1,287 | 5,757 |
JavaScript | 15 | 443 | 697 | 1,794 |
Sass | 17 | 306 | 29 | 1,410 |
SVG | 3 | 23 | 0 | 59 |
JSON | 1 | 0 | 0 | 46 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 9 | 12.86% |
▷ Concrete classes | 61 | 87.14% |
▷ Final classes | 0 | 0.00% |
Methods | 548 | |
▷ Static methods | 88 | 16.06% |
▷ Public methods | 456 | 83.21% |
▷ Protected methods | 89 | 16.24% |
▷ Private methods | 3 | 0.55% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 5 | 38.46% |
▷ Class constants | 8 | 61.54% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
31 PNG files occupy 0.36MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/themes/prev.png | 3.11KB | 0.32KB | ▼ 89.67% |
assets/css/themes/close@2x.png | 3.02KB | 0.34KB | ▼ 88.83% |
admin/src/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
admin/src/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
admin/src/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |