Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.09ms] Passed 4 tests
An overview of server-side resources used by Chart Block - Represent your data by chart
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.90 ▲0.48 |
Dashboard /wp-admin | 3.35 ▲0.04 | 42.88 ▼4.06 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 42.93 ▼5.86 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.44 ▼14.91 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.95 ▲1.77 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Chart Block - Represent your data by chart
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.18 ▼0.16 | 14.39 ▲12.83 | 35.07 ▼5.38 |
Dashboard /wp-admin | 2,195 ▲28 | 5.54 ▼0.04 | 81.72 ▼12.48 | 41.95 ▼1.83 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.00 | 34.91 ▼6.52 | 35.14 ▼9.02 |
Add New Post /wp-admin/post-new.php | 6,382 ▲4,856 | 23.44 ▲0.13 | 829.05 ▲167.89 | 35.78 ▼23.41 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.26 ▲0.03 | 97.30 ▼7.90 | 41.10 ▼2.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant BCHART_PLUGIN_VERSION - assumed 'BCHART_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/chart-block/dist/script.asset.php on line 4
- > PHP Warning
Use of undefined constant BCHART_PLUGIN_VERSION - assumed 'BCHART_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/chart-block/dist/editor.asset.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: Version format is invalid
- Screenshots: Screenshot #7 (Chart Settings) image missing
chart-block/plugin.php 92% from 13 tests
The primary PHP file in "Chart Block - Represent your data by chart" version 1.1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("chart-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected393 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 201 |
PO File | 1 | 64 | 124 | 146 |
PHP | 4 | 11 | 14 | 41 |
JavaScript | 3 | 0 | 14 | 3 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.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
There are no PNG files in this plugin