78% paymentiq-checkout

Code Review | PaymentIQ Checkout

WordPress plugin PaymentIQ Checkout scored78%from 54 tests.

About plugin

  • Plugin page: paymentiq-checkout
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2020
  • Latest release: Mar 30, 2022
  • Number of updates: 24
  • Update frequency: every 21.8 days
  • Top authors: sundarenius (62.5%)ssbambora (41.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /642 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼12.07ms] Passed 4 tests

This is a short check of server-side resources used by PaymentIQ Checkout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0835.32 ▼5.45
Dashboard /wp-admin3.39 ▲0.0445.14 ▼16.05
Posts /wp-admin/edit.php3.50 ▲0.1549.50 ▼3.32
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.34 ▼23.46
Media Library /wp-admin/upload.php3.31 ▲0.0835.21 ▲0.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by PaymentIQ Checkout
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.151.61 ▼0.5440.39 ▼10.79
Dashboard /wp-admin2,209 ▲244.83 ▼0.03109.13 ▼4.7743.83 ▼1.89
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0240.29 ▲0.0934.40 ▼1.06
Add New Post /wp-admin/post-new.php1,542 ▲1823.34 ▲0.13644.04 ▼23.6753.50 ▼5.13
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0395.00 ▼6.2643.07 ▼3.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/paymentiq-checkout/paymentiq-checkout.php
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      include(PIQ_WC_PLUGIN_PATH/inc/Base/piq-co-settings-links.php): failed to open stream: No such file or directory in wp-content/plugins/paymentiq-checkout/inc/piq-co-init.php on line 12
    • > PHP Warning
      include(): Failed opening 'PIQ_WC_PLUGIN_PATH/inc/Base/piq-co-enqueue.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/paymentiq-checkout/inc/piq-co-init.php on line 13
    • > PHP Warning
      Use of undefined constant PIQ_WC_PLUGIN_PATH - assumed 'PIQ_WC_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/paymentiq-checkout/inc/Base/piq-co-settings-links.php on line 13
    • > PHP Warning
      include(): Failed opening 'PIQ_WC_PLUGIN_PATH/inc/Base/piq-co-base-controller.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/paymentiq-checkout/inc/Base/piq-co-settings-links.php on line 13
    • > PHP Warning
      include_once(PIQ_WC_PLUGIN_PATH/inc/piq-co-admin-utils.php): failed to open stream: No such file or directory in wp-content/plugins/paymentiq-checkout/inc/Api/piq-co-admin-api.php on line 14
    • > PHP Warning
      include(): Failed opening 'PIQ_WC_PLUGIN_PATH/inc/Base/piq-co-settings-links.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/paymentiq-checkout/inc/piq-co-init.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'Piq_Co_BaseController' not found in wp-content/plugins/paymentiq-checkout/inc/Base/piq-co-settings-links.php:15
    • > PHP Warning
      include(PIQ_WC_PLUGIN_PATH/inc/Base/piq-co-base-controller.php): failed to open stream: No such file or directory in wp-content/plugins/paymentiq-checkout/inc/Base/piq-co-settings-links.php on line 13
    • > PHP Warning
      Use of undefined constant PIQ_WC_PLUGIN_PATH - assumed 'PIQ_WC_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/paymentiq-checkout/inc/piq-co-init.php on line 13
    • > PHP Warning
      include_once(): Failed opening 'PIQ_WC_PLUGIN_PATH/inc/piq-co-admin-utils.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/paymentiq-checkout/inc/Api/piq-co-admin-api.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

paymentiq-checkout/paymentiq-checkout.php Passed 13 tests

The main PHP file in "PaymentIQ Checkout" ver. 1.0.11 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
PaymentIQ Checkout for Woocommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin7,147 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JSON2005,527
PHP173374241,410
SVG101103
Bourne Shell116656
Markdown117028
JavaScript341523

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.55
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods73
▷ Static methods3750.68%
▷ Public methods7095.89%
▷ Protected methods00.00%
▷ Private methods34.11%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants112.50%
▷ Class constants787.50%
▷ Public constants7100.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 files were detected