90% edd-paystack

Code Review | Paystack Easy Digital Downloads Payment Gateway

WordPress plugin Paystack Easy Digital Downloads Payment Gateway scored90%from 54 tests.

About plugin

  • Plugin page: edd-paystack
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2018
  • Latest release: Oct 10, 2023
  • Number of updates: 22
  • Update frequency: every 91.6 days
  • Top authors: tubiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /12,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.57ms] Passed 4 tests

An overview of server-side resources used by Paystack Easy Digital Downloads Payment Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.12 ▼0.51
Dashboard /wp-admin3.31 ▲0.0151.05 ▲1.10
Posts /wp-admin/edit.php3.36 ▲0.0044.56 ▼5.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.18 ▼13.32
Media Library /wp-admin/upload.php3.23 ▲0.0034.73 ▼2.62

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Paystack Easy Digital Downloads Payment Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.081.82 ▲0.2846.43 ▲11.42
Dashboard /wp-admin2,195 ▲175.62 ▼0.1095.67 ▼2.9240.82 ▼4.54
Posts /wp-admin/edit.php2,100 ▼02.10 ▲0.0833.72 ▼6.4435.54 ▼1.76
Add New Post /wp-admin/post-new.php1,536 ▲123.01 ▲4.71659.41 ▲10.8660.61 ▼13.20
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0793.51 ▼3.5241.89 ▼1.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

edd-paystack/edd-paystack.php Passed 13 tests

The main PHP file in "Paystack Easy Digital Downloads Payment Gateway" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Paystack payment gateway for Easy Digital Downloads

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
Success! There were no dangerous files found in this plugin480 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4209188480

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity22.00
▷ Minimum class complexity3.00
▷ Maximum class complexity41.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods3196.88%
▷ Protected methods00.00%
▷ Private methods13.12%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/paystack-gh.png66.22KB30.28KB▼ 54.28%
assets/images/paystack-cards.png39.38KB17.89KB▼ 54.57%
assets/images/paystack-za.png27.87KB10.45KB▼ 62.50%
assets/images/paystack-ke.png20.64KB8.22KB▼ 60.20%
assets/images/paystack.png52.37KB24.21KB▼ 53.76%