78% auto-making-json-ld

Code Review | auto making JSON-LD

WordPress plugin auto making JSON-LD scored78%from 54 tests.

About plugin

  • Plugin page: auto-making-json-ld
  • Plugin version: 4.3.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2022
  • Latest release: Sep 12, 2023
  • Number of updates: 74
  • Update frequency: every 5.2 days
  • Top authors: nakamura1458 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,184 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼7.43ms] Passed 4 tests

This is a short check of server-side resources used by auto making JSON-LD
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1242.51 ▲3.52
Dashboard /wp-admin3.44 ▲0.1344.41 ▼2.94
Posts /wp-admin/edit.php3.55 ▲0.1944.38 ▼6.02
Add New Post /wp-admin/post-new.php6.02 ▲0.1381.64 ▼24.26
Media Library /wp-admin/upload.php3.36 ▲0.1338.60 ▲4.74
プラグイン認証と詳細 /wp-admin/admin.php?page=amJL_setting3.3032.28
構造化データの表示設定 /wp-admin/admin.php?page=view_setting3.3032.28
YouTubeの動画 /wp-admin/admin.php?page=youtubeAPI_setting3.3130.98
Articleの設定 /wp-admin/admin.php?page=article_setting3.3129.00

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 16 new options
New WordPress options
logo_check
widget_recent-posts
theysaidso_admin_options
db_upgraded
breadcrumb_check
recipe_check
widget_theysaidso_widget
review_check
widget_recent-comments
article_check
...

Browser metrics Passed 4 tests

Checking browser requirements for auto making JSON-LD
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9714.47 ▲0.101.90 ▲0.1746.79 ▲5.28
Dashboard /wp-admin2,249 ▲584.85 ▼0.02103.72 ▲3.7149.28 ▲5.34
Posts /wp-admin/edit.php2,132 ▲432.05 ▼0.0133.20 ▼8.7746.26 ▲8.94
Add New Post /wp-admin/post-new.php1,550 ▲623.37 ▲5.07667.80 ▲52.6659.96 ▲16.56
Media Library /wp-admin/upload.php1,431 ▲434.16 ▼0.03107.41 ▲12.2957.77 ▲15.89
プラグイン認証と詳細 /wp-admin/admin.php?page=amJL_setting8282.0626.1971.00
構造化データの表示設定 /wp-admin/admin.php?page=view_setting7962.0326.4551.02
YouTubeの動画 /wp-admin/admin.php?page=youtubeAPI_setting7932.0524.3440.83
Articleの設定 /wp-admin/admin.php?page=article_setting7932.0523.7544.20

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
  • The uninstall procedure has failed, leaving 16 options in the database
    • video_value
    • review_check
    • can_compress_scripts
    • faq_check
    • db_upgraded
    • image_check
    • logo_check
    • widget_theysaidso_widget
    • article_check
    • theysaidso_admin_options
    • ...

Smoke tests 50% 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)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=amJL_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/certification.php+17
    Undefined index: main
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+5
    Undefined index: breadcrumb_check
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+6
    Undefined index: article_check
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+7
    Undefined index: logo_check
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+8
    Undefined index: image_check
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+9
    Undefined index: sitelink_check
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+10
    Undefined index: recipe_check
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+11
    Undefined index: video_value
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+12
    Undefined index: faq_check
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+13
    Undefined index: howto_check
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+14
    Undefined index: review_check
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=view_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/view_settings.php+51
    Undefined index: amJL_view
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=youtubeAPI_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/youtube_api.php+11
    Undefined index: youtube_api
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=article_setting
    • > Notice in wp-content/plugins/auto-making-json-ld/settings/article.php+21
    Undefined index: articles

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
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-making-json-ld/settings/setting.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-making-json-ld/include/UploadCSS.php:18
    • > PHP Warning
      Use of undefined constant autoMakingJSONLD - assumed 'autoMakingJSONLD' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-making-json-ld/initialize.php on line 30
    • > PHP Warning
      Use of undefined constant autoMakingJSONLD - assumed 'autoMakingJSONLD' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-making-json-ld/initialize.php on line 9
    • > PHP Warning
      Use of undefined constant autoMakingJSONLD - assumed 'autoMakingJSONLD' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-making-json-ld/initialize.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/auto-making-json-ld/settings/init_setting.php:40
    • > PHP Warning
      Use of undefined constant autoMakingJSONLD_url - assumed 'autoMakingJSONLD_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-making-json-ld/initialize.php on line 27
    • > PHP Warning
      Use of undefined constant autoMakingJSONLD - assumed 'autoMakingJSONLD' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-making-json-ld/initialize.php on line 6
    • > PHP Warning
      Use of undefined constant autoMakingJSONLD - assumed 'autoMakingJSONLD' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-making-json-ld/initialize.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/auto-making-json-ld/settings/plugin_details.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: article, structure date, video, seo, breadcrumb...

auto-making-json-ld/auto-making-json-ld.php Passed 13 tests

The main file in "auto making JSON-LD" v. 4.3.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
構造化データを自動生成します。(最終更新日時:2023/09/12)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,196 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP2516369809
Sass1425219
CSS5412168

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 3.60MB with 1.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/recipes-on-google.png1,843.10KB623.53KB▼ 66.17%
img/video-on-google.png1,449.40KB458.08KB▼ 68.39%
img/sitelinks01.png108.55KB36.88KB▼ 66.03%
img/article-rich-result.png20.50KB12.92KB▼ 36.96%
img/breadcrumb_from_google.png8.73KB6.11KB▼ 29.99%