72% appture-pay

Code Review | Appture Pay

WordPress plugin Appture Pay scored72%from 54 tests.

About plugin

  • Plugin page: appture-pay
  • Plugin version: 1.6.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Sep 8, 2023
  • Number of updates: 8
  • Update frequency: every 93.1 days
  • Top authors: appture (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /418 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.09MB] [CPU: ▼10.80ms] Passed 4 tests

A check of server-side resources used by Appture Pay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.05 ▼13.29
Dashboard /wp-admin3.40 ▲0.0948.67 ▼9.03
Posts /wp-admin/edit.php3.51 ▲0.1552.23 ▼8.99
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.24 ▼11.89
Media Library /wp-admin/upload.php3.32 ▲0.0938.39 ▲3.11
API Client /wp-admin/admin.php?page=appturelab-appture-pay3.2631.72

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Appture Pay
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10114.47 ▼0.141.76 ▼0.0940.92 ▲1.71
Dashboard /wp-admin2,231 ▲435.86 ▲0.94101.05 ▼15.7464.29 ▲22.67
Posts /wp-admin/edit.php2,114 ▲252.02 ▼0.0440.36 ▼2.3735.19 ▼0.02
Add New Post /wp-admin/post-new.php1,545 ▲1123.43 ▲0.36681.69 ▲59.3758.67 ▲7.06
Media Library /wp-admin/upload.php1,401 ▲134.16 ▼0.04100.86 ▼7.0673.56 ▲29.66
API Client /wp-admin/admin.php?page=appturelab-appture-pay8822.0322.9527.66

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=appturelab-appture-pay
    • > Notice in wp-content/plugins/appture-pay/appturelab-appture-pay.php+93
    Trying to access array offset on value of type bool

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/appture-pay/MeprAppturePayGateway.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/appture-pay/class-wc-shipping-appture-pay.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/appture-pay/class-wc-gateway-appture-pay.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ApptureLab\\ApptureWebRequest' not found in wp-content/plugins/appture-pay/includes/AppturePayAPI.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
The official readme.txt might help

appture-pay/appturelab-appture-pay.php 92% from 13 tests

The primary PHP file in "Appture Pay" version 1.6.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("appture-pay.php" instead of "appturelab-appture-pay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,383 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP61,0326192,383

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity63.20
▷ Minimum class complexity15.00
▷ Maximum class complexity122.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods125
▷ Static methods54.00%
▷ Public methods11491.20%
▷ Protected methods118.80%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo_wordpress_20.png0.68KB0.55KB▼ 18.06%