90% edd-rave

Code Review | Flutterwave Easy Digital Downloads Payment Gateway

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

About plugin

  • Plugin page: edd-rave
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Apr 12, 2018
  • Latest release: Mar 31, 2023
  • Number of updates: 15
  • Update frequency: every 121.1 days
  • Top authors: tubiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /5,648 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
Installer ran successfully

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

Analyzing server-side resources used by Flutterwave Easy Digital Downloads Payment Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.68 ▼0.21
Dashboard /wp-admin3.31 ▲0.0144.21 ▼5.96
Posts /wp-admin/edit.php3.36 ▲0.0047.79 ▲0.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.44 ▼3.77
Media Library /wp-admin/upload.php3.23 ▲0.0032.02 ▼0.03

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Flutterwave Easy Digital Downloads Payment Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.57 ▼0.781.95 ▲0.2743.11 ▼1.43
Dashboard /wp-admin2,209 ▲215.90 ▼0.00107.31 ▲4.0844.70 ▲1.48
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0339.26 ▼1.6136.32 ▲1.41
Add New Post /wp-admin/post-new.php1,513 ▼117.62 ▼0.15583.29 ▼39.0355.71 ▲2.24
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0997.27 ▼6.1042.13 ▼1.60

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

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

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

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

The entry point to "Flutterwave Easy Digital Downloads Payment Gateway" version 2.0.1 is a PHP file that has certain tags in its header comment area
54 characters long description:
Flutterwave payment gateway for Easy Digital Downloads

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin470 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP317975470

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity23.00
▷ Minimum class complexity3.00
▷ Maximum class complexity43.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/powered-by-rave.png22.93KB7.86KB▼ 65.70%