Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▲2.12ms] Passed 4 tests
This is a short check of server-side resources used by Niso Carousel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 61.68 ▲20.87 |
Dashboard /wp-admin | 3.45 ▲0.15 | 53.35 ▲0.43 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 57.42 ▲3.97 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 100.05 ▲3.49 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.41 ▲0.57 |
All carousel /wp-admin/edit.php?post_type=niso-carousel | 3.41 | 37.48 |
Add New carousel /wp-admin/post-new.php?post_type=niso-carousel | 3.89 | 60.48 |
Server storage [IO: ▲3.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 171 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Niso Carousel
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲197 | 13.52 ▼0.85 | 15.34 ▲13.78 | 45.76 ▲3.05 |
Dashboard /wp-admin | 2,236 ▲68 | 5.66 ▲0.04 | 90.71 ▲1.18 | 43.38 ▼2.51 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.05 ▼0.13 | 43.79 ▲7.55 | 41.20 ▲11.36 |
Add New Post /wp-admin/post-new.php | 1,579 ▲34 | 23.53 ▲0.27 | 632.92 ▲2.36 | 36.06 ▼13.84 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.18 ▼0.01 | 102.23 ▼0.95 | 44.04 ▼1.76 |
All carousel /wp-admin/edit.php?post_type=niso-carousel | 1,126 | 1.98 | 37.88 | 30.65 |
Add New carousel /wp-admin/post-new.php?post_type=niso-carousel | 5,727 | 5.71 | 539.63 | 120.21 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/niso-carousel/includes/niso-carousel-options.php:214
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/niso-carousel/admin/src/cmb-field-select2/cmb-field-select2.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/niso-carousel/admin/niso-carousel-meta-tab.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/niso-carousel/admin/niso-button-tinymce.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/niso-carousel/admin/niso-carousel-column-set.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/niso-carousel/admin/src/cmb2tab/tab.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/niso-carousel/admin/niso-carousel-update-massage.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/niso-carousel/admin/niso-carousel-admin-role.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/niso-carousel/admin/src/cmb2/cmb2-conditionals.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/niso-carousel/includes/niso-carousel-shortcode.php:183
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Niso carousel backend editor), #2 (Video carousel .), #3 (Niso carousel awesome settings)
- Tags: You are using too many tags: 16 tag instead of maximum 10
niso-carousel/niso-carousel.php 92% from 13 tests
The primary PHP file in "Niso Carousel" version 1.1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected29,549 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 26 | 2,674 | 2,215 | 19,319 |
PHP | 27 | 1,155 | 2,478 | 4,825 |
JavaScript | 19 | 848 | 469 | 2,697 |
Sass | 11 | 168 | 23 | 1,116 |
PO File | 2 | 306 | 340 | 669 |
HTML | 1 | 22 | 27 | 551 |
SVG | 3 | 25 | 0 | 372 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 41.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 231 | |
▷ Static methods | 22 | 9.52% |
▷ Public methods | 219 | 94.81% |
▷ Protected methods | 9 | 3.90% |
▷ Private methods | 3 | 1.30% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 5 | 55.56% |
▷ Class constants | 4 | 44.44% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
51 PNG files occupy 1.48MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doc/assets/img/item_list.png | 30.50KB | 13.50KB | ▼ 55.72% |
admin/src/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
assets/img/input-unchecked.png | 0.15KB | 0.15KB | 0.00% |
assets/css/themes/close.png | 2.88KB | 0.24KB | ▼ 91.76% |
doc/assets/img/video_link.png | 24.03KB | 8.38KB | ▼ 65.14% |