Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.57ms] Passed 4 tests
A check of server-side resources used by Besan Block
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.65 ▲2.90 |
Dashboard /wp-admin | 3.38 ▲0.03 | 47.13 ▼11.61 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.55 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 101.16 ▼9.29 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.91 ▲5.28 |
Besan Block /wp-admin/options-general.php?page=besan_options | 3.27 | 29.03 |
Server storage [IO: ▲0.04MB] [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: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Besan Block: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.10 ▼0.46 | 1.72 ▲0.09 | 43.63 ▲3.91 |
Dashboard /wp-admin | 2,198 ▲18 | 5.55 ▼0.12 | 82.84 ▼1.41 | 36.63 ▼8.62 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.98 ▼0.03 | 38.45 ▼0.30 | 35.53 ▲1.43 |
Add New Post /wp-admin/post-new.php | 6,370 ▲4,844 | 27.66 ▲4.43 | 863.56 ▲265.25 | 59.62 ▲10.26 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.00 | 97.16 ▲0.53 | 42.09 ▼2.21 |
Besan Block /wp-admin/options-general.php?page=besan_options | 865 | 2.00 | 21.82 | 27.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/besan-block/inc/template-options-page.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\BesanBlock\\is_admin() in wp-content/plugins/besan-block/inc/assets.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\BesanBlock\\is_admin() in wp-content/plugins/besan-block/inc/plugins-page.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\BesanBlock\\Chart\\add_action() in wp-content/plugins/besan-block/source/blocks/chart/register.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function ThreePM\\BesanBlock\\is_admin() in wp-content/plugins/besan-block/inc/options-page.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: chart, data, graph
besan-block/besan-block.php Passed 13 tests
The main PHP file in "Besan Block" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
This WordPress plugin adds a charting block to the post editor.
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
No dangerous file extensions were detected627 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 141 | 285 | 331 |
JavaScript | 4 | 44 | 19 | 166 |
Sass | 6 | 25 | 4 | 93 |
JSON | 1 | 3 | 0 | 36 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 61.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 38.46% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 16 | 100.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin