10% import-qiita2wp

Code Review | Import Qiita2WP

WordPress plugin Import Qiita2WP scored10%from 54 tests.

About plugin

  • Plugin page: import-qiita2wp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Sep 23, 2022
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: fulfills (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /123 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.396.50 ▼32.71
Dashboard /wp-admin2.09 ▼1.216.76 ▼41.20
Posts /wp-admin/edit.php2.09 ▼1.266.72 ▼41.45
Add New Post /wp-admin/post-new.php2.09 ▼3.796.72 ▼92.30
Media Library /wp-admin/upload.php2.09 ▼1.145.72 ▼28.23
Import Qiita2WP /wp-admin/options-general.php?page=import_qiita2wp_add_adminpage2.096.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.26 ▼1.131.83 ▲0.1038.80 ▼3.37
Dashboard /wp-admin2,204 ▲135.80 ▲0.90101.88 ▼13.0041.02 ▲1.44
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0035.49 ▼4.9132.73 ▼1.95
Add New Post /wp-admin/post-new.php1,537 ▼523.45 ▲5.00678.43 ▲78.8251.05 ▼11.10
Media Library /wp-admin/upload.php1,392 ▲14.40 ▲0.17102.36 ▲1.5644.89 ▲2.18
Import Qiita2WP /wp-admin/options-general.php?page=import_qiita2wp_add_adminpage8872.1723.5178.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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP54739194
Markdown1305

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 code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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