79% e-xact-hosted-payment

Code Review | E-xact | Hosted Payment |

WordPress plugin E-xact | Hosted Payment | scored79%from 54 tests.

About plugin

  • Plugin page: e-xact-hosted-pay...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Dec 7, 2013
  • Latest release: Jul 22, 2021
  • Number of updates: 13
  • Update frequency: every 214.2 days
  • Top authors: DonnellC (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,068 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.93ms] Passed 4 tests

This is a short check of server-side resources used by E-xact | Hosted Payment |
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.67 ▼4.83
Dashboard /wp-admin3.47 ▲0.1747.18 ▼7.01
Posts /wp-admin/edit.php3.52 ▲0.1649.55 ▼2.14
Add New Post /wp-admin/post-new.php6.05 ▲0.1688.66 ▼5.72
Media Library /wp-admin/upload.php3.39 ▲0.1637.27 ▲0.71
E-xact Current HTML /wp-admin/admin.php?page=HTML3.3633.83
E-xact Gateway /wp-admin/admin.php?page=E-xact-Gateway3.3333.66

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by E-xact | Hosted Payment |
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6913.32 ▼1.082.00 ▲0.0040.40 ▼5.88
Dashboard /wp-admin2,232 ▲445.86 ▲0.9699.54 ▼19.6881.49 ▲35.93
Posts /wp-admin/edit.php2,115 ▲261.99 ▼0.0539.33 ▼1.2636.84 ▲3.77
Add New Post /wp-admin/post-new.php1,690 ▲15722.38 ▼0.80697.85 ▼40.0353.20 ▼13.35
Media Library /wp-admin/upload.php1,417 ▲294.20 ▼0.0294.42 ▼14.1377.01 ▲28.57
E-xact Current HTML /wp-admin/admin.php?page=HTML7912.0328.2122.32
E-xact Gateway /wp-admin/admin.php?page=E-xact-Gateway2,4041.7730.9545.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+202
    Undefined variable: x_login
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+208
    Undefined variable: transaction_key
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+275
    Undefined variable: user_1
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+284
    Undefined variable: user_2
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+293
    Undefined variable: user_3
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+307
    Undefined variable: x_tax
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+317
    Undefined variable: x_logo_url
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+331
    Undefined variable: once
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+340
    Undefined variable: daily
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+349
    Undefined variable: weekly
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+358
    Undefined variable: bi_weekly
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+367
    Undefined variable: semi_monthly
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+376
    Undefined variable: monthly
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+385
    Undefined variable: bi_monthly
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+394
    Undefined variable: quarterly
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+403
    Undefined variable: four_months
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+412
    Undefined variable: semi_annually
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+421
    Undefined variable: annually
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+429
    Undefined variable: recurring_auto_or_customer_select
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+442
    Undefined variable: x_color_background
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+451
    Undefined variable: x_merchant_email
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+460
    Undefined variable: wait_or_auto
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+472
    Undefined variable: live_demo
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+481
    Undefined variable: x_type
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+678
    Undefined variable: hmac_calculation
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+711
    Undefined variable: time_stamp
    • > GET request to /wp-admin/admin.php?page=E-xact-Gateway
    • > Notice in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php+738
    Undefined variable: custom_files

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: download_current_backup in wp-content/plugins/e-xact-hosted-payment/downloadBackup.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-xact-hosted-payment/e-xact-hosted-payment.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: ehp, exact, e-xact hosted, e-xact hosted payment, e-xact...

e-xact-hosted-payment/e-xact-hosted-payment.php Passed 13 tests

"E-xact | Hosted Payment |" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
114 characters long description:
This is for E-xact Hosted Payment. E-xact Made easier for WordPress users to set-up a pay button on their website.

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
Everything looks great! No dangerous files found in this plugin1,413 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4201571,100
CSS2712178
PHP4741,525135

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/payeezy_favicon.png3.31KB1.54KB▼ 53.59%
js/jscolor/hv.png2.80KB7.32KB0.00%
images/dashicon.png3.89KB1.19KB▼ 69.45%
js/jscolor/hs.png2.62KB7.54KB0.00%