56% jijianyun

Code Review | 集简云(SDK嵌入)

WordPress plugin 集简云(SDK嵌入) scored56%from 54 tests.

About plugin

  • Plugin page: jijianyun
  • Plugin version: 19.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 22, 2022
  • Latest release: Jul 5, 2022
  • Number of updates: 31
  • Update frequency: every 1.4 days
  • Top authors: jjiyun1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /223 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼31.42ms] Passed 4 tests

This is a short check of server-side resources used by 集简云(SDK嵌入)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.02 ▲5.06
Dashboard /wp-admin3.07 ▼0.2423.63 ▼27.80
Posts /wp-admin/edit.php3.07 ▼0.2925.91 ▼17.90
Add New Post /wp-admin/post-new.php3.07 ▼2.8224.49 ▼64.80
Media Library /wp-admin/upload.php3.07 ▼0.1622.80 ▼15.19
应用管理 /wp-admin/admin.php?page=jijianyun_app-manage3.0724.28
流程日志 /wp-admin/admin.php?page=jijianyun_data-log3.0725.61
集简云 /wp-admin/admin.php?page=jijianyun3.0720.56
数据流程 /wp-admin/admin.php?page=jijianyun_data-pipeline3.0722.76
流程模板 /wp-admin/admin.php?page=jijianyun_pipeline-template3.0719.81

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

集简云(SDK嵌入): an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19513.77 ▼0.545.58 ▲3.6544.08 ▼2.72
Dashboard /wp-admin2,253 ▲655.22 ▼0.63122.25 ▲15.1454.17 ▲15.90
Posts /wp-admin/edit.php2,139 ▲502.39 ▲0.3637.75 ▲3.4045.14 ▲8.32
Add New Post /wp-admin/post-new.php1,552 ▲3223.51 ▲0.08666.87 ▼11.2250.82 ▼26.69
Media Library /wp-admin/upload.php1,438 ▲504.56 ▲0.3696.34 ▼11.8551.20 ▲3.94
应用管理 /wp-admin/admin.php?page=jijianyun_app-manage8172.0729.8241.71
流程日志 /wp-admin/admin.php?page=jijianyun_data-log8141.9725.0532.61
集简云 /wp-admin/admin.php?page=jijianyun1,0501.9826.0492.09
数据流程 /wp-admin/admin.php?page=jijianyun_data-pipeline8141.9624.4734.64
流程模板 /wp-admin/admin.php?page=jijianyun_pipeline-template8141.9724.0830.77

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
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=jijianyun_pipeline-template
    • > User notice in wp-includes/functions.php+5905
    Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=jijianyun_pipeline-template
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Jijianyun_Admin::jijianyun_options_page_html() should not be called statically
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=jijianyun_pipeline-template
    • > Notice in wp-content/plugins/jijianyun/admin/views/view.php+5
    Undefined index: formSubmit
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=jijianyun_pipeline-template
    • > Notice in wp-content/plugins/jijianyun/admin/views/view.php+6
    Undefined index: formSubmit1
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=jijianyun_pipeline-template
    • > Notice in wp-content/plugins/jijianyun/admin/views/view.php+7
    Undefined index: clear

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/jijianyun/admin/partials/jijianyun-admin-display.php
    • > /wp-content/plugins/jijianyun/public/partials/jijianyun-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/jijianyun/admin/views/view.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=jijianyun_pipeline-template
    • > Javascript (severe) in unknown
    https://cdn.jijyun.cn/t/site316/index-sdk.js?ver=1.0.0 0:50822 Uncaught Error: "secret" is missing or empty

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: content analysiscomments spam

jijianyun/jijianyun.php 85% from 13 tests

"集简云(SDK嵌入)" version 19.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 308 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected602 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14160577595
JavaScript24546
JSON1001
CSS2080

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.88
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods34
▷ Static methods617.65%
▷ Public methods2779.41%
▷ Protected methods00.00%
▷ Private methods720.59%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin