Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼15.98ms] Passed 4 tests
Server-side resources used by Bonway Static Block Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 43.21 ▼5.94 |
Dashboard /wp-admin | 3.41 ▲0.07 | 52.39 ▼0.03 |
Posts /wp-admin/edit.php | 3.52 ▲0.13 | 47.04 ▼4.27 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.67 | 38.53 ▼53.67 |
Media Library /wp-admin/upload.php | 3.33 ▲0.06 | 41.52 ▲2.80 |
Add New /wp-admin/post-new.php?post_type=bonway-static-block | 3.26 | 37.97 |
Static Blocks /wp-admin/edit.php?post_type=bonway-static-block | 3.38 | 38.09 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Bonway Static Block Editor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.35 ▼0.21 | 1.85 ▲0.09 | 45.78 ▲0.65 |
Dashboard /wp-admin | 2,209 ▲35 | 5.59 ▼0.08 | 90.67 ▼6.47 | 72.42 ▲31.86 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.95 ▼0.05 | 35.73 ▼0.07 | 34.41 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,703 ▲177 | 21.91 ▼1.19 | 772.95 ▲76.69 | 50.60 ▲0.63 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.30 ▲0.10 | 110.97 ▲10.70 | 75.12 ▲31.63 |
Add New /wp-admin/post-new.php?post_type=bonway-static-block | 2,280 | 7.53 | 170.19 | 133.59 |
Static Blocks /wp-admin/edit.php?post_type=bonway-static-block | 1,122 | 1.90 | 30.24 | 26.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=bonway-static-block
- > Notice in wp-content/plugins/bonway-static-block-editor/helpers/SbeMetaHelper.php+92
Undefined index: bonwaysbe-display-title
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=bonway-static-block
- > Notice in wp-content/plugins/bonway-static-block-editor/helpers/SbeMetaHelper.php+54
Undefined index: bonwaysbe-content-direction
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=bonway-static-block
- > Notice in wp-content/plugins/bonway-static-block-editor/helpers/SbeMetaHelper.php+54
Trying to access array offset on value of type null
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
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bonway-static-block-editor/helpers/SbeCustomDataHelper.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bonway-static-block-editor/helpers/SbeRenderHelper.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bonway-static-block-editor/helpers/SbeCustomDataHelper.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bonway-static-block-editor/helpers/SbeMetaHelper.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: static blocks, blocks, bonway, editor, static
bonway-static-block-editor/bonway-sbe.php 92% from 13 tests
The entry point to "Bonway Static Block Editor" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bonway-static-block-editor.php" instead of "bonway-sbe.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin317 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 55 | 144 | 226 |
CSS | 1 | 7 | 0 | 68 |
JavaScript | 1 | 2 | 1 | 22 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bonway_logo_mini.png | 0.96KB | 1.11KB | 0.00% |