84% idpay-for-edd

Code Review | IDPay for Easy Digital Downloads (EDD)

WordPress plugin IDPay for Easy Digital Downloads (EDD) scored 84% from 54 tests.

About plugin

  • Plugin page: idpay-for-edd
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 11, 2018
  • Latest release: Nov 13, 2022
  • Number of updates: 11
  • Update frequency: every 131.5 days
  • Top authors: idpayir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,889 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.08MB] [CPU: ▼1.00ms] Passed 4 tests

A check of server-side resources used by IDPay for Easy Digital Downloads (EDD)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.97 ▼0.17
Dashboard /wp-admin3.39 ▲0.0844.79 ▼0.73
Posts /wp-admin/edit.php3.44 ▲0.0847.71 ▼0.40
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.55 ▼0.96
Media Library /wp-admin/upload.php3.31 ▲0.0834.79 ▼1.90

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

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

Browser metrics Passed 4 tests

IDPay for Easy Digital Downloads (EDD): an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.60 ▼0.701.66 ▼0.0842.13 ▲2.86
Dashboard /wp-admin2,209 ▲545.85 ▲0.22102.21 ▼3.2438.57 ▼3.11
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0438.89 ▲2.2435.50 ▲0.23
Add New Post /wp-admin/post-new.php1,542 ▲817.99 ▼5.04599.97 ▼74.9055.66 ▼4.71
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.0397.79 ▼5.2144.89 ▲0.59

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/idpay-for-edd/includes/edd-idpay-gateway.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: download, easy digital downloads, idpay, digital downloads, edd

idpay-for-edd/idpay-for-edd.php 85% from 13 tests

This is the main PHP file of "IDPay for Easy Digital Downloads (EDD)" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

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
Everything looks great! No dangerous files found in this plugin388 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36320388

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity6.31
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin