68% transaction-integration-for-affiliatewp-and-optimizepress

Code Review | Transaction Integration for AffiliateWP and OptimizePress

WordPress plugin Transaction Integration for AffiliateWP and OptimizePress scored68%from 54 tests.

About plugin

  • Plugin page: transaction-integ...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Aug 16, 2020
  • Number of updates: 21
  • Update frequency: every 83.9 days
  • Top authors: bkessell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /9,359 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.20ms] Passed 4 tests

An overview of server-side resources used by Transaction Integration for AffiliateWP and OptimizePress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.18 ▼3.20
Dashboard /wp-admin3.31 ▲0.0148.30 ▼1.44
Posts /wp-admin/edit.php3.37 ▲0.0149.44 ▲6.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.41 ▼4.41
Media Library /wp-admin/upload.php3.24 ▲0.0137.97 ▲4.26
T.I. A+O /wp-admin/options-general.php?page=tiaop-plugin3.2634.46

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: 3 new tables, 6 new options
New tables
wp_opafti_history
wp_opafti_saved_purchases
wp_opafti_stats
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Transaction Integration for AffiliateWP and OptimizePress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.26 ▼1.121.63 ▼0.3144.54 ▼2.92
Dashboard /wp-admin2,214 ▲264.86 ▼0.05113.23 ▼3.1239.76 ▼5.99
Posts /wp-admin/edit.php2,099 ▲102.03 ▼0.0139.78 ▲4.2936.36 ▼0.29
Add New Post /wp-admin/post-new.php1,544 ▲1423.31 ▲4.98677.64 ▲28.3857.89 ▼1.31
Media Library /wp-admin/upload.php1,399 ▲114.25 ▲0.06104.13 ▼0.2145.25 ▲1.70
T.I. A+O /wp-admin/options-general.php?page=tiaop-plugin1,0762.1822.8228.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_opafti_history
    • wp_opafti_stats
    • wp_opafti_saved_purchases
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=tiaop-plugin
    • > Notice in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/tiaop_testing.php+41
    Undefined variable: test_results

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 take a closer look at the following
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/tiaop_check.php on line 3
    • > PHP Warning
      Use of undefined constant TIAOP_PLUGIN_DIR - assumed 'TIAOP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/tiaop_testing.php on line 2
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/tiaop_check.php on line 3
    • > PHP Warning
      require_once(TIAOP_PLUGIN_DIRincludes/tiaop_db.php): failed to open stream: No such file or directory in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/tiaop_testing.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/configuration/tiaop_show_sh.php:13
    • > PHP Fatal error
      require_once(): Failed opening required 'TIAOP_PLUGIN_DIRincludes/tiaop_db.php' (include_path='.:/usr/share/php') in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/tiaop_testing.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/configuration/tiaop_show_sp.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/configuration/tiaop_build.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/tiaop_check.php on line 3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/transaction-integration-for-affiliatewp-and-optimizepress/includes/configuration/tiaop_show_sh.php on line 5

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: optimizepress, affiliatewp, opafti, paypal, integration

transaction-integration-for-affiliatewp-and-optimizepress/affiliatewp-optimizepress-transaction-integration.php 92% from 13 tests

Analyzing the main PHP file in "Transaction Integration for AffiliateWP and OptimizePress" version 2.1
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("transaction-integration-for-affiliatewp-and-optimizepress.php" instead of "affiliatewp-optimizepress-transaction-integration.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
Good job! No executable or dangerous file extensions detected580 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP1012580580

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin