84% autoin-jp

Code Review | autoin-jp

WordPress plugin autoin-jp scored84%from 54 tests.

About plugin

  • Plugin page: autoin-jp
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8
  • WordPress version: 6.3.1
  • First release: Dec 19, 2019
  • Latest release: Sep 1, 2021
  • Number of updates: 14
  • Update frequency: every 44.6 days
  • Top authors: ta_terunuma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.24ms] Passed 4 tests

An overview of server-side resources used by autoin-jp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.08 ▼2.52
Dashboard /wp-admin3.31 ▲0.0049.60 ▼13.35
Posts /wp-admin/edit.php3.36 ▲0.0058.20 ▲6.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.98 ▼0.15
Media Library /wp-admin/upload.php3.23 ▲0.0036.85 ▼0.94

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for autoin-jp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.30 ▼1.084.81 ▲2.8341.98 ▼5.57
Dashboard /wp-admin2,221 ▲155.90 ▲1.03111.17 ▲0.9741.89 ▲2.19
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0340.51 ▼0.0637.29 ▼0.13
Add New Post /wp-admin/post-new.php1,546 ▲1423.35 ▲0.03624.40 ▼35.9753.95 ▲1.59
Media Library /wp-admin/upload.php1,397 ▼64.23 ▲0.0199.75 ▼2.2944.85 ▲0.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/autoin-jp/autoin-jp.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (https://autoin.jp/img/autoin_choice.png) image missing
The official readme.txt might help

autoin-jp/autoin-jp.php Passed 13 tests

The entry point to "autoin-jp" version 1.4 is a PHP file that has certain tags in its header comment area
60 characters long description:
The autoin-jp which is an ultimate automatic inputting tool.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP261084

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected