90% edd-opay

Code Review | OPay Payment Gateway For Easy Digital Downloads

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

About plugin

  • Plugin page: edd-opay
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: May 9, 2023
  • Latest release: May 17, 2023
  • Number of updates: 15
  • Update frequency: every 0.5 days
  • Top authors: shoboysnr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by OPay Payment Gateway For Easy Digital Downloads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.79 ▼1.04
Dashboard /wp-admin3.31 ▲0.0145.92 ▼1.47
Posts /wp-admin/edit.php3.36 ▲0.0047.55 ▼3.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.19 ▼8.32
Media Library /wp-admin/upload.php3.24 ▲0.0035.79 ▼0.57

Server storage [IO: ▲0.03MB] [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-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by OPay Payment Gateway For Easy Digital Downloads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.60 ▼0.661.60 ▼0.2739.67 ▲0.03
Dashboard /wp-admin2,209 ▲184.82 ▼0.06109.66 ▲1.7940.86 ▲0.20
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0439.39 ▼0.8434.96 ▼2.68
Add New Post /wp-admin/post-new.php1,542 ▲918.27 ▼4.80603.80 ▼17.9450.77 ▼3.03
Media Library /wp-admin/upload.php1,388 ▲64.20 ▲0.0095.57 ▼1.1239.17 ▼3.51

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The entry point to "OPay Payment Gateway For Easy Digital Downloads" version 1.0.0 is a PHP file that has certain tags in its header comment area
47 characters long description:
OPay 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
No dangerous file extensions were detected403 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP414976403

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity17.00
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin