90% boldwallet-mycred

Code Review | Boldwallet myCRED/buyCred Payment Gateway

WordPress plugin Boldwallet myCRED/buyCred Payment Gateway scored90%from 54 tests.

About plugin

  • Plugin page: boldwallet-mycred
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: May 28, 2020
  • Latest release: Jun 3, 2020
  • Number of updates: 10
  • Update frequency: every 0.6 days
  • Top authors: ezeukocharles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /619 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.94ms] Passed 4 tests

An overview of server-side resources used by Boldwallet myCRED/buyCred Payment Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.80 ▲0.35
Dashboard /wp-admin3.37 ▲0.0746.01 ▼3.42
Posts /wp-admin/edit.php3.42 ▲0.0746.40 ▲1.86
Add New Post /wp-admin/post-new.php5.95 ▲0.0781.87 ▼19.14
Media Library /wp-admin/upload.php3.30 ▲0.0731.00 ▼1.53

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

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/boldwallet-mycred/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/boldwallet-mycred/assets/banner-772\303\227250.jpg"
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Boldwallet myCRED/buyCred Payment Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.35 ▼1.041.73 ▼0.0843.56 ▲0.27
Dashboard /wp-admin2,206 ▲215.88 ▲0.99108.87 ▼6.9544.54 ▼0.74
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0336.49 ▲1.1034.36 ▼2.24
Add New Post /wp-admin/post-new.php1,533 ▲1923.50 ▲5.90682.52 ▲6.1255.28 ▲0.29
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.0498.58 ▼11.8941.67 ▼7.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: mycred gateway, buycred, mastercard, addon, verve...

boldwallet-mycred/boldwallet-mycred.php Passed 13 tests

"Boldwallet myCRED/buyCred Payment Gateway" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
37 characters long description:
Boldwallet Payment Gateway for myCred

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin336 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP217678324
JavaScript112212

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity5.38
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

Often times overlooked, PNG files can occupy unnecessary space in 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%