67% jjyconnect

Code Review | 集简云

WordPress plugin 集简云 scored67%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /364 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.87MB] [CPU: ▼34.21ms] Passed 4 tests

Analyzing server-side resources used by 集简云
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.94 ▼1.41
Dashboard /wp-admin3.08 ▼0.2623.75 ▼33.72
Posts /wp-admin/edit.php3.08 ▼0.2724.22 ▼23.61
Add New Post /wp-admin/post-new.php3.08 ▼2.8022.86 ▼73.50
Media Library /wp-admin/upload.php3.08 ▼0.1526.21 ▼6.00

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
jijianyun_secret
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by 集简云
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.34 ▼0.911.64 ▼0.0839.85 ▲1.70
Dashboard /wp-admin2,219 ▲275.81 ▲0.8298.14 ▼11.2842.18 ▼1.56
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0033.63 ▼7.0838.90 ▲3.28
Add New Post /wp-admin/post-new.php1,556 ▲2318.20 ▼5.07638.91 ▼3.9372.32 ▲20.17
Media Library /wp-admin/upload.php1,404 ▲164.25 ▲0.0896.27 ▼21.8146.69 ▼7.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • 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
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jjyconnect/view.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jjyconnect/jjy_conn.php:225

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: content analysiscomments spam

jjyconnect/jjy_conn.php 69% from 13 tests

"集简云" version 19.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("jjyconnect.php" instead of "jjy_conn.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Description: The description should be shorter than 140 characters (currently 308 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected1,061 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14179418974
JSON20087

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity14.40
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods57
▷ Static methods2136.84%
▷ Public methods4477.19%
▷ Protected methods00.00%
▷ Private methods1322.81%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon_jijianyun.png15.31KB5.94KB▼ 61.22%