Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.65MB] [CPU: ▼22.19ms] Passed 4 tests
Analyzing server-side resources used by Blockbuddy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.13 ▼5.72 |
Dashboard /wp-admin | 3.35 ▼0.00 | 53.58 ▼9.60 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.41 ▲0.48 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.67 | 38.77 ▼73.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.19 ▲1.61 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Blockbuddy
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.35 ▼0.00 | 1.51 ▼0.13 | 41.78 ▲1.29 |
Dashboard /wp-admin | 2,189 ▲12 | 5.56 ▼0.05 | 84.15 ▼4.33 | 40.90 ▼5.67 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 35.33 ▲0.53 | 37.59 ▼2.60 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,838 | 27.69 ▲4.54 | 881.98 ▲191.05 | 41.84 ▼12.89 |
Media Library /wp-admin/upload.php | 1,391 ▼12 | 4.18 ▼0.03 | 101.42 ▼9.26 | 44.39 ▼1.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/blockbuddy/trunk/templates/three-column.php
- > /wp-content/plugins/blockbuddy/block-buddy.php
- > /wp-content/plugins/blockbuddy/trunk/templates/four-column.php
- > /wp-content/plugins/blockbuddy/templates/three-column.php
- > /wp-content/plugins/blockbuddy/trunk/block-buddy.php
- > /wp-content/plugins/blockbuddy/templates/four-column.php
- > /wp-content/plugins/blockbuddy/templates/two-column.php
- > /wp-content/plugins/blockbuddy/trunk/templates/two-column.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: post_query in wp-content/plugins/blockbuddy/templates/two-column.php on line 6
- > PHP Notice
Undefined variable: post_query in wp-content/plugins/blockbuddy/trunk/templates/three-column.php on line 6
- > PHP Notice
Undefined variable: post_query in wp-content/plugins/blockbuddy/trunk/templates/two-column.php on line 6
- > PHP Notice
Undefined variable: post_query in wp-content/plugins/blockbuddy/trunk/templates/four-column.php on line 6
- > PHP Notice
Undefined variable: post_query in wp-content/plugins/blockbuddy/templates/three-column.php on line 6
- > PHP Notice
Undefined variable: post_query in wp-content/plugins/blockbuddy/templates/four-column.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: block, gutenberg
blockbuddy/block-buddy.php 92% from 13 tests
The primary PHP file in "Blockbuddy" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("blockbuddy.php" instead of "block-buddy.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
Success! There were no dangerous files found in this plugin622 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 101 | 50 | 337 |
JavaScript | 3 | 22 | 24 | 159 |
Sass | 3 | 16 | 1 | 101 |
JSON | 1 | 0 | 0 | 23 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 38 | 95.00% |
▷ Public methods | 36 | 90.00% |
▷ Protected methods | 2 | 5.00% |
▷ Private methods | 2 | 5.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected