67% shuftipro-kyc-identity-verification

Code Review | Shuftipro KYC

WordPress plugin Shuftipro KYC scored67%from 54 tests.

About plugin

  • Plugin page: shuftipro-kyc-ide...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2022
  • Latest release: Aug 2, 2023
  • Number of updates: 47
  • Update frequency: every 10.1 days
  • Top authors: shuftipro (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /1,647 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.96ms] Passed 4 tests

A check of server-side resources used by Shuftipro KYC
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1544.25 ▲3.04
Dashboard /wp-admin3.33 ▲0.0248.06 ▼7.00
Posts /wp-admin/edit.php3.38 ▲0.0253.54 ▼1.70
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.53 ▼3.56
Media Library /wp-admin/upload.php3.25 ▲0.0236.76 ▲0.42

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 41 new files
Database: 2 new tables, 6 new options
New tables
wp_kyc_verification
payloadsetting
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shuftipro KYC
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.48 ▼0.878.39 ▲6.6441.83 ▼8.02
Dashboard /wp-admin2,221 ▲475.72 ▲0.1583.96 ▼20.3197.68 ▲54.71
Posts /wp-admin/edit.php2,147 ▲442.05 ▲0.0636.93 ▼0.0340.14 ▲2.66
Add New Post /wp-admin/post-new.php1,562 ▲3423.10 ▲0.04681.56 ▲6.5449.68 ▼4.59
Media Library /wp-admin/upload.php1,438 ▲384.28 ▲0.10101.47 ▼5.0076.64 ▲33.19

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
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • payloadsetting
    • wp_kyc_verification
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shuftipro-kyc-identity-verification/public/partials/shuftipro-kyc-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/shuftipro-kyc-identity-verification/admin/partials/shuftipro-kyc-admin-display.php:60

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
The official readme.txt is a good inspiration

shuftipro-kyc-identity-verification/shuftipro-kyc.php 77% from 13 tests

The main PHP file in "Shuftipro KYC" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shuftipro-kyc-identity-verification.php" instead of "shuftipro-kyc.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,449 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP132336781,444
CSS216166855
SVG8106143
JavaScript36577

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.53MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/img-model.png248.38KB71.09KB▼ 71.38%
admin/images/kyc-banner.png298.22KB321.78KB0.00%