Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.09MB] [CPU: ▲1.84ms] Passed 4 tests
A check of server-side resources used by IndieBlocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.58 ▲1.12 | 43.54 ▼0.48 |
Dashboard /wp-admin | 4.40 ▲1.06 | 58.83 ▼5.61 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 55.91 ▲11.60 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.16 | 95.86 ▲1.85 |
Media Library /wp-admin/upload.php | 4.33 ▲1.10 | 50.43 ▲17.71 |
IndieBlocks /wp-admin/options-general.php?page=indieblocks | 4.29 | 34.13 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 111 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
indieblocks_settings |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
IndieBlocks: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.72 ▲0.36 | 1.61 ▼0.17 | 39.73 ▼3.76 |
Dashboard /wp-admin | 2,199 ▲18 | 5.62 ▼0.06 | 95.62 ▼12.55 | 42.37 ▼3.77 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▲0.02 | 39.44 ▲2.26 | 36.44 ▲1.49 |
Add New Post /wp-admin/post-new.php | 6,423 ▲4,897 | 28.31 ▲5.35 | 883.20 ▲279.32 | 36.61 ▼14.26 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.02 | 94.81 ▼1.98 | 41.42 ▼3.14 |
IndieBlocks /wp-admin/options-general.php?page=indieblocks | 896 | 2.18 | 23.97 | 27.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- indieblocks_settings
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'IndieBlocks\\Michelf\\Markdown' not found in wp-content/plugins/indieblocks/build/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php:16
- > PHP Fatal error
Uncaught Error: Interface 'IndieBlocks\\Michelf\\MarkdownInterface' not found in wp-content/plugins/indieblocks/build/vendor/michelf/php-markdown/Michelf/Markdown.php:16
- > PHP Fatal error
Uncaught Error: Class 'IndieBlocks\\Plugin' not found in wp-content/plugins/indieblocks/blocks/location/block.asset.php:4
- > PHP Fatal error
Uncaught Error: Class 'IndieBlocks\\Masterminds\\HTML5\\Parser\\StringInputStream' not found in wp-content/plugins/indieblocks/build/vendor/masterminds/html5/src/HTML5/Parser/FileInputStream.php:17
- > PHP Fatal error
Uncaught Error: Class 'IndieBlocks\\Plugin' not found in wp-content/plugins/indieblocks/blocks/context/block.asset.php:4
- > PHP Fatal error
Uncaught Error: Class 'IndieBlocks\\Plugin' not found in wp-content/plugins/indieblocks/blocks/link-preview/block.asset.php:4
- > PHP Fatal error
Uncaught Error: Interface 'IndieBlocks\\Masterminds\\HTML5\\Serializer\\RulesInterface' not found in wp-content/plugins/indieblocks/build/vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php:16
- > PHP Fatal error
require(): Failed opening required 'IndieBlocks/Michelf/Markdown.php' (include_path='.:/usr/share/php') in wp-content/plugins/indieblocks/build/vendor/michelf/php-markdown/Readme.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'IndieBlocks\\Plugin' not found in wp-content/plugins/indieblocks/blocks/repost/block.asset.php:4
- > PHP Fatal error
Uncaught Error: Class 'IndieBlocks\\Plugin' not found in wp-content/plugins/indieblocks/blocks/facepile-content/block.asset.php:4
- > PHP Fatal error
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)
There were no browser issues found
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:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
indieblocks/indieblocks.php Passed 13 tests
This is the main PHP file of "IndieBlocks" version 0.10.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
Leverage blocks and custom post types to easily "IndieWebify" your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin11,861 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 1,241 | 5,983 | 10,129 |
JavaScript | 12 | 151 | 64 | 1,193 |
JSON | 10 | 0 | 0 | 426 |
CSS | 3 | 18 | 1 | 100 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 37.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 301.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 42 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 489 | |
▷ Static methods | 148 | 30.27% |
▷ Public methods | 327 | 66.87% |
▷ Protected methods | 149 | 30.47% |
▷ Private methods | 13 | 2.66% |
Functions | 45 | |
▷ Named functions | 42 | 93.33% |
▷ Anonymous functions | 3 | 6.67% |
Constants | 65 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 65 | 100.00% |
▷ Public constants | 65 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/mm.png | 1.13KB | 1.23KB | 0.00% |