89% expert-bitpay-gateway-for-lifterlms

Code Review | Expert Bitpay Gateway For LifterLMS

WordPress plugin Expert Bitpay Gateway For LifterLMS scored89%from 54 tests.

About plugin

  • Plugin page: expert-bitpay-gat...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2022
  • Latest release: Aug 6, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: muhammedowais2013 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.46ms] Passed 4 tests

Analyzing server-side resources used by Expert Bitpay Gateway For LifterLMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.89 ▲0.28
Dashboard /wp-admin3.31 ▲0.0044.62 ▼1.90
Posts /wp-admin/edit.php3.36 ▲0.0044.13 ▼6.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.70 ▼15.18
Media Library /wp-admin/upload.php3.23 ▲0.0031.46 ▼2.48

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Expert Bitpay Gateway For LifterLMS: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.204.45 ▲2.6646.30 ▲0.95
Dashboard /wp-admin2,203 ▲155.79 ▼0.0798.32 ▼7.8738.42 ▼6.46
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0635.10 ▼6.7635.91 ▼1.13
Add New Post /wp-admin/post-new.php1,514 ▼1717.39 ▼1.03678.73 ▲48.3556.44 ▼7.16
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0392.63 ▼9.2542.40 ▼1.12

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: lifterlms, bitpay, bitcoin, payment, crypto

expert-bitpay-gateway-for-lifterlms/expert-bitpay-gateway-for-lifterlms.php 85% from 13 tests

This is the main PHP file of "Expert Bitpay Gateway For LifterLMS" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "4.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin268 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5135109268

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity12.00
▷ Minimum class complexity5.00
▷ Maximum class complexity17.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods18
▷ Static methods211.11%
▷ Public methods1266.67%
▷ Protected methods00.00%
▷ Private methods633.33%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin