10% woo-boldwallet-boldwallet

Code Review | Boldwallet WooCommerce Payment Gateway

WordPress plugin Boldwallet WooCommerce Payment Gateway scored10%from 54 tests.

About plugin

  • Plugin page: woo-boldwallet-bo...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: May 29, 2019
  • Latest release: May 26, 2020
  • Number of updates: 28
  • Update frequency: every 13.0 days
  • Top authors: ezeukocharles (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /677 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.81MB] [CPU: ▼51.34ms] Passed 4 tests

An overview of server-side resources used by Boldwallet WooCommerce Payment Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.289.22 ▼31.20
Dashboard /wp-admin2.20 ▼1.106.60 ▼48.09
Posts /wp-admin/edit.php2.20 ▼1.166.95 ▼38.92
Add New Post /wp-admin/post-new.php2.20 ▼3.696.16 ▼87.15
Media Library /wp-admin/upload.php2.20 ▼1.037.33 ▼26.01
books /wp-admin/edit.php?post_type=book2.217.44
Add New /wp-admin/post-new.php?post_type=book2.215.55

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/woo-boldwallet-boldwallet/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/woo-boldwallet-boldwallet/assets/banner-772\303\227250.jpg"
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Boldwallet WooCommerce Payment Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.22 ▼1.161.53 ▼0.0737.87 ▲0.38
Dashboard /wp-admin2,237 ▲665.87 ▲0.03105.51 ▼18.5239.83 ▼5.88
Posts /wp-admin/edit.php2,123 ▲312.07 ▲0.0842.65 ▼0.5839.56 ▼0.81
Add New Post /wp-admin/post-new.php1,541 ▼123.19 ▲4.95648.70 ▲19.7253.57 ▼7.94
Media Library /wp-admin/upload.php1,419 ▲314.23 ▼0.01106.40 ▲0.5648.61 ▲1.38
books /wp-admin/edit.php?post_type=book1,0871.9935.1729.51
Add New /wp-admin/post-new.php?post_type=book2,1677.53185.5866.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=book
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

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 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=book
    • > Network (severe)
    wp-content/plugins/woo-boldwallet-boldwallet/assets/mystyle.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: visa, mastercard, verve, boldwallet, nigeria...

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

The main PHP script in "Boldwallet WooCommerce Payment Gateway" version 1.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-boldwallet-boldwallet.php" instead of "woo-boldwallet.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected419 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP221780407
JavaScript112212

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.06MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png65.59KB3.60KB▼ 94.52%