84% pl8app-cryptocurrency-bep20-payment-gateway-for-restropress

Code Review | pl8app Cryptocurrency BEP20 Payment Gateway For Restropress

WordPress plugin pl8app Cryptocurrency BEP20 Payment Gateway For Restropress scored84%from 54 tests.

About plugin

  • Plugin page: pl8app-cryptocurr...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Dec 1, 2021
  • Latest release: Jan 31, 2023
  • Number of updates: 5
  • Update frequency: every 85.2 days
  • Top authors: pl8apptoken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by pl8app Cryptocurrency BEP20 Payment Gateway For Restropress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.75 ▼9.16
Dashboard /wp-admin3.38 ▲0.0846.37 ▼1.78
Posts /wp-admin/edit.php3.49 ▲0.1447.80 ▲5.60
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.20 ▼7.72
Media Library /wp-admin/upload.php3.30 ▲0.0735.02 ▼2.38

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: 3 new tables, 7 new options
New tables
wp_pl8app_rpr_pro_payments
wp_pl8app_rpr_pro_hd_addresses
wp_pl8app_rpr_pro_carousel
New WordPress options
widget_recent-posts
widget_theysaidso_widget
pl8app_rpr_pro_redux_options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by pl8app Cryptocurrency BEP20 Payment Gateway For Restropress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.165.11 ▲2.6439.87 ▼4.38
Dashboard /wp-admin2,209 ▲575.86 ▲0.2697.85 ▼15.8038.66 ▼2.89
Posts /wp-admin/edit.php2,089 ▲182.00 ▲0.0138.93 ▲0.4832.87 ▼3.84
Add New Post /wp-admin/post-new.php1,533 ▲1923.08 ▲5.38669.74 ▼23.4255.17 ▼2.72
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.0298.06 ▼6.8242.89 ▲0.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • pl8app_rpr_pro_redux_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pl8app-cryptocurrency-bep20-payment-gateway-for-restropress/src/pl8app_rpr_Hooks.php:245
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pl8app-cryptocurrency-bep20-payment-gateway-for-restropress/pl8app-cryptocurrency-bep20-payment-gateway-for-restropress.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pl8app-cryptocurrency-bep20-payment-gateway-for-restropress/src/pl8app_rpr_Admin.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'pl8app_rpr_Cryptocurrencies' not found in wp-content/plugins/pl8app-cryptocurrency-bep20-payment-gateway-for-restropress/src/pl8app_rpr_Gateway.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
You can take inspiration from this readme.txt

pl8app-cryptocurrency-bep20-payment-gateway-for-restropress/pl8app-cryptocurrency-bep20-payment-gateway-for-restropress.php Passed 13 tests

The entry point to "pl8app Cryptocurrency BEP20 Payment Gateway For Restropress" version 1.0 is a PHP file that has certain tags in its header comment area
59 characters long description:
pl8app Cryptocurrency BEP20 Payment Gateway For RestroPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin23,751 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
SVG4119,571
PHP292,5801,5948,352
CSS51,566114,892
JavaScript75849936

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity34.88
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes40
▷ Abstract classes00.00%
▷ Concrete classes40100.00%
▷ Final classes00.00%
Methods411
▷ Static methods23456.93%
▷ Public methods37791.73%
▷ Protected methods00.00%
▷ Private methods348.27%
Functions42
▷ Named functions4197.62%
▷ Anonymous functions12.38%
Constants60
▷ Global constants4981.67%
▷ Class constants1118.33%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/tmp_qrcode.png0.87KB0.85KB▼ 2.26%
assets/img/1_pay_mm_off.png25.77KB11.17KB▼ 56.67%
assets/img/1_pay_mm_over.png26.63KB11.88KB▼ 55.39%
assets/img/pl8app_logo.png24.22KB3.50KB▼ 85.54%
assets/img/0x_logo_small.png0.81KB0.67KB▼ 17.41%