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.19MB] [CPU: ▼12.74ms] Passed 4 tests
Analyzing server-side resources used by Content Slider Block - Display slider in a beautiful way.
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 35.56 ▼5.15 |
Dashboard /wp-admin | 3.49 ▲0.15 | 45.59 ▼12.89 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 50.35 ▼2.33 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 86.04 ▼30.57 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 36.68 ▲2.83 |
Content Slider Block /wp-admin/admin.php?page=content-slider-block | 3.37 | 36.56 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
csb_pro-redirect |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Slider Block - Display slider in a beautiful way.
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,611 ▼1,135 | 12.85 ▼1.44 | 10.20 ▲8.58 | 35.23 ▼6.00 |
Dashboard /wp-admin | 2,209 ▲21 | 5.90 ▲0.02 | 101.88 ▲3.11 | 45.53 ▲1.39 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.99 ▼0.00 | 42.71 ▲1.09 | 36.94 ▲1.17 |
Add New Post /wp-admin/post-new.php | 6,202 ▲4,660 | 19.66 ▲1.15 | 877.02 ▲219.43 | 35.90 ▼19.24 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.16 ▼0.02 | 102.27 ▲1.82 | 42.24 ▲0.04 |
Content Slider Block /wp-admin/admin.php?page=content-slider-block | 786 | 2.29 | 51.20 | 26.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- csb_pro-redirect
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-slider-block/inc/custom-post.php:6
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/content-slider-block/bplugins_sdk/inc/Base/Activate.php:3
- > PHP Warning
Use of undefined constant CSB_VERSION - assumed 'CSB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-slider-block/dist/script.asset.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/content-slider-block/bplugins_sdk/inc/Base/License.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-slider-block/inc/pattern.php:4
- > PHP Warning
Use of undefined constant CSB_VERSION - assumed 'CSB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-slider-block/dist/editor.asset.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Requires at least: Invalid plugin version format
content-slider-block/plugin.php 92% from 13 tests
"Content Slider Block - Display slider in a beautiful way." version 3.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("content-slider-block.php" instead of "plugin.php")
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
Success! There were no dangerous files found in this plugin2,118 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 126 | 42 | 703 |
JavaScript | 17 | 72 | 39 | 489 |
PO File | 2 | 158 | 298 | 347 |
JSON | 5 | 0 | 0 | 346 |
Sass | 3 | 11 | 5 | 184 |
CSS | 5 | 4 | 4 | 49 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 50 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.85% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bplugins_sdk/dist/assets/images/shield_success.png | 3.47KB | 3.61KB | 0.00% |