Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼6.34ms] Passed 4 tests
Server-side resources used by hatenablog auto migration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 39.98 ▼1.49 |
Dashboard /wp-admin | 3.72 ▲0.37 | 44.78 ▼17.22 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 49.05 ▼0.33 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 95.00 ▼6.30 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 35.99 ▲3.83 |
はてなブログ設定 /wp-admin/options-general.php?page=hatena_blog_auto-option | 3.54 | 32.75 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 149 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by hatenablog auto migration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.29 ▼1.45 | 1.62 ▼0.23 | 37.89 ▼6.90 |
Dashboard /wp-admin | 2,213 ▲22 | 4.84 ▼1.03 | 112.58 ▲5.47 | 46.97 ▲1.64 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▲0.04 | 39.97 ▼2.42 | 39.23 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 22.93 ▲4.69 | 597.65 ▼30.19 | 56.36 ▲4.94 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.25 ▲0.06 | 98.19 ▼2.27 | 46.34 ▲0.42 |
はてなブログ設定 /wp-admin/options-general.php?page=hatena_blog_auto-option | 839 | 2.05 | 27.39 | 78.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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
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
Almost there! Just fix the following items
- 44× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/psr7/src/Stream.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/promises/src/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/psr7/src/InflateStream.php:17
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/hatenablog-auto-migration/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: hatenablog
hatenablog-auto-migration/hatenablog-auto-migrator.php 92% from 13 tests
This is the main PHP file of "hatenablog auto migration" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hatenablog-auto-migration.php" instead of "hatenablog-auto-migrator.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
There were no executable files found in this plugin16,306 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 2,006 | 5,136 | 11,959 |
Markdown | 13 | 1,038 | 0 | 3,271 |
JSON | 10 | 0 | 0 | 829 |
XML | 6 | 0 | 0 | 228 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 71 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 71 | 100.00% |
▷ Final classes | 13 | 18.31% |
Methods | 709 | |
▷ Static methods | 126 | 17.77% |
▷ Public methods | 579 | 81.66% |
▷ Protected methods | 4 | 0.56% |
▷ Private methods | 126 | 17.77% |
Functions | 206 | |
▷ Named functions | 106 | 51.46% |
▷ Anonymous functions | 100 | 48.54% |
Constants | 107 | |
▷ Global constants | 44 | 41.12% |
▷ Class constants | 63 | 58.88% |
▷ Public constants | 63 | 100.00% |
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
There were not PNG files found in your plugin