84% paybybank

Code Review | PayByBank

WordPress plugin PayByBank scored84%from 54 tests.

About plugin

  • Plugin page: paybybank
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2020
  • Latest release: Dec 16, 2022
  • Number of updates: 25
  • Update frequency: every 42.8 days
  • Top authors: paybybankdevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /997 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
Install script ran successfully

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

A check of server-side resources used by PayByBank
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.05 ▼3.87
Dashboard /wp-admin3.31 ▲0.0051.31 ▲0.57
Posts /wp-admin/edit.php3.36 ▲0.0045.94 ▼0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.49 ▼12.36
Media Library /wp-admin/upload.php3.23 ▲0.0032.89 ▼4.07

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by PayByBank
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.091.79 ▲0.1341.03 ▼3.45
Dashboard /wp-admin2,195 ▲155.55 ▼0.0689.15 ▼1.6039.49 ▼2.47
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0038.44 ▲2.1034.97 ▲1.49
Add New Post /wp-admin/post-new.php1,526 ▼023.51 ▼0.20674.83 ▼25.6057.34 ▲2.83
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.0098.64 ▼4.1942.13 ▼3.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/paybybank/admin/partials/dc-paybybank-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: payment gateway, rf payment, bacs, woocommerce, paybybank...

paybybank/dc-paybybank.php 92% from 13 tests

The principal PHP file in "PayByBank" v. 2.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("paybybank.php" instead of "dc-paybybank.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected522 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11187549501
CSS13318
JavaScript12273

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.86
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin