89% woo-rave

Code Review | WooCommerce Flutterwave Payment Gateway

WordPress plugin WooCommerce Flutterwave Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: woo-rave
  • Plugin version: 2.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2018
  • Latest release: May 7, 2023
  • Number of updates: 27
  • Update frequency: every 69.2 days
  • Top authors: tubiz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /25,983 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.06ms] Passed 4 tests

A check of server-side resources used by WooCommerce Flutterwave Payment Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.40 ▼5.23
Dashboard /wp-admin3.32 ▲0.0145.46 ▼2.85
Posts /wp-admin/edit.php3.37 ▲0.0148.19 ▼1.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.71 ▼7.00
Media Library /wp-admin/upload.php3.24 ▲0.0135.99 ▲2.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Flutterwave Payment Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.011.75 ▲0.0139.50 ▼6.72
Dashboard /wp-admin2,209 ▲215.90 ▲1.00114.33 ▼3.9641.23 ▲1.76
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0841.07 ▼1.1934.18 ▼2.92
Add New Post /wp-admin/post-new.php1,528 ▲1423.32 ▲5.67658.69 ▼56.0950.41 ▼5.92
Media Library /wp-admin/upload.php1,382 ▼94.43 ▲0.2099.92 ▼1.9840.55 ▼1.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

woo-rave/woo-rave.php 92% from 13 tests

The entry point to "WooCommerce Flutterwave Payment Gateway" version 2.3.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.6" instead of "6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected975 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3412233880
JavaScript424795

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity51.50
▷ Minimum class complexity13.00
▷ Maximum class complexity90.00
Average method complexity4.74
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2696.30%
▷ Protected methods00.00%
▷ Private methods13.70%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
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%