84% kudaniconnect

Code Review | KudaniConnect

WordPress plugin KudaniConnect scored84%from 54 tests.

About plugin

  • Plugin page: kudaniconnect
  • Plugin version: 2.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Jun 27, 2016
  • Latest release: Jun 2, 2022
  • Number of updates: 30
  • Update frequency: every 72.3 days
  • Top authors: page12000 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,102 total downloads

Benchmarks

Plugin footprint 83% 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.47MB] [CPU: ▼17.47ms] Passed 4 tests

Analyzing server-side resources used by KudaniConnect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2036.62 ▼5.36
Dashboard /wp-admin3.57 ▲0.2649.14 ▼3.61
Posts /wp-admin/edit.php3.60 ▲0.2549.50 ▼1.86
Add New Post /wp-admin/post-new.php3.36 ▼2.5237.12 ▼59.04
Media Library /wp-admin/upload.php3.41 ▲0.1836.90 ▲2.32

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
kudani_jwt_secret_key
db_upgraded
can_compress_scripts
kc_post_preview

Browser metrics Passed 4 tests

An overview of browser requirements for KudaniConnect
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.61 ▼1.152.09 ▲0.2937.05 ▼9.79
Dashboard /wp-admin2,216 ▲314.86 ▼0.9697.17 ▼2.5537.71 ▼7.90
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0440.16 ▼0.8635.47 ▲0.33
Add New Post /wp-admin/post-new.php1,536 ▲2223.41 ▲5.69607.56 ▼43.6957.59 ▲6.30
Media Library /wp-admin/upload.php1,382 ▼34.18 ▼0.0595.87 ▼3.1041.45 ▼3.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • kudani_jwt_secret_key
    • kc_post_preview
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/kudaniconnect/kudani-connect.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
9 plugin tags: content marketing, social media, facebook, campaign manager, promotion...

kudaniconnect/kudani-connect.php 92% from 13 tests

The principal PHP file in "KudaniConnect" v. 2.1.7 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kudaniconnect.php" instead of "kudani-connect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,156 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP182567061,156

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.67
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods87
▷ Static methods1314.94%
▷ Public methods7687.36%
▷ Protected methods00.00%
▷ Private methods1112.64%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
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