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.04MB] [CPU: ▼4.79ms] Passed 4 tests
Server-side resources used by SB Chart block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.31 ▲5.09 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.15 ▼2.03 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.66 ▲0.85 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.84 ▼16.48 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.22 ▼1.49 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for SB Chart block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.34 ▲0.11 | 1.73 ▲0.11 | 44.08 ▲3.23 |
Dashboard /wp-admin | 2,189 ▲15 | 5.54 ▼0.03 | 79.99 ▼15.30 | 37.60 ▼15.27 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▲0.04 | 34.12 ▼3.68 | 34.71 ▼2.92 |
Add New Post /wp-admin/post-new.php | 6,379 ▲4,853 | 23.47 ▲0.34 | 887.58 ▲207.70 | 37.61 ▼22.64 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.06 | 94.22 ▼7.39 | 42.76 ▼2.40 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
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 no errors were found, this is by no means 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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-chart-block/sb-chart-block.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Tested up to: The plugin version is formatted incorrectly
sb-chart-block/sb-chart-block.php Passed 13 tests
Analyzing the main PHP file in "SB Chart block" version 1.2.5
32 characters long description:
Displays a Chart for CSV content
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
Success! There were no dangerous files found in this plugin16,285 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 2 | 0 | 14,619 |
JavaScript | 16 | 186 | 438 | 752 |
PHP | 5 | 121 | 332 | 600 |
PO File | 2 | 104 | 98 | 260 |
Sass | 2 | 9 | 0 | 27 |
Markdown | 1 | 12 | 0 | 25 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin