46% perpayment

Code Review | PerPayment - Performance Marketing Platform / Affiliate marketing / Advertising model / Cross Marketing / Cross Selling / Open Ads Trading A/C (Similar to Online Shares Trading) - Now Make Money Online Per Conversion $499

WordPress plugin PerPayment - Performance Marketing Platform / Affiliate marketing / Advertising model / Cross Marketing / Cross Selling / Open Ads Trading A/C (Similar to Online Shares Trading) - Now Make Money Online Per Conversion $499 scored46%from 54 tests.

About plugin

  • Plugin page: perpayment
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2022
  • Latest release: Jul 17, 2023
  • Number of updates: 15
  • Update frequency: every 25.8 days
  • Top authors: perpayment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /453 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.96MB] [CPU: ▼56.37ms] Passed 4 tests

An overview of server-side resources used by PerPayment - Performance Marketing Platform / Affiliate marketing / Advertising model / Cross Marketing / Cross Selling / Open Ads Trading A/C (Similar to Online Shares Trading) - Now Make Money Online Per Conversion $499
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.443.98 ▼37.65
Dashboard /wp-admin2.05 ▼1.266.27 ▼50.00
Posts /wp-admin/edit.php2.05 ▼1.315.99 ▼47.06
Add New Post /wp-admin/post-new.php2.05 ▼3.846.29 ▼90.78
Media Library /wp-admin/upload.php2.05 ▼1.1814.73 ▼25.37
Welcome /wp-admin/admin.php?page=pp2.055.00
Settings /wp-admin/admin.php?page=Settings2.057.83
View Income Analytics /wp-admin/admin.php?page=View-Income-Analytics2.055.84
Setup Ads /wp-admin/admin.php?page=Set-Up-Ads2.056.21

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables
wp_perpayment
New WordPress options
jal_db_version
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for PerPayment - Performance Marketing Platform / Affiliate marketing / Advertising model / Cross Marketing / Cross Selling / Open Ads Trading A/C (Similar to Online Shares Trading) - Now Make Money Online Per Conversion $499
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲12114.20 ▼0.461.74 ▲0.1149.60 ▲4.12
Dashboard /wp-admin2,220 ▲465.56 ▼0.0882.14 ▼12.6677.16 ▲33.13
Posts /wp-admin/edit.php2,137 ▲342.07 ▲0.1233.42 ▼10.6136.72 ▲1.97
Add New Post /wp-admin/post-new.php1,720 ▲18422.57 ▲4.46689.45 ▲10.5854.18 ▼32.64
Media Library /wp-admin/upload.php1,437 ▲374.16 ▼0.0194.33 ▼18.0557.98 ▲10.29
Welcome /wp-admin/admin.php?page=pp1,7799.28293.77100.70
Settings /wp-admin/admin.php?page=Settings8702.0227.9437.34
View Income Analytics /wp-admin/admin.php?page=View-Income-Analytics8512.0226.3727.47
Setup Ads /wp-admin/admin.php?page=Set-Up-Ads1,1312.0524.5242.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the PerPayw3 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_perpayment
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • jal_db_version
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the PerPayw3 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the PerPayppstyle handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the PerPayppstyle handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/perpayment/right-side-ad.php
    • > /wp-content/plugins/perpayment/left-side-ad.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/perpayment/welcome.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/perpayment/PerPayment.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/perpayment/set-up-ads.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/perpayment/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/perpayment/view-income-analytics.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-content/plugins/perpayment/images/plogo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/headless-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=pp
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/hirekhan-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=pp
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/fundacle-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=pp
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/americanirs-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/499.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/American-Business-970x250.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/American-Founder-970x250.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/HireKhan-Manpower-970x250.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/American-IRS-970x250.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/Fundacle-Investor-970x250.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/Fundacle-Businessman-970x250.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=Set-Up-Ads
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugin_dir_url(__FILE__);?%3Eimages/PerPayment-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

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
10 plugin tags: advertising model, influencer marketing, performance marketing, cross marketing, cross selling...

perpayment/PerPayment.php 85% from 13 tests

This is the main PHP file of "PerPayment - Performance Marketing Platform / Affiliate marketing / Advertising model / Cross Marketing / Cross Selling / Open Ads Trading A/C (Similar to Online Shares Trading) - Now Make Money Online Per Conversion $499" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("perpayment.php" instead of "PerPayment.php")
  • Domain Path: The domain path folder does not exist ("/languages")

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 detected878 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP712236656
CSS213222

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.70MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/hirekhan-logo.png4.12KB2.70KB▼ 34.56%
images/499.png600.70KB215.64KB▼ 64.10%
images/headless-logo.png31.96KB20.55KB▼ 35.70%
images/PerPayment-logo.png31.96KB20.55KB▼ 35.70%
images/americanirs-logo.png4.29KB2.68KB▼ 37.50%