94% edd-recent-payments-history

Code Review | EDD Recent Payments History

WordPress plugin EDD Recent Payments History scored 94% from 54 tests.

About plugin

  • Plugin page: edd-recent-paymen...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 5.8.1
  • First release: Nov 13, 2018
  • Latest release: Nov 13, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: sushyant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 338 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼140.65ms] Passed 4 tests

This is a short check of server-side resources used by EDD Recent Payments History
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0139.26 ▲4.29
Dashboard /wp-admin3.06 ▲0.0152.26 ▲1.67
Posts /wp-admin/edit.php3.12 ▲0.0146.52 ▲0.07
Add New Post /wp-admin/post-new.php5.42 ▼0.0196.68 ▼561.38
Media Library /wp-admin/upload.php3.01 ▲0.0136.00 ▼2.95

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by EDD Recent Payments History
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.89 ▲0.379.14 ▼1.2250.45 ▲0.62
Dashboard /wp-admin2,964 ▲305.91 ▼0.03165.04 ▲3.32114.20 ▼1.71
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0079.29 ▲10.0891.41 ▼4.39
Add New Post /wp-admin/post-new.php1,683 ▼018.71 ▼0.01402.14 ▼21.95103.68 ▼5.83
Media Library /wp-admin/upload.php1,810 ▲35.02 ▲0.02192.48 ▲31.99118.17 ▲1.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/edd-recent-payments-history/edd-recent-payments-history.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function edd_recent_purchase_payments() in wp-content/plugins/edd-recent-payments-history/recent-complete-payments.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: checkout, edd, payment, purchase

edd-recent-payments-history/edd-recent-payments-history.php Passed 13 tests

"EDD Recent Payments History" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
show last complete payments. just insert shortcode [recent_purchase_history] on a page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected87 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3311687

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin