Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/blockprotocol/block-protocol.php+137
Undefined variable: pagenow
Server metrics [RAM: ▲2.16MB] [CPU: ▲7.45ms] Passed 4 tests
Analyzing server-side resources used by Block Protocol
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.62 ▲2.16 | 58.30 ▲11.21 |
Dashboard /wp-admin | 5.46 ▲2.16 | 65.64 ▲7.58 |
Posts /wp-admin/edit.php | 5.51 ▲2.16 | 70.11 ▲19.75 |
Add New Post /wp-admin/post-new.php | 8.05 ▲2.17 | 100.76 ▼2.66 |
Media Library /wp-admin/upload.php | 5.38 ▲2.16 | 54.78 ▲13.65 |
Server storage [IO: ▲7.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 642 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_block_protocol_entities |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
block_protocol_view_count |
Browser metrics Passed 4 tests
Checking browser requirements for Block Protocol
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,007 ▲246 | 21.82 ▲7.47 | 177.01 ▲175.45 | 50.04 ▲7.91 |
Dashboard /wp-admin | 2,246 ▲69 | 5.51 ▼0.03 | 84.57 ▼7.07 | 39.23 ▼5.29 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 2.00 ▲0.00 | 41.86 ▲2.45 | 36.02 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 18.08 ▼4.92 | 626.76 ▼42.64 | 71.22 ▲4.84 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.14 ▼0.03 | 103.65 ▲5.19 | 45.22 ▲2.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_block_protocol_entities
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- block_protocol_view_count
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 271× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface' not found in wp-content/plugins/blockprotocol/vendor/symfony/http-client-contracts/Exception/ServerExceptionInterface.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/blockprotocol/vendor/symfony/options-resolver/Exception/AccessException.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Sentry\\ClientBuilderInterface' not found in wp-content/plugins/blockprotocol/vendor/sentry/sentry/src/ClientBuilder.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\OptionsResolver\\Exception\\InvalidArgumentException' not found in wp-content/plugins/blockprotocol/vendor/symfony/options-resolver/Exception/MissingOptionsException.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\OptionsResolver\\Exception\\InvalidArgumentException' not found in wp-content/plugins/blockprotocol/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php:21
- > PHP Fatal error
Uncaught Error: Class 'Sentry\\Integration\\AbstractErrorListenerIntegration' not found in wp-content/plugins/blockprotocol/vendor/sentry/sentry/src/Integration/FatalErrorListenerIntegration.php:16
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Common\\Plugin\\SeekableBodyPlugin' not found in wp-content/plugins/blockprotocol/vendor/php-http/client-common/src/Plugin/ResponseSeekableBodyPlugin.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/blockprotocol/vendor/sentry/sentry/src/Monolog/Handler.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/blockprotocol/vendor/sentry/sentry/src/Dsn.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface' not found in wp-content/plugins/blockprotocol/vendor/symfony/http-client-contracts/Exception/RedirectionExceptionInterface.php:19
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
blockprotocol/block-protocol.php 92% from 13 tests
This is the main PHP file of "Block Protocol" version 0.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("blockprotocol.php" instead of "block-protocol.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected47,049 lines of code in 591 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 465 | 7,493 | 15,221 | 29,474 |
Sass | 2 | 26 | 2 | 7,274 |
Markdown | 42 | 1,998 | 0 | 3,592 |
JSON | 31 | 0 | 0 | 3,182 |
TypeScript | 31 | 321 | 238 | 3,147 |
CSS | 3 | 28 | 0 | 186 |
YAML | 5 | 12 | 2 | 132 |
Bourne Shell | 1 | 6 | 0 | 18 |
XML | 1 | 0 | 0 | 16 |
JavaScript | 9 | 0 | 0 | 15 |
make | 1 | 6 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 70 | |
Interfaces | 80 | |
Traits | 25 | |
Classes | 328 | |
▷ Abstract classes | 10 | 3.05% |
▷ Concrete classes | 318 | 96.95% |
▷ Final classes | 217 | 68.24% |
Methods | 2,190 | |
▷ Static methods | 298 | 13.61% |
▷ Public methods | 1,889 | 86.26% |
▷ Protected methods | 60 | 2.74% |
▷ Private methods | 241 | 11.00% |
Functions | 340 | |
▷ Named functions | 129 | 37.94% |
▷ Anonymous functions | 211 | 62.06% |
Constants | 111 | |
▷ Global constants | 4 | 3.60% |
▷ Class constants | 107 | 96.40% |
▷ Public constants | 76 | 71.03% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 2.26MB with 1.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
settings/images/blocks.png | 325.23KB | 87.16KB | ▼ 73.20% |
build/images/blocks.e3a196f2.png | 325.23KB | 87.16KB | ▼ 73.20% |
settings/images/block-trio.png | 301.32KB | 78.72KB | ▼ 73.87% |
build/images/block-trio.cc017916.png | 301.32KB | 78.72KB | ▼ 73.87% |
settings/images/ai.png | 528.91KB | 176.76KB | ▼ 66.58% |