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.91MB] [CPU: ▲7.74ms] Passed 4 tests
An overview of server-side resources used by Niso Carousel Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 44.64 ▲1.01 |
Dashboard /wp-admin | 4.45 ▲1.14 | 54.52 ▲5.28 |
Posts /wp-admin/edit.php | 4.53 ▲1.17 | 56.38 ▲9.50 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.16 | 118.43 ▲25.51 |
Media Library /wp-admin/upload.php | 4.37 ▲1.14 | 46.96 ▲15.15 |
Add New carousel /wp-admin/post-new.php?post_type=niso-carousel | 5.56 | 68.55 |
All carousel /wp-admin/edit.php?post_type=niso-carousel | 4.42 | 47.97 |
Server storage [IO: ▲5.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 476 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Niso Carousel Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲234 | 13.86 ▼0.54 | 6.94 ▲4.78 | 44.93 ▼2.48 |
Dashboard /wp-admin | 2,269 ▲84 | 5.01 ▼0.87 | 104.51 ▲0.15 | 40.49 ▼5.55 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.22 ▲0.22 | 43.94 ▲5.07 | 37.88 ▲5.76 |
Add New Post /wp-admin/post-new.php | 1,579 ▲51 | 23.61 ▲0.25 | 615.25 ▼70.00 | 33.65 ▼33.59 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.36 ▲0.10 | 98.77 ▲1.49 | 43.33 ▼1.77 |
Add New carousel /wp-admin/post-new.php?post_type=niso-carousel | 6,136 | 8.21 | 518.75 | 132.29 |
All carousel /wp-admin/edit.php?post_type=niso-carousel | 1,136 | 2.03 | 35.30 | 28.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 52× 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-slider/includes/niso-carousel-options.php:214
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/niso-carousel-slider/admin/src/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/niso-carousel-slider/admin/src/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/niso-carousel-slider/admin/niso-carousel-smeta.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/niso-carousel-slider/admin/src/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/niso-carousel-slider/admin/src/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/niso-carousel-slider/admin/niso-carousel-post.php:61
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/niso-carousel-slider/admin/src/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/niso-carousel-slider/admin/src/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/niso-carousel-slider/admin/src/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
niso-carousel-slider/niso-carousel-slider.php 92% from 13 tests
"Niso Carousel Slider" version 1.3.19's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 detected67,139 lines of code in 273 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,514 | 18,705 | 32,747 |
CSS | 31 | 1,852 | 1,348 | 15,662 |
PHP | 71 | 2,357 | 6,584 | 9,297 |
JavaScript | 26 | 1,069 | 959 | 3,559 |
JSON | 3 | 0 | 0 | 3,543 |
Sass | 17 | 305 | 25 | 1,408 |
HTML | 1 | 22 | 27 | 551 |
SVG | 3 | 25 | 0 | 372 |
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.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 9 | 12.68% |
▷ Concrete classes | 62 | 87.32% |
▷ Final classes | 0 | 0.00% |
Methods | 551 | |
▷ Static methods | 86 | 15.61% |
▷ Public methods | 459 | 83.30% |
▷ Protected methods | 89 | 16.15% |
▷ Private methods | 3 | 0.54% |
Functions | 72 | |
▷ Named functions | 72 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 7 | 43.75% |
▷ Class constants | 9 | 56.25% |
▷ Public constants | 9 | 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.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doc/assets/img/m_settings_3.png | 34.46KB | 11.54KB | ▼ 66.50% |
doc/assets/img/m_settings_6.png | 26.72KB | 10.42KB | ▼ 61.01% |
admin/src/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
doc/assets/img/s_settings.png | 18.78KB | 7.79KB | ▼ 58.50% |
admin/src/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |