72% identitypass-verification

Code Review | Identitypass Verification

WordPress plugin Identitypass Verification scored72%from 54 tests.

About plugin

  • Plugin page: identitypass-veri...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.0
  • WordPress version: 6.3.1
  • First release: Jul 11, 2022
  • Latest release: Jul 24, 2022
  • Number of updates: 5
  • Update frequency: every 3.0 days
  • Top authors: identitypass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.64ms] Passed 4 tests

Analyzing server-side resources used by Identitypass Verification
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.72 ▲1.14
Dashboard /wp-admin3.38 ▲0.0846.27 ▼5.89
Posts /wp-admin/edit.php3.50 ▲0.1453.88 ▲12.11
Add New Post /wp-admin/post-new.php5.96 ▲0.0878.67 ▼27.05
Media Library /wp-admin/upload.php3.31 ▲0.0838.59 ▲5.23
Identitypass /wp-admin/admin.php?page=identitypass_checkout3.2731.08
Configuration /wp-admin/edit.php?post_type=identity_kyc_config3.1225.73

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Identitypass Verification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,995 ▲22414.00 ▼0.589.29 ▲7.5738.74 ▼1.43
Dashboard /wp-admin2,247 ▲594.86 ▼1.03104.65 ▼13.6869.95 ▲23.27
Posts /wp-admin/edit.php2,130 ▲412.07 ▲0.0138.48 ▲4.1634.78 ▼1.76
Add New Post /wp-admin/post-new.php1,562 ▲4823.20 ▲5.55781.35 ▲90.9136.12 ▼17.53
Media Library /wp-admin/upload.php1,429 ▲384.26 ▲0.0399.48 ▼0.4569.66 ▲27.87
Identitypass /wp-admin/admin.php?page=identitypass_checkout8082.0926.2827.50
Configuration /wp-admin/edit.php?post_type=identity_kyc_config280.440.083.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/identitypass-verification/identitypass_checkout.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/identitypass-verification/core/admin/identitypass-plugin-admin.php on line 236
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/identitypass-verification/core/admin/identitypass-plugin-admin.php on line 236
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-list-table.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/identitypass-verification/core/admin/identitypass-plugin-admin.php on line 236

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=identity_kyc_config
    • > Network (severe)
    wp-admin/edit.php?post_type=identity_kyc_config - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: kyb, identitypass, kyc, verification

identitypass-verification/identitypass_checkout.php 92% from 13 tests

The entry point to "Identitypass Verification" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("identitypass-verification.php" instead of "identitypass_checkout.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 detected642 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6107122333
CSS14068233
JavaScript1143653
Markdown123023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.67
▷ Minimum class complexity3.00
▷ Maximum class complexity10.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2291.67%
▷ Protected methods00.00%
▷ Private methods28.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
resources/sc_images/idpass-logo.png1.41KB1.06KB▼ 24.74%