Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.54ms] Passed 4 tests
An overview of server-side resources used by Multisite Shared Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.18 ▼8.90 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.54 ▼18.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.63 ▲0.90 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.77 ▼4.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.72 ▲2.04 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 149 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Multisite Shared Blocks: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.34 ▼0.01 | 1.63 ▼0.17 | 42.32 ▼4.20 |
Dashboard /wp-admin | 2,198 ▲20 | 5.63 ▼0.09 | 85.71 ▼23.02 | 37.28 ▼8.96 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.94 ▼0.09 | 40.54 ▲2.73 | 36.80 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.25 ▲0.08 | 661.38 ▲16.12 | 52.98 ▼11.01 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.01 | 101.56 ▲6.25 | 41.84 ▲1.37 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/multisite-shared-blocks/views/admin/admin-page.php
- > /wp-content/plugins/multisite-shared-blocks/multisite-shared-blocks.php
- > /wp-content/plugins/multisite-shared-blocks/views/block-excerpt.php
- > /wp-content/plugins/multisite-shared-blocks/views/preview.php
- 109× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-shared-blocks/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: share, multisite, block, network, gutenberg
multisite-shared-blocks/multisite-shared-blocks.php Passed 13 tests
The main PHP script in "Multisite Shared Blocks" version 1.1.0 is automatically included on every request by WordPress
37 characters long description:
Share blocks between network's sites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,075 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 1,019 | 2,236 | 4,763 |
JSON | 2 | 0 | 0 | 192 |
YAML | 3 | 30 | 0 | 111 |
JavaScript | 2 | 0 | 6 | 8 |
CSS | 2 | 1 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 123 | |
▷ Abstract classes | 2 | 1.63% |
▷ Concrete classes | 121 | 98.37% |
▷ Final classes | 14 | 11.57% |
Methods | 251 | |
▷ Static methods | 55 | 21.91% |
▷ Public methods | 176 | 70.12% |
▷ Protected methods | 48 | 19.12% |
▷ Private methods | 27 | 10.76% |
Functions | 13 | |
▷ Named functions | 3 | 23.08% |
▷ Anonymous functions | 10 | 76.92% |
Constants | 13 | |
▷ Global constants | 6 | 46.15% |
▷ Class constants | 7 | 53.85% |
▷ Public constants | 4 | 57.14% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin