10% tractis-identity-verifications

Code Review | Tractis Identity Verifications plugin for Wordpress

WordPress plugin Tractis Identity Verifications plugin for Wordpress scored10%from 54 tests.

About plugin

  • Plugin page: tractis-identity-...
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 3, 2009
  • Latest release: May 26, 2015
  • Number of updates: 37
  • Update frequency: every 78.2 days
  • Top authors: Tractis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,270 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/tractis-identity-verifications/tractis_auth.php+54
    Methods with the same name as their class will not be constructors in a future version of PHP; tractis_auth has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼54.64ms] Passed 4 tests

Server-side resources used by Tractis Identity Verifications plugin for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.337.36 ▼34.91
Dashboard /wp-admin2.15 ▼1.156.16 ▼44.15
Posts /wp-admin/edit.php2.15 ▼1.216.49 ▼48.73
Add New Post /wp-admin/post-new.php2.15 ▼3.747.06 ▼90.75
Media Library /wp-admin/upload.php2.15 ▼1.085.53 ▼32.19

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

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

Browser metrics Passed 4 tests

Tractis Identity Verifications plugin for Wordpress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.72 ▲0.422.70 ▲1.0251.35 ▲7.87
Dashboard /wp-admin2,196 ▲195.63 ▲0.0486.52 ▼13.8942.18 ▲1.61
Posts /wp-admin/edit.php2,104 ▲41.98 ▲0.0333.63 ▼6.5835.78 ▼1.12
Add New Post /wp-admin/post-new.php1,528 ▼821.98 ▲3.82677.39 ▲7.1559.93 ▼0.52
Media Library /wp-admin/upload.php1,401 ▲44.23 ▲0.07100.54 ▼2.3844.53 ▲0.02
Tractis Identity Verifications /wp-admin/tractis_auth.php260.420.0815.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/tractis-identity-verifications/tractis_auth.php+54
    Methods with the same name as their class will not be constructors in a future version of PHP; tractis_auth has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tractis-identity-verifications/views/edit_wp_profile.php
    • > /wp-content/plugins/tractis-identity-verifications/views/widget.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tractis-identity-verifications/views/widget.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tractis-identity-verifications/tractis_profile.php:4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tractis-identity-verifications/tractis_auth.php on line 30
    • > PHP Warning
      Use of undefined constant TRACTIS_AUTH_PLUGIN_IMAGES - assumed 'TRACTIS_AUTH_PLUGIN_IMAGES' (this will throw an Error in a future version of PHP) in wp-content/plugins/tractis-identity-verifications/views/widget.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tractis-identity-verifications/views/ui_settings.php:12
    • > PHP Notice
      Undefined variable: message in wp-content/plugins/tractis-identity-verifications/views/ui_settings.php on line 5
    • > PHP Notice
      Undefined variable: is_tractis_user in wp-content/plugins/tractis-identity-verifications/views/widget.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tractis-identity-verifications/tractis_auth.php:33
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tractis-identity-verifications/views/widget.php on line 12

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/tractis_auth.php
    • > Network (severe)
    wp-admin/tractis_auth.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

tractis-identity-verifications/tractis_auth.php 85% from 13 tests

The primary PHP file in "Tractis Identity Verifications plugin for Wordpress" version 1.4.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 196 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("tractis-identity-verifications.php" instead of "tractis_auth.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected883 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11157118669
PO File34750132
HTML29053
CSS15129

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.86
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
36 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/PNG24/tractis_icon_16x16.png0.58KB0.53KB▼ 8.91%
images/trac_but_sm_shrt_b_es.png1.87KB1.40KB▼ 25.34%
images/trac_button_b_es.png2.70KB2.02KB▼ 25.41%
images/PNG24/tractis_icon_48x48.png1.48KB1.42KB▼ 3.83%
images/tractis_icon_32x32.png1.31KB1.08KB▼ 17.94%