Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.52ms] Passed 4 tests
Analyzing server-side resources used by Modern Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.08 ▼5.89 |
Dashboard /wp-admin | 3.43 ▲0.13 | 49.01 ▼5.80 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.43 ▼0.40 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 88.42 ▼1.98 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 38.78 ▲4.37 |
Server storage [IO: ▲3.49MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 399 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Modern Slider: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 14.00 ▼0.53 | 11.66 ▲9.32 | 46.62 ▲2.98 |
Dashboard /wp-admin | 2,210 ▲42 | 5.66 ▲0.09 | 84.10 ▼18.66 | 39.95 ▼3.56 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 2.06 ▲0.09 | 34.50 ▼3.27 | 33.94 ▼3.99 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.66 ▲0.58 | 633.44 ▼48.85 | 43.70 ▼9.75 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.27 ▲0.11 | 105.19 ▲1.94 | 44.53 ▼3.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 56× 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/modern-slider/inc/vendor/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/modern-slider/inc/vendor/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/modern-slider/inc/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/modern-slider/inc/vendor/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/modern-slider/inc/vendor/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/modern-slider/inc/vendor/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/modern-slider/inc/vendor/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/modern-slider/inc/vendor/cmb2/includes/helper-functions.php:127
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/modern-slider/inc/vendor/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/modern-slider/inc/vendor/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Place the slider anywhere.), #2 (Specify where you would like your slider using the container (a selector).)
modern-slider/modern-slider.php Passed 13 tests
"Modern Slider" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
A modern slider for WordPress. Place it anywhere.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected56,974 lines of code in 249 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 71 | 3,064 | 6,347 | 11,265 |
CSS | 15 | 1,161 | 1,149 | 4,800 |
XML | 2 | 0 | 0 | 4,498 |
JavaScript | 11 | 374 | 473 | 1,629 |
Sass | 16 | 300 | 25 | 1,374 |
Markdown | 6 | 257 | 0 | 770 |
Bourne Shell | 4 | 67 | 45 | 206 |
JSON | 2 | 0 | 0 | 75 |
diff | 2 | 1 | 68 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 11 | 12.64% |
▷ Concrete classes | 76 | 87.36% |
▷ Final classes | 0 | 0.00% |
Methods | 848 | |
▷ Static methods | 119 | 14.03% |
▷ Public methods | 717 | 84.55% |
▷ Protected methods | 128 | 15.09% |
▷ Private methods | 3 | 0.35% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 9 | 56.25% |
▷ Class constants | 7 | 43.75% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/vendor/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
inc/vendor/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/vendor/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
inc/vendor/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
inc/vendor/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |