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.71MB] [CPU: ▼0.55ms] Passed 4 tests
This is a short check of server-side resources used by Block Slider - Responsive Image Slider, Video Slider & Post Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 38.78 ▲1.63 |
Dashboard /wp-admin | 4.05 ▲0.75 | 47.99 ▲3.40 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 49.28 ▼0.30 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.79 | 97.18 ▼6.92 |
Media Library /wp-admin/upload.php | 3.81 ▲0.59 | 38.56 ▲3.50 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.14 | 37.61 |
Server storage [IO: ▲4.33MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 278 new files
Database: no new tables, 10 new options
New WordPress options |
---|
_blockslider_is_flashed_cpt |
fs_debug_mode |
fs_accounts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
fs_active_plugins |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Block Slider - Responsive Image Slider, Video Slider & Post Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲149 | 13.29 ▼1.01 | 1.91 ▲0.15 | 29.88 ▼17.40 |
Dashboard /wp-admin | 2,254 ▲69 | 5.85 ▲0.98 | 101.57 ▼9.64 | 40.23 ▼1.58 |
Posts /wp-admin/edit.php | 2,146 ▲54 | 2.03 ▲0.01 | 40.26 ▲0.24 | 38.46 ▼0.20 |
Add New Post /wp-admin/post-new.php | 6,440 ▲4,921 | 23.75 ▲0.55 | 852.76 ▲164.99 | 76.67 ▲17.71 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 4.23 ▲0.00 | 98.54 ▼5.02 | 43.28 ▼0.97 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,095 | 1.74 | 27.00 | 26.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/block-slider/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- can_compress_scripts
- db_upgraded
- fs_active_plugins
- fs_accounts
- fs_debug_mode
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- _blockslider_is_flashed_cpt
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 10× PHP files output text when accessed directly:
- > /wp-content/plugins/block-slider/bootstrap.php
- > /wp-content/plugins/block-slider/app/Notices/UnsupportedVersionNotice.php
- > /wp-content/plugins/block-slider/app/App.php
- > /wp-content/plugins/block-slider/app/QuerySlider.php
- > /wp-content/plugins/block-slider/app/Admin.php
- > /wp-content/plugins/block-slider/block-slider.php
- > /wp-content/plugins/block-slider/app/Slider.php
- > /wp-content/plugins/block-slider/app/WooQuerySupport.php
- > /wp-content/plugins/block-slider/app/Views/UnsupportedVersionNotice.php
- > /wp-content/plugins/block-slider/app/Notice.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'CakeWP\\BlockSlider\\Traits\\DynamicPostClass' not found in wp-content/plugins/block-slider/app/Blocks/BlockSlider.php on line 16
- > PHP Fatal error
Trait 'CakeWP\\BlockSlider\\Traits\\DynamicPostClass' not found in wp-content/plugins/block-slider/app/Blocks/Navigation.php on line 17
- > PHP Fatal error
Trait 'CakeWP\\BlockSlider\\Traits\\DynamicPostClass' not found in wp-content/plugins/block-slider/app/Blocks/Pagination.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/block-slider/app/Views/PageTemplates/Single.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: post slider, slider, image slider, wordpress slider, responsive slider
block-slider/block-slider.php 77% from 13 tests
"Block Slider - Responsive Image Slider, Video Slider & Post Slider" version 2.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.8" instead of "5.7")
- Requires PHP: The required version number must match the one declared in readme.txt ("7.2" instead of "5.6")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected37,445 lines of code in 230 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 177 | 8,699 | 18,630 | 35,151 |
JSON | 9 | 0 | 0 | 1,785 |
Markdown | 4 | 94 | 0 | 247 |
JavaScript | 15 | 34 | 69 | 216 |
CSS | 24 | 2 | 0 | 43 |
SVG | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 54.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 85 | |
▷ Abstract classes | 2 | 2.35% |
▷ Concrete classes | 83 | 97.65% |
▷ Final classes | 1 | 1.20% |
Methods | 1,393 | |
▷ Static methods | 235 | 16.87% |
▷ Public methods | 995 | 71.43% |
▷ Protected methods | 17 | 1.22% |
▷ Private methods | 381 | 27.35% |
Functions | 114 | |
▷ Named functions | 101 | 88.60% |
▷ Anonymous functions | 13 | 11.40% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/block-slider.png | 9.16KB | 5.26KB | ▼ 42.58% |