68% wp-clickbank-vendor

Code Review | WP ClickBank Vendor

WordPress plugin WP ClickBank Vendor scored68%from 54 tests.

About plugin

  • Plugin page: wp-clickbank-vendor
  • Plugin version: 0.9.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 27, 2018
  • Latest release: Jan 27, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Arevico (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /12,757 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.02ms] Passed 4 tests

Analyzing server-side resources used by WP ClickBank Vendor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1344.69 ▲2.43
Dashboard /wp-admin3.46 ▲0.1247.98 ▼13.66
Posts /wp-admin/edit.php3.58 ▲0.2245.87 ▼3.48
Add New Post /wp-admin/post-new.php6.12 ▲0.2487.02 ▼5.37
Media Library /wp-admin/upload.php3.38 ▲0.1640.80 ▲5.03
Add /wp-admin/admin.php?page=arvcb-customer-add3.4433.51
Customers /wp-admin/admin.php?page=arvcb-customers3.4534.16
Download Pages /wp-admin/edit.php?post_type=download-pages3.5443.52
WP ClickBank /wp-admin/admin.php?page=wp-cb-vendor-top3.3929.84
Delete /wp-admin/admin.php?page=arvcb-customer-delete3.3937.41
Edit /wp-admin/admin.php?page=arvcb-customer-edit3.4132.78

Server storage [IO: ▲0.47MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 70 new files
Database: 3 new tables, 8 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP ClickBank Vendor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10213.77 ▼0.601.81 ▼0.0339.15 ▼3.29
Dashboard /wp-admin2,248 ▲605.23 ▼0.6496.71 ▼16.0440.71 ▲0.59
Posts /wp-admin/edit.php2,134 ▲422.36 ▲0.3835.96 ▼5.0331.64 ▼3.96
Add New Post /wp-admin/post-new.php1,620 ▲9823.72 ▲0.54703.92 ▲122.1559.06 ▲9.77
Media Library /wp-admin/upload.php1,427 ▲364.42 ▲0.1697.63 ▲2.0240.43 ▼0.55
Add /wp-admin/admin.php?page=arvcb-customer-add1,1002.6046.4727.81
Customers /wp-admin/admin.php?page=arvcb-customers9131.8924.2429.31
Download Pages /wp-admin/edit.php?post_type=download-pages1,8462.3533.5129.74
WP ClickBank /wp-admin/admin.php?page=wp-cb-vendor-top1,1412.4337.8827.43
Delete /wp-admin/admin.php?page=arvcb-customer-delete7061.6211.2823.02
Edit /wp-admin/admin.php?page=arvcb-customer-edit7171.728.6017.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 3 tables
    • wp_cb_customers
    • wp_cb_access
    • wp_cb_transactions
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • arvcbOptions
    • db_upgraded
    • arevico_cb_db
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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
Even though no errors were found, this is by no means 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
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-clickbank-vendor/app/View/Tabs.php
    • > /wp-content/plugins/wp-clickbank-vendor/app/View/GA.php
    • > /wp-content/plugins/wp-clickbank-vendor/app/View/Metabox/productid-template.php
    • > /wp-content/plugins/wp-clickbank-vendor/app/View/Admin/TinyMCE.php
  • 54× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Arevico\\Core\\Controller' not found in wp-content/plugins/wp-clickbank-vendor/app/Controller/Admin/MCE.php:12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-clickbank-vendor/core/Helper/Table.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Arevico\\Core\\Model' not found in wp-content/plugins/wp-clickbank-vendor/core/DBModel.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Arevico\\Core\\DBModel' not found in wp-content/plugins/wp-clickbank-vendor/app/Model/ProductAccess.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Arevico\\Core\\DBModel' not found in wp-content/plugins/wp-clickbank-vendor/app/Model/Customer.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Arevico\\Core\\Controller' not found in wp-content/plugins/wp-clickbank-vendor/app/Controller/Shortcode.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Arevico\\Core\\Helper\\ClassHelper' not found in wp-content/plugins/wp-clickbank-vendor/core/Helper/Migrate.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Arevico\\Core\\stripslashes_deep() in wp-content/plugins/wp-clickbank-vendor/core/Genesis.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'Arevico\\Core\\Controller' not found in wp-content/plugins/wp-clickbank-vendor/app/Controller/Admin/Top.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Arevico\\Core\\Helper\\Migrate' not found in wp-content/plugins/wp-clickbank-vendor/app/Activate.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 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
4 plugin tags: affiliate, clickbank, vendor, selling

wp-clickbank-vendor/index.php 85% from 13 tests

The main PHP script in "WP ClickBank Vendor" version 0.9.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-clickbank-vendor.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected10,810 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes920.00%
▷ Concrete classes3680.00%
▷ Final classes00.00%
▷ Static methods3717.05%
▷ Public methods20795.39%
▷ Protected methods00.00%
▷ Private methods104.61%
▷ Named functions00.00%
▷ Anonymous functions2100.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin