78% tipalti-payee-iframe

Code Review | Tipalti Payee Iframe

WordPress plugin Tipalti Payee Iframe scored78%from 54 tests.

About plugin

  • Plugin page: tipalti-payee-iframe
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Apr 15, 2021
  • Latest release: May 26, 2022
  • Number of updates: 13
  • Update frequency: every 31.2 days
  • Top authors: tipalti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼4.38ms] Passed 4 tests

Analyzing server-side resources used by Tipalti Payee Iframe
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4042.64 ▲1.72
Dashboard /wp-admin3.73 ▲0.4351.78 ▼3.38
Posts /wp-admin/edit.php3.78 ▲0.4248.38 ▼3.95
Add New Post /wp-admin/post-new.php6.25 ▲0.3686.39 ▼11.27
Media Library /wp-admin/upload.php3.65 ▲0.4240.04 ▲1.10
Tipalti Payee Iframe /wp-admin/options-general.php?page=tipalti_iframe3.5635.46

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
tipalti_iframe_version
widget_recent-posts
_tip_enc_key
db_upgraded

Browser metrics Passed 4 tests

Tipalti Payee Iframe: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▲0.051.76 ▲0.0342.09 ▲3.57
Dashboard /wp-admin2,196 ▲195.62 ▲0.0487.35 ▼3.8540.76 ▼0.62
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0335.61 ▼1.9434.60 ▼4.69
Add New Post /wp-admin/post-new.php1,530 ▲423.30 ▼0.54633.62 ▼92.9557.82 ▼7.31
Media Library /wp-admin/upload.php1,407 ▲74.14 ▼0.1696.59 ▼17.3347.10 ▼2.17
Tipalti Payee Iframe /wp-admin/options-general.php?page=tipalti_iframe8262.1227.8927.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • _tip_enc_key
    • can_compress_scripts
    • widget_theysaidso_widget
    • tipalti_iframe_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tipalti-payee-iframe/includes/iframe.php
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant TIPALTI_PAYEE_IFRAME_BASE_PATH - assumed 'TIPALTI_PAYEE_IFRAME_BASE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tipalti-payee-iframe/includes/encrypt.php on line 2
    • > PHP Warning
      require_once(TIPALTI_PAYEE_IFRAME_BASE_PATH/includes/defuse/Core.php): failed to open stream: No such file or directory in wp-content/plugins/tipalti-payee-iframe/includes/defuse/load.php on line 2
    • > PHP Warning
      Use of undefined constant TIPALTI_PAYEE_IFRAME_BASE_PATH - assumed 'TIPALTI_PAYEE_IFRAME_BASE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tipalti-payee-iframe/includes/defuse/load.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tipalti-payee-iframe/tipalti-payee-iframe.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/tipalti-payee-iframe/includes/defuse/Exception/IOException.php:5
    • > PHP Warning
      require_once(TIPALTI_PAYEE_IFRAME_BASE_PATH/includes/defuse/load.php): failed to open stream: No such file or directory in wp-content/plugins/tipalti-payee-iframe/includes/encrypt.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'Defuse\\Crypto\\Crypto' not found in wp-content/plugins/tipalti-payee-iframe/includes/defuse/RuntimeTests.php:14
    • > PHP Notice
      Undefined variable: iframe_url in wp-content/plugins/tipalti-payee-iframe/includes/iframe.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/tipalti-payee-iframe/includes/defuse/Exception/BadFormatException.php:5
    • > PHP Fatal error
      require_once(): Failed opening required 'TIPALTI_PAYEE_IFRAME_BASE_PATH/includes/defuse/Core.php' (include_path='.:/usr/share/php') in wp-content/plugins/tipalti-payee-iframe/includes/defuse/load.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Connecting to the Tipalti Payor Account), #2 (Linking Wordpress Users as Payees), #3 (Embedding Payee IFRAMEs)
The official readme.txt might help

tipalti-payee-iframe/tipalti-payee-iframe.php Passed 13 tests

The entry point to "Tipalti Payee Iframe" version 1.0.5 is a PHP file that has certain tags in its header comment area
139 characters long description:
This plugin allows Tipalti payers to embed payee portal IFRAME onto their Wordpress site so that payees can add and view their information.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,967 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP224199971,967

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes736.84%
Methods109
▷ Static methods5146.79%
▷ Public methods6963.30%
▷ Protected methods32.75%
▷ Private methods3733.94%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants33
▷ Global constants515.15%
▷ Class constants2884.85%
▷ Public constants28100.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
No PNG images were found in this plugin