10% ib-chase-payment

Code Review | WP Chase Payment

WordPress plugin WP Chase Payment scored10%from 54 tests.

About plugin

  • Plugin page: ib-chase-payment
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-4.9.1
  • WordPress version: 6.3.1
  • First release: May 22, 2017
  • Latest release: Jun 7, 2019
  • Number of updates: 7
  • Update frequency: every 107.0 days
  • Top authors: rohit0122 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,464 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.62ms] Passed 4 tests

Analyzing server-side resources used by WP Chase Payment
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1046.90 ▲6.40
Dashboard /wp-admin3.40 ▲0.0946.65 ▼0.90
Posts /wp-admin/edit.php3.45 ▲0.0947.63 ▼0.81
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.93 ▼4.06
Media Library /wp-admin/upload.php3.32 ▲0.0934.56 ▲3.30
Chase API Settings /wp-admin/options-general.php?page=chase-api-settings3.3030.79

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 15 new options
New WordPress options
ibhpp_get_sample_payment_form_name
ibhpp_chase_payment_page_id
ibhpp_chase_payment_page_name
ibhpp_chase_payment_receive_id
theysaidso_admin_options
can_compress_scripts
ibhpp_get_sample_payment_form_id
ibhpp_chase_payment_receive_name
db_upgraded
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Chase Payment
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.21 ▼1.171.70 ▼0.3738.77 ▼5.85
Dashboard /wp-admin2,210 ▲195.83 ▲0.9395.06 ▼9.6536.95 ▼6.88
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0439.13 ▲2.8034.56 ▼1.65
Add New Post /wp-admin/post-new.php1,536 ▲323.23 ▼0.12650.24 ▼40.1658.54 ▼1.95
Media Library /wp-admin/upload.php1,392 ▲44.22 ▼0.01103.45 ▲5.7644.36 ▼4.47
Chase API Settings /wp-admin/options-general.php?page=chase-api-settings1,0422.0423.8525.25

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=chase-api-settings
    • > Notice in wp-content/plugins/ib-chase-payment/chase_api_settings.php+90
    Trying to access array offset on value of type null

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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ib-chase-payment/templates/chase-payment-form.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/ib-chase-payment/templates/sample-payment-test-page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ib-chase-payment/class.ibhpp-process-chase-payment.php:307
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ib-chase-payment/chase_api_settings.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Here's a screenshot of it in action) image required
The official readme.txt is a good inspiration

ib-chase-payment/wp-chase-payment.php 92% from 13 tests

"WP Chase Payment" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ib-chase-payment.php" instead of "wp-chase-payment.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
There were no executable files found in this plugin503 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP74899503

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG images were found in this plugin