Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/import-qiita2wp/lib/cron.php+13
Undefined index: cron_interval
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.92ms] Passed 4 tests
Server-side resources used by Import Qiita2WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 6.50 ▼32.71 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.76 ▼41.20 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 6.72 ▼41.45 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.72 ▼92.30 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.72 ▼28.23 |
Import Qiita2WP /wp-admin/options-general.php?page=import_qiita2wp_add_adminpage | 2.09 | 6.81 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Import Qiita2WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.26 ▼1.13 | 1.83 ▲0.10 | 38.80 ▼3.37 |
Dashboard /wp-admin | 2,204 ▲13 | 5.80 ▲0.90 | 101.88 ▼13.00 | 41.02 ▲1.44 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.00 | 35.49 ▼4.91 | 32.73 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.45 ▲5.00 | 678.43 ▲78.82 | 51.05 ▼11.10 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.40 ▲0.17 | 102.36 ▲1.56 | 44.89 ▲2.18 |
Import Qiita2WP /wp-admin/options-general.php?page=import_qiita2wp_add_adminpage | 887 | 2.17 | 23.51 | 78.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/import-qiita2wp/lib/cron.php+13
Undefined index: cron_interval
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=import_qiita2wp_add_adminpage
- > Notice in wp-content/plugins/import-qiita2wp/template/admin.php+50
Undefined index: cron_interval
- > GET request to /wp-admin/options-general.php?page=import_qiita2wp_add_adminpage
- > Notice in wp-content/plugins/import-qiita2wp/template/admin.php+37
Undefined index: your_token
- > GET request to /wp-admin/options-general.php?page=import_qiita2wp_add_adminpage
- > Notice in wp-content/plugins/import-qiita2wp/template/admin.php+66
Undefined index: set_category
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: No valid plugin tags found
import-qiita2wp/qiita2wp.php 85% from 13 tests
Analyzing the main PHP file in "Import Qiita2WP" version 1.0.0
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("import-qiita2wp.php" instead of "qiita2wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin199 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 47 | 39 | 194 |
Markdown | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin