89% woo-request-network

Code Review | WooCommerce Request Network Payment Gateway

WordPress plugin WooCommerce Request Network Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: woo-request-network
  • Plugin version: 0.1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.6
  • WordPress version: 6.3.1
  • First release: May 1, 2018
  • Latest release: Sep 28, 2018
  • Number of updates: 20
  • Update frequency: every 7.7 days
  • Top authors: adowson9 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,616 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.70ms] Passed 4 tests

A check of server-side resources used by WooCommerce Request Network Payment Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.02 ▼2.77
Dashboard /wp-admin3.36 ▲0.0150.40 ▼15.85
Posts /wp-admin/edit.php3.47 ▲0.1150.02 ▲0.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.39 ▼10.88
Media Library /wp-admin/upload.php3.28 ▲0.0537.86 ▼1.29

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Request Network Payment Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.25 ▼1.111.65 ▼0.2743.22 ▼3.96
Dashboard /wp-admin2,214 ▲264.84 ▼0.01116.18 ▲4.9643.93 ▲6.24
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0437.90 ▼0.9534.46 ▲0.28
Add New Post /wp-admin/post-new.php1,546 ▲1023.37 ▲0.14691.27 ▲65.6758.43 ▲7.08
Media Library /wp-admin/upload.php1,396 ▲114.25 ▼0.0099.61 ▼2.4743.66 ▼3.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, cryptocurrency, request network, bitcoin, ethereum

woo-request-network/woocommerce-gateway-wooreq.php 85% from 13 tests

The main PHP script in "WooCommerce Request Network Payment Gateway" version 0.1.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-request-network.php" instead of "woocommerce-gateway-wooreq.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,858 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP113585851,101
CSS3348503
SVG200161
Markdown130053
JavaScript38140

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity21.75
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods61
▷ Static methods1829.51%
▷ Public methods5488.52%
▷ Protected methods00.00%
▷ Private methods711.48%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/payment-icons.png22.85KB6.27KB▼ 72.57%
assets/images/request-logo.png5.15KB3.22KB▼ 37.42%