83% edd-fondy-payment

Code Review | Fondy — Easy Digital Downloads Payment Gateway

WordPress plugin Fondy — Easy Digital Downloads Payment Gateway scored83%from 54 tests.

About plugin

  • Plugin page: edd-fondy-payment
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-6.0.1
  • WordPress version: 6.3.1
  • First release: May 5, 2018
  • Latest release: Jul 20, 2022
  • Number of updates: 23
  • Update frequency: every 66.8 days
  • Top authors: fondyeu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,678 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.67ms] Passed 4 tests

Analyzing server-side resources used by Fondy — Easy Digital Downloads Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.47 ▲7.02
Dashboard /wp-admin3.31 ▲0.0147.21 ▼1.21
Posts /wp-admin/edit.php3.36 ▲0.0145.31 ▼2.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.49 ▼17.66
Media Library /wp-admin/upload.php3.23 ▲0.0036.06 ▲2.42

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Fondy — Easy Digital Downloads Payment Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.26 ▼0.171.73 ▲0.1041.79 ▲0.42
Dashboard /wp-admin2,201 ▲245.61 ▼0.0482.35 ▼5.6740.04 ▼2.83
Posts /wp-admin/edit.php2,106 ▲91.96 ▼0.0239.48 ▲4.3639.24 ▲5.35
Add New Post /wp-admin/post-new.php1,537 ▲1123.15 ▲2.22627.51 ▲1.3553.51 ▲2.06
Media Library /wp-admin/upload.php1,406 ▲64.15 ▼0.0497.22 ▼2.2243.12 ▼3.59

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-fondy-payment/edd-fondy-payment.php:465

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #10, #3, #4, #5, #6, #7, #8, #9 in edd-fondy-payment/assets to your readme.txt
The official readme.txt might help

edd-fondy-payment/edd-fondy-payment.php 85% from 13 tests

"Fondy — Easy Digital Downloads Payment Gateway" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Requires at least: Required version does not match the one declared in readme.txt ("3.5" instead of "2.0.0")

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
Success! There were no dangerous files found in this plugin365 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP174107301
PO File1181864

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions5
▷ Named functions5100.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.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/fondy_logo.png46.93KB18.29KB▼ 61.04%