90% wpfront-paddle-gateway

Code Review | Easy Digital Downloads - Paddle Gateway

WordPress plugin Easy Digital Downloads - Paddle Gateway scored 90% from 54 tests.

About plugin

  • Plugin page: wpfront-paddle-ga...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2021
  • Latest release: Aug 2, 2023
  • Number of updates: 10
  • Update frequency: every 72.2 days
  • Top authors: syammohanm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,290 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.90MB] [CPU: ▲4.18ms] Passed 4 tests

An overview of server-side resources used by Easy Digital Downloads - Paddle Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.36 ▲0.8946.61 ▲1.72
Dashboard /wp-admin4.21 ▲0.9156.11 ▲10.04
Posts /wp-admin/edit.php4.33 ▲0.9752.19 ▲3.03
Add New Post /wp-admin/post-new.php6.79 ▲0.9099.61 ▲1.92
Media Library /wp-admin/upload.php4.14 ▲0.9043.38 ▲11.36
Dashboard /wp-admin/admin.php?page=wpfront-paddle-gateway-dashboard4.1438.41
Settings /wp-admin/admin.php?page=wpfront-paddle-gateway-settings4.1135.94
Payments /wp-admin/admin.php?page=wpfront-paddle-gateway-payments4.1138.67
Paylinks /wp-admin/admin.php?page=wpfront-paddle-gateway-paylinks4.1136.02

Server storage [IO: ▲0.42MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: 3 new tables, 7 new options
New tables
wp_wpfront_paddle_payments
wp_wpfront_paddle_paylink
wp_wpfront_paddle_settings
New WordPress options
db_upgraded
can_compress_scripts
wp_wpfront_paddle_settings-db-version
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Easy Digital Downloads - Paddle Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.26 ▼1.151.74 ▼0.7743.83 ▲0.81
Dashboard /wp-admin2,241 ▲505.80 ▲0.9397.78 ▼0.5539.69 ▼5.13
Posts /wp-admin/edit.php2,124 ▲322.01 ▼0.0139.45 ▼2.2134.62 ▼2.83
Add New Post /wp-admin/post-new.php1,575 ▲6118.26 ▲0.80602.22 ▼1.4162.37 ▲5.43
Media Library /wp-admin/upload.php1,426 ▲444.20 ▲0.0296.30 ▲0.7141.58 ▲0.72
Dashboard /wp-admin/admin.php?page=wpfront-paddle-gateway-dashboard9724.1190.5532.42
Settings /wp-admin/admin.php?page=wpfront-paddle-gateway-settings1,0162.0622.3127.43
Payments /wp-admin/admin.php?page=wpfront-paddle-gateway-payments1,1592.2024.8426.63
Paylinks /wp-admin/admin.php?page=wpfront-paddle-gateway-paylinks1,0262.0727.3226.41

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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 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
3 plugin tags: paddle, paddle payment gateway, easy digital downloads paddle gateway

wpfront-paddle-gateway/wpfront-paddle-gateway.php Passed 13 tests

The main PHP file in "Easy Digital Downloads - Paddle Gateway" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
90 characters long description:
Integrate your WordPress site or Easy Digital Downloads store with Paddle payment gateway.

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
There were no executable files found in this plugin4,555 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP301,1198414,110
PO File1128197339
CSS216063
JavaScript3101143

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity13.78
▷ Minimum class complexity2.00
▷ Maximum class complexity39.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes27
▷ Abstract classes13.70%
▷ Concrete classes2696.30%
▷ Final classes00.00%
Methods254
▷ Static methods155.91%
▷ Public methods18372.05%
▷ Protected methods6324.80%
▷ Private methods83.15%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.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
There are no PNG files in this plugin