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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.21ms] Passed 4 tests
An overview of server-side resources used by Template Part Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.38 ▼1.42 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.44 ▼3.87 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.85 ▼5.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.28 ▼14.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.32 ▲2.11 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 130 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Template Part Block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.19 | 1.97 ▲0.15 | 42.04 ▼0.98 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.07 | 83.79 ▼10.24 | 41.40 ▼6.15 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.06 | 42.64 ▲2.53 | 38.08 ▲2.20 |
Add New Post /wp-admin/post-new.php | 6,193 ▲4,665 | 18.99 ▼4.05 | 927.24 ▲265.37 | 57.93 ▼5.24 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.28 ▲0.06 | 97.71 ▼16.88 | 43.30 ▼4.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- 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
Even though everything seems fine, this is not 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
- 87× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php:25
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php:34
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php:25
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractSyslogHandler' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Handler\\HandlerInterface' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php:32
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/template-part-block/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: block, query, gutenberg
template-part-block/wp-block-template-part.php 85% from 13 tests
"Template Part Block" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("template-part-block.php" instead of "wp-block-template-part.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected7,435 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 1,872 | 5,085 | 7,262 |
JSON | 2 | 0 | 0 | 172 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 9 | |
Traits | 4 | |
Classes | 99 | |
▷ Abstract classes | 7 | 7.07% |
▷ Concrete classes | 92 | 92.93% |
▷ Final classes | 0 | 0.00% |
Methods | 645 | |
▷ Static methods | 51 | 7.91% |
▷ Public methods | 444 | 68.84% |
▷ Protected methods | 145 | 22.48% |
▷ Private methods | 56 | 8.68% |
Functions | 29 | |
▷ Named functions | 10 | 34.48% |
▷ Anonymous functions | 19 | 65.52% |
Constants | 58 | |
▷ Global constants | 3 | 5.17% |
▷ Class constants | 55 | 94.83% |
▷ Public constants | 55 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin