89% woo-ripple-gateway

Code Review | Woocommerce Ripple Gateway

WordPress plugin Woocommerce Ripple Gateway scored89%from 54 tests.

About plugin

  • Plugin page: woo-ripple-gateway
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.5
  • WordPress version: 6.3.1
  • First release: Sep 1, 2017
  • Latest release: Sep 1, 2017
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: q-invoice (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,094 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.01MB] [CPU: ▼8.24ms] Passed 4 tests

A check of server-side resources used by Woocommerce Ripple Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.57 ▼1.93
Dashboard /wp-admin3.33 ▼0.0245.05 ▼13.51
Posts /wp-admin/edit.php3.38 ▲0.0244.15 ▼6.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.66 ▼10.60
Media Library /wp-admin/upload.php3.25 ▲0.0232.48 ▲1.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Ripple Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.43 ▲0.121.59 ▼0.8242.06 ▼12.66
Dashboard /wp-admin2,206 ▲154.85 ▼0.02104.74 ▼3.9539.85 ▼0.53
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0139.59 ▼1.4035.64 ▼1.08
Add New Post /wp-admin/post-new.php1,516 ▼2417.72 ▼5.58605.74 ▼47.0156.01 ▼4.31
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0393.24 ▼11.6540.63 ▼0.36

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Donate link: Please fix this invalid url: "rwG1An46e6mz5MJkXsXSqsupHsMU2vcdLY"
The official readme.txt might help

woo-ripple-gateway/woocommerce-ripple-gateway.php 85% from 13 tests

"Woocommerce Ripple Gateway" version 0.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-ripple-gateway.php" instead of "woocommerce-ripple-gateway.php")

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
There were no executable files found in this plugin1,291 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4147144665
PHP611765462
PO File1272993
CSS11041
Markdown112030

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.83
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods30
▷ Static methods620.00%
▷ Public methods2893.33%
▷ Protected methods13.33%
▷ Private methods13.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ripple_logo.png11.18KB6.53KB▼ 41.65%
assets/screenshot-1.png222.61KB67.29KB▼ 69.77%