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.38MB] [CPU: ▲0.76ms] Passed 4 tests
A check of server-side resources used by gitblock — Github Block Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 43.93 ▲0.48 |
Dashboard /wp-admin | 3.72 ▲0.41 | 46.97 ▼2.39 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 49.96 ▲5.85 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 93.06 ▲5.13 |
Media Library /wp-admin/upload.php | 3.58 ▲0.34 | 37.01 ▼0.20 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 480 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by gitblock — Github Block Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.61 ▼0.79 | 2.04 ▲0.22 | 43.29 ▼0.43 |
Dashboard /wp-admin | 2,206 ▲21 | 5.83 ▼0.03 | 98.71 ▼16.16 | 40.43 ▼1.81 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.05 | 39.10 ▲2.13 | 34.48 ▲1.37 |
Add New Post /wp-admin/post-new.php | 6,183 ▲4,669 | 19.79 ▲2.38 | 860.06 ▲189.30 | 62.94 ▲3.94 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.22 ▲0.11 | 96.97 ▼19.67 | 48.53 ▲0.19 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 283× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/gitblock/vendor/clue/stream-filter/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/gitblock/vendor/clue/stream-filter/examples/uppercase.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Github\\Api\\AbstractApi' not found in wp-content/plugins/gitblock/vendor/knplabs/github-api/lib/Github/Api/GitData/Commits.php:13
- > PHP Fatal error
Uncaught Error: Class 'Github\\Api\\AbstractApi' not found in wp-content/plugins/gitblock/vendor/knplabs/github-api/lib/Github/Api/Enterprise/License.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Exception' not found in wp-content/plugins/gitblock/vendor/php-http/discovery/src/Exception/NotFoundException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/gitblock/vendor/guzzlehttp/psr7/src/LimitStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\HttpMethodsClientInterface' not found in wp-content/plugins/gitblock/vendor/php-http/client-common/src/HttpMethodsClient.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\StreamFactory' not found in wp-content/plugins/gitblock/vendor/php-http/message/src/StreamFactory/DiactorosStreamFactory.php:16
- > PHP Fatal error
Uncaught Error: Class 'Http\\Discovery\\ClassDiscovery' not found in wp-content/plugins/gitblock/vendor/php-http/discovery/src/Psr18ClientDiscovery.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Exception' not found in wp-content/plugins/gitblock/vendor/php-http/cache-plugin/src/Exception/RewindStreamException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Github\\Api\\AbstractApi' not found in wp-content/plugins/gitblock/vendor/knplabs/github-api/lib/Github/Api/Authorizations.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: github, github blocks, blocks, gutenberg blocks
gitblock/gitblock.php Passed 13 tests
"gitblock — Github Block Plugin" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
gitblock — is a plugin for adding Github blocks.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected44,376 lines of code in 473 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 428 | 5,257 | 14,619 | 37,819 |
Markdown | 19 | 1,298 | 0 | 3,341 |
JSON | 6 | 0 | 0 | 2,022 |
Sass | 5 | 70 | 0 | 418 |
CSS | 1 | 66 | 28 | 381 |
JavaScript | 6 | 25 | 15 | 216 |
PO File | 1 | 40 | 50 | 93 |
XML | 2 | 1 | 0 | 37 |
YAML | 2 | 5 | 2 | 27 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 7.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 67 | |
Interfaces | 59 | |
Traits | 16 | |
Classes | 311 | |
▷ Abstract classes | 6 | 1.93% |
▷ Concrete classes | 305 | 98.07% |
▷ Final classes | 107 | 35.08% |
Methods | 1,846 | |
▷ Static methods | 164 | 8.88% |
▷ Public methods | 1,593 | 86.29% |
▷ Protected methods | 57 | 3.09% |
▷ Private methods | 196 | 10.62% |
Functions | 239 | |
▷ Named functions | 86 | 35.98% |
▷ Anonymous functions | 153 | 64.02% |
Constants | 171 | |
▷ Global constants | 49 | 28.65% |
▷ Class constants | 122 | 71.35% |
▷ Public constants | 122 | 100.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
There were not PNG files found in your plugin